clamshell

Crates.ioclamshell
lib.rsclamshell
version0.2.0
created_at2024-06-22 10:12:55.262013+00
updated_at2025-05-24 18:34:56.326483+00
descriptionA quick and dirty to-do file viewer and manipulator.
homepage
repositoryhttps://github.com/DriftingOtter/clamshell.git
max_upload_size
id1280327
size45,836
Daksh Kaul (DriftingOtter)

documentation

README

clamshell

A quick and dirty to-do file viewer and manipulator.

Installation and Build

Clone the repository and navigate into it:

git clone https://github.com/DriftingOtter/clamshell.git
cd clamshell

Quick Install (Recommended)

Use the provided script to configure and build Clamshell automatically:

chmod +x install.sh
./install.sh

Manual Installation

If you prefer to configure and build manually:

Set the To-Do File Path

Specify the location of your to-do file using the TODO_FILE_PATH environment variable:

export TODO_FILE_PATH=/home/USERNAME_HERE/Documents/todo.org

Configure Default Editor and Viewer

You can optionally set which programs are used for editing and viewing the to-do file:

export DEFAULT_EDITOR=vim   # Default is nano
export DEFAULT_VIEWER=less  # Default is cat

These values will be compiled into the binary. You can still override them at runtime using CLI flags.

Build the Project

cargo build --release

Optional: Move Binary to Local Binaries Folder

To access clamshell without specifying the binary path, move it to your local binaries folder:

cp target/release/clamshell ~/.local/bin

Ensure ~/.local/bin is in your PATH. You can add it by updating your shell configuration file (~/.bashrc or ~/.zshrc):

export PATH="$HOME/.local/bin:$PATH"

Usage

Modes

  • View mode: clamshell
  • Edit mode: clamshell -e or clamshell --edit
  • Help mode: clamshell -h or clamshell --help

Additional Arguments

  • --editor <name>: Override the default editor (e.g., vim, nano).
  • --viewer <name>: Override the default viewer (e.g., cat, less).

Authors

  • Daksh Kaul // DriftingOtter
Commit count: 0

cargo fmt