Skyler Grey | e75e926 | 2022-09-04 22:02:09 +0100 | [diff] [blame] | 1 | let g:wiki_root = '~/Documents/wiki' |
Skyler Grey | a0ddff7 | 2022-09-04 22:07:08 +0100 | [diff] [blame] | 2 | let g:wiki_filetypes = ['md'] |
| 3 | let g:wiki_link_extension = '.md' |
| 4 | |
| 5 | |
| 6 | let g:wiki_map_create_page = 'WikiCreateTransform' |
| 7 | function WikiCreateTransform(name) abort |
| 8 | let l:name = wiki#get_root() . '/' . a:name |
| 9 | " If the file is new, then append the current date |
| 10 | return filereadable(l:name) |
| 11 | \ ? a:name |
| 12 | \ : a:name . '_' . strftime('%Y%m%d') |
| 13 | endfunction |
Skyler Grey | aff1ce2 | 2022-09-05 03:17:38 +0100 | [diff] [blame^] | 14 | |
| 15 | nnoremap <silent> <Leader>wf :WikiFzfPages<CR> |