Jot is a simple shell script that allows you to write, open, and edit markdown files in a specified directory from anywhere in your system.
- Git Clone this directory to your local machine
- Modify the
JOT_ROUTEvariable at the top ofjot.shso that it points to where you want your jotted notes to be saved. - In your
.bash_profile, paste the following, substituting your file location of thejot.shfile:
function jot {
bash /Users/$USER/Documents/code/jot/jot.sh "$*"
}While still in your .bash_profile, be sure you have the $EDITOR global variable set to the command to open your preferred text editor. For example, export EDITOR="mvim" or export EDITOR="subl".
From anywhere in your system, you can now run:
jot new fileto createnew-file.mdownin your specified directory. Jot will also open the new file for you.jot selectto be presented with list of your filesjot allto open your specified jot directory in your chosen text editor.jot whereto ask where you're currently jotting
Setting the JOT_ROUTE to a shared directory, like your computer's Dropbox folder, may be particularly useful for sharing notes between machines, including mobile devices. Here's a blog post about integrating Jot with an app called Byword on iOS.