A tool for easily creating and managing markdown notes.
gem install zhuzhOpen your editor:
zzWhen you save and close the editor, the note will be automatically saved.
zz "This is my super important note I need to write it quick before I forget"cat blog_post.txt | zzor
zz < blog_post.txtBy default, notes are stored in $HOME/Zarchive. You can change this by setting the ZZ_DIR environment variable:
export ZZ_DIR="$HOME/my_notes"Notes are organized based on their content:
- The first word becomes the subdirectory name
- Words 2-5 are used in the filename, followed by a timestamp
- For example, if you start a note with "Project ideas for tomorrow", it will be saved as
$ZZ_DIR/project/ideas_for_tomorrow_TIMESTAMP.md
Add this to your Neovim configuration:
" Save current buffer with Zhuzh
function! SaveToZhuzh()
let output = system('zz', join(getline(1, '$'), "\n"))
echo "Saved to: " . trim(output)
endfunction
command! Zz call SaveToZhuzh()Then you can use :Zz to save the current buffer as a Zhuzh note.
After checking out the repo, run bin/setup to install dependencies. Then, run rake test to run the tests.
The gem is available as open source under the terms of the MIT License.