Edit your notion pages in vim.
This project is in very early stage of development.
It is currently capable of:
- Fetch your notion pages and clone to local folder. It parses notion json file into markdown file.
- Update a single block
- vim bindings for features listed above.
Upcoming features:
- Update whole page
- Create new block
- Create new page
- Parse markdown file inton notion json file
Use your favourite package manager.
Plug 'rpopic2/notion.vim'
Currently, you'll need to manually create a new notion integration and retrieve notion api access key for yourself.
And export enviroment variable as following:
export NOTION_KEY=<your-key-goes-here>
Add connection to integration on your page by pressing ... button -> Connections -> Add connection, and select the integration.
:NotionVimPull
Pull all pages with integration connected.
:NotionVimUpdateLine
Update line currently under cursor.
Use autocmd
to automatically call functions.
Example:
augroup notion_vim_au
autocmd!
au BufRead *.md call s:NotionvimPull()
au CursorHold *.md call s:NotionvimUpdate()
augroup end