A collection of scripts that I use in conjunction with flashbake for my personal notetaking system
I like making Git do nifty things for me. One of those things is tracking my personal working notes.
I use a simple system of organization for notes. Every day, I create a new file titled mm-dd-notes (where mm is the month and dd is the day). Those files are organized in a flat-file system by year and month (e.g., my notes for the 23rd of November live in ~/Notes/2015/11/11-15-notes). That file stays open in a separate window during the day, so I can record notes and observations as I work.
Thanks to Thomas Gideon and the Flashbake tool, I can automatically commit changes to my notes in a git repository using a cronjob. With the addition of the two scripts in this repo, I can simplify how I create and access my notes, as well as automatically sync changes to a remote git repository.
To use this tool as your very own:
- Set up a git repo for your notes.
- Install and configure Flashbake.
- Create an SSH key specifically for your Notes repo.
- Pull this repo, copy nsrc.example to ~/.nsrc, and edit to suit your needs.
- Add both scripts to your $PATH. (I prefer ~/.bin)
- Add
notes-syncto your crontab. (5 minutes seems to be adequate, but YMMV.)
And that's it. Enjoy!
v0.5, 11 May 2016:
- added a config file option for opening the editor in the foreground (allows for proper Linux Subsystem for Win10 support)
v0.4, 05 May 2016:
- added a flag for opening yesterday's notes (--yesterday)
v0.3, 03 January 2016:
- added automatic creation of year and month folders if they don't exist
v0.2, 24 November 2015:
- incorporated a pull request from @retornam to use a config file
- resolved a bash bug with cron I didn't notice before
v0.1, 23 November 2015:
- initial release.