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 clamshell
Use the provided script to configure and build Clamshell automatically:
chmod +x install.sh
./install.sh
If 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.org
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.
cargo build --release
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"
- View mode:
clamshell
- Edit mode:
clamshell -e
orclamshell --edit
- Help mode:
clamshell -h
orclamshell --help
--editor <name>
: Override the default editor (e.g., vim, nano).--viewer <name>
: Override the default viewer (e.g., cat, less).
- Daksh Kaul // DriftingOtter