Inspired by org-journal
.
With journal.vim
, you can write down diary and ideas very easily.
mkdir
and,
let g:journal_dir = "~/Dropbox/org/journal"
Plug 'cympfh/journal.vim'
All commands can be remapped.
let g:journal_new = "<C-j><C-j>" " default
New markdown file YYYY/mmdd.md
will be created under g:journal_dir
.
let g:journal_next = "<C-j><C-n>" # 1 day after
let g:journal_prev = "<C-j><C-p>" # 1 day before
let g:journal_grep = "<C-j><C-g>"
:JournalGrep
command takes 1 argument for searching keyword (grep pattern).
This uses ripgrep
if executable.
let g:journal_tags = "<C-j><C-t>"
With 1 argument, :JournalTags ...
does grep search (ripgrep
recommended).
Without arguments, :JournalTags
list up all tags.
Basically journal files are just markdown
.
Some features are appended.
- [ ] hogehoge
- [ ] fugafuga
You can toggle the state with
let g:journal_toggle = "<C-j><C-x>" " default
- [ ] unchecked
- [x] checked [2021/01/28 (Thu) 14:03]
- [-] aborted [2021/01/28 (Thu) 14:04]
- [ ] unchecked (loop)
- TODO hoge
The state are switched with g:journal_toggle
.
Identifiers #...
(e.g. #idea
#reading
) are tags.
Tags can be searched with :JournalTags
.
Please load plasticboy/vim-markdown or sheerun/vim-polyglot.