A vim plugin for the static site generator: oxalorg/genox
This has automated my workflow and removed the hurdles to blogging. Read more about it on my blog post here: https://oxal.org/blog/wip-my-first-vim-plugin/
This is currently work in progress. It will not work on your system yet.
From any vim session anywhere in the system, simply type :OxBlog
This will open up an FZF window of all blog posts. Search and click enter to open it in a buffer.
From any vim session anywhere, simply type :OxBlog
This will open up an FZF window where you can type any name and press ctrl+o
,
which will create a new blog post in the appropriate directory.
Then with UltiSnips
configured you can quickly fill the yaml metadata.
(Check my dotfiles: oxalorg/dotfiles)
From any blog open in vim, simply call :OxPublish
the site will rebuild and changes will be deployed live.
Delete / Unpublish the currently open blog post. To do that run :OxDelete
nmap <leader>nn call :OxBlog<CR>
nmap <leader>np call :OxPublish<CR>
fzf
&fzf.vim
need to be installed.
Using Vim-Plug:
Plug 'oxalorg/vim-genox'