diff options
Diffstat (limited to '.vim/notes.vim')
-rw-r--r-- | .vim/notes.vim | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/.vim/notes.vim b/.vim/notes.vim deleted file mode 100644 index c56896e..0000000 --- a/.vim/notes.vim +++ /dev/null @@ -1,18 +0,0 @@ -let s:search_dir = ' ~/diaries ~/journals ~/notes ' - -command! -bang FzfNoteFiles - \ call fzf#run(fzf#wrap(fzf#vim#with_preview({ - \ 'source': 'fd --type f . ' . s:search_dir, - \ 'sink': 'edit', - \ }), <bang>0)) - -command! -bang -nargs=* FzfNoteRg - \ call fzf#vim#grep( - \ 'rg --column --line-number --no-heading --color=always --smart-case -e ' - \ . shellescape(<q-args>) . s:search_dir, 1, - \ fzf#vim#with_preview(), <bang>0) - -nnoremap <leader>ww :edit ~/journals/index.md<CR> -nnoremap <leader>wn :edit ~/journals/gtd.md<CR> -nnoremap <leader>wf :FzfNoteFiles<CR> -nnoremap <leader>wr :FzfNoteRg<space> |