Skip to content

neoclide/macnote.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Macnote.vim

Simplified and friendly note management plugin.

Basic features

  • 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.

Install

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.

Usage

  • 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:

    :PreviewAuto
    

    Chrome tab would be close on buffer delete

  • Open Denite source for note:

    Denite note
    

    There are open delete add actions for denite note source

Configurations

All configurations are optional.

  • g:macnote_note_directory could be used to set root directory of notes, defaults: ~/Documents/notes
  • g:note_cwindow_open could be set to 1 if you want open quickfix list after search.
  • g:note_denite_quickfix if you have denite quickfix source, set it to 1 to open denite quickfix source after search.

Use :h macnote inside vim to get more info.

LICENSE

MIT

About

Light weight note manager on mac using vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published