Simplified and friendly note management plugin.
- Write note with markdown and yaml as frontmatter.
- All extended markdown syntax included, visit sample page.
- Preview in Chrome with range and auto reload support.
- Create, delete and search note with command.
- Denite source for easier note management.
- Support both neovim/vim job-control for async parsing.
Take vundle as example:
Plugin 'chemzqm/macnote.vim'
misaka and pygments is used for high preformance markdown parse and syntax
highlight, you can install them via:
pip install pygments misaka
If your vim doesn't support, you can install vimproc.vim
Plugin 'Shougo/vimproc.vim'
to do async job.
-
Create or edit note:
:Note {path}{path} could include folder, use
<tab>for auto complete -
Delete note;
:NoteDelete {path} -
Search note:
:[bang]NoteSearch {path} -
Preview current note:
:Preview -
Auto reload preview on file save and cursor hold:
:PreviewAutoChrome tab would be close on buffer delete
-
Open Denite source for note:
Denite noteThere are
opendeleteaddactions for denite note source
All configurations are optional.
g:macnote_note_directorycould be used to set root directory of notes, defaults:~/Documents/notesg:note_cwindow_opencould be set to1if you want open quickfix list after search.g:note_denite_quickfixif you have denite quickfix source, set it to1to open denite quickfix source after search.
Use :h macnote inside vim to get more info.
MIT