A quick and dirty to-do file viewer and manipulator.
Clone the repository and navigate into it:
git clone https://github.com/DriftingOtter/clamshell.git
cd clamshellUse the provided script to configure and build Clamshell automatically:
chmod +x install.sh
./install.shIf you prefer to configure and build manually:
Specify the location of your to-do file using the TODO_FILE_PATH environment variable:
export TODO_FILE_PATH=/home/USERNAME_HERE/Documents/todo.orgYou 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 catThese values will be compiled into the binary. You can still override them at runtime using CLI flags.
cargo build --releaseTo access clamshell without specifying the binary path, move it to your local binaries folder:
cp target/release/clamshell ~/.local/binEnsure ~/.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"- View mode:
clamshell - Edit mode:
clamshell -eorclamshell --edit - Help mode:
clamshell -horclamshell --help
--editor <name>: Override the default editor (e.g., vim, nano).--viewer <name>: Override the default viewer (e.g., cat, less).
- Daksh Kaul // DriftingOtter