A small terminal utility for taking notes.
This is a small utility that can be added to your bash profile to take notes in.
- Dependencies
- AG improves upon ack
brew install the_silver_searcher
- Notes Dir
mkdir path/to/Notes
what is a bash profile?
Add the following lines to your ~/.bash_profile
alias notes='touch path/to/Notes/$(date '+%Y%m%d').txt; vim + path/to/Notes/$(date '+%Y%m%d').txt'
ask () { ag -i -A --column "$@" path/to/Notes; }
notes
that's it!
This will open vim into today's notes entry, if already opened will append to end of file.
This will return a list of all the entries that contain 'keyword'.
Keep in mind this is case sensitive.
ask keyword
To only return 3 matches and ignore case modify your alias to
ask () { ag -i -A --column --max-count 3 --ignore-case "$@" path/to/Notes; }
0.1
- Adding alias commands to Readme