blob: ae2e2d78c84118d631fcc89df1ce5fa42337ee88 [file] [log] [blame]
Skyler Greye75e9262022-09-04 22:02:09 +01001let g:wiki_root = '~/Documents/wiki'
Skyler Greya0ddff72022-09-04 22:07:08 +01002let g:wiki_filetypes = ['md']
3let g:wiki_link_extension = '.md'
4
5
6let g:wiki_map_create_page = 'WikiCreateTransform'
7function 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')
13endfunction
Skyler Greyaff1ce22022-09-05 03:17:38 +010014
15nnoremap <silent> <Leader>wf :WikiFzfPages<CR>