Cadmus is a knowledge management tool in your terminal.
What is Cadmus?¶
Cadmus provides command driven interface to find and edit Markdown files, such as finding by name, searching for terms, filtering by tags, generating backlinks and generating relative links to other notes.
How does it Work¶
Cadmus is just a bunch of shell scripts that essentially use pipes and ripgrep with skim to display them.
How Do i Use It¶
cadmus is available on the AUR, generally however cadmus will operate in a portable fashion from =~/.cadmus/=, so just using
git is fine as well:
cd $(mktemp -d) wget https://raw.githubusercontent.com/RyanGreenup/cadmus/master/install.sh bash install.sh
To remove it it is sufficient to perform:
rm -rf "$HOME/.cadmus" rm ~/.local/bin/cadmus
Just run cadmus at the terminal and it will walk you through generating a config file. Afterwards running cadmus will show various commands such as find and search that can be used to work with your knowledge base.
Shortly functionality will be implemented to allow creating a
.cadmus file in any directory that will act as a config for all markdown files beneath that directory, this is useful if you want to use cadmus with documentation for a project and still have access to your notes, or have multiple knowledge bases.
When or Why Would I Use This¶
Well I wrote this because my interests are Math and Data Sci and quite frankly I suffer from information overload, I like open-source stuff, simple scripts and unix philosophy so if any of that resonates with you try it out.
This is all modular so take what you like and reimplement it, fork it, make PR's and please fell free to post issues even if it's just to say Hey, I like tool x have you tried it before?.
The idea of cadmus is to demonstrate how powerful the terminal can be and how it can act as a functional replacement for tools like OneNote or Evernote.
In reality Cadmus is just a couple of shell scripts to help users tie together other really good tools like Skim, ripgrep, recoll and TMSU.
||Ctrl-Q||switch between find and grep in skim|
- GNU realpath
- jq Arch | brew | ubuntu
- Make sure to include
pcre2, this comes in Arch, if using
cargo install ripgrep --features 'pcre2'
- Make sure to include
- xclip or wl-clipboard
Recommended for all Features¶
- iproute2 (for the ip binary)
- I've also heard good things about iterm2
Interesting / Helpful / Recommended Generally (Not strictly necessary)¶
If any dependencies are installed with
cargo it will be necessary to add these directories to your
## bash echo ' export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH" ' >> ~/.bashrc ## zsh echo ' export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.cargo/bin:$PATH" ' >> ~/.bashrc ## fish echo ' set PATH $HOME/.local/bin $PATH set PATH $HOME/bin $PATH set PATH "$HOME/.cargo/bin $PATH ' >> ~/.config/fish/config.fish