This project provides a way of using Sublime Text to maintain a journal/notes/snippets/etc, with the ability to tag entries and search for them later.
Create a directory, such as "jernl", in your Sublime Text installation's Packages subdirectory. Place the contents of this project in this directory.
note: The syntax highlighting relies on the use of the Sunburst color theme in Sublime. If using another theme, the colors may not appear ideal. YMMV
Open Sublime Text's User Settings, and add the setting jernl-dir. Set the value to the absolute path of a directory you would like to use for your jernl files.
For controlling the date format of the new entries, use the setting jernl-date-format:
"jernl-date-format": "%m/%d/%Y",
See here for formatting options.
You can trigger Jernl one of three ways:
- Type "Jernl" into Sublime Text's Command Palette
- Select "Jernl" from the Tools menu
- Using the default keystroke: super+ctrl+j
This triggers a quick panel to select a Jernl command.
If your Jernl file is not currently open in Sublime, you will have a command to open it. If the file is open, you will have a command to add a new entry. In either case, search is available as a command as well.
Each entry in the Jernl file has the following format:
**** 01/01/2015 ************************************************************************
> This is my entry title - indented 2 spaces with a > and then another space
This is the entry content.
This can be anything (any format), just needs to be indented 4 spaces
The New Entry command will start a new entry for you, following this format. A syntax highlighting file is provided to colorize the different parts of an entry accordingly.
Jernl files will automatically rollover every year.
When adding entries, you can optionally add tags to the end of any entry title, surrounding with @ symbols
**** 01/01/2015 ************************************************************************
> How to copy a file on Linux @bash,cp,linux@
$ cp file1.txt file2.txt
Once you've added tags, you can use Jernl's Search command. After invoking it, you're presented with another quick panel, allowing you to search through your available tags. After choosing a tag, you get one more quick panel, which shows you the title of entries that have the selected tag. Choosing an entry in the list will take you directly to that entry (opening the corresponding file, if nec.)
Licensed under the WTFPL license :)