Update votion related stuff

main
Felix Martin 2022-08-24 19:02:39 -04:00
parent 0a7dcd55e2
commit 1c28e6c71d
2 changed files with 4 additions and 7 deletions

View File

@ -2,11 +2,7 @@ import os
import vim
import datetime
FILE_TEMPLATE = """---
tags: [journal]
---
"""
FILE_TEMPLATE = """"""
def create_daily_journal():
file_name = datetime.datetime.now().strftime("journal-%Y-%m-%d.md")

View File

@ -304,6 +304,7 @@ nnoremap <leader>vo :RgVotion<CR>
nnoremap <leader>vt :RgVotionTitle<CR>
nnoremap <leader>va :RgVotionTags<CR>
nnoremap <leader>vd :call delete(expand('%')) \| bp\| bd #<CR>
nnoremap <leader>vid :RgVotionId<CR>
command! VotionJournal :py3file ~/.vim/scripts/votion-journal.py
nnoremap <leader>vj :VotionJournal<CR>
@ -324,6 +325,8 @@ command! -bang -nargs=* RgVotionTags
\ call fzf#vim#grep(
\ 'rg -i --column --line-number --no-heading --color=always --smart-case -- tag [ '.shellescape(<q-args>).' ~/owc', 1,
\ fzf#vim#with_preview(), <bang>0)
command! -bang RgVotionId call fzf#vim#files('~/owc', <bang>0)
" }}}
" fzf {{{
noremap <leader>ob :Buffers<CR>
@ -353,8 +356,6 @@ call plug#begin('~/.vim/plugged')
Plug 'vim-airline/vim-airline'
Plug 'godlygeek/tabular'
Plug 'felixio@git.felixm.de:felixm/votion.git', {'for': 'markdown'}
Plug 'dhruvasagar/vim-table-mode', {'for': 'markdown'}
" Plug 'flazz/vim-colorschemes'
" Plug 'vimwiki/vimwiki'
call plug#end()
" }}}