From 384e750b1d43665b151cfccfcd930463cafffc1b Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Wed, 17 Jun 2020 13:53:50 +0300 Subject: restructure personal wiki --- .config/nvim/init.vim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 7dcf6a7..9c5126f 100755 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -162,14 +162,14 @@ autocmd FileType vimwiki setlocal formatprg=/home/yigit/bin/sentences function! CreateNote() py3 import uuid - exe "e! " . fnameescape("~/Nextcloud/personal_wiki/box/" . py3eval('str(uuid.uuid4())[:6]') . ".wiki") + exe "e! " . fnameescape("~/Nextcloud/personal_wiki/text/box/" . py3eval('str(uuid.uuid4())[:6]') . ".wiki") let l:text="= up =\n\n= down =\n\n= keywords =\n\n" put =l:text norm gg endfunction function! CreatePaper(citekey) - exe "e! " . fnameescape("~/Nextcloud/personal_wiki/papers/" . a:citekey . ".wiki") + exe "e! " . fnameescape("~/Nextcloud/personal_wiki/text/papers/" . a:citekey . ".wiki") let l:timestap="%date " . strftime("%F") let l:text="= Came From =\n\n= Takeaways =\n\n= Might Go To =\n\n" @@ -179,7 +179,7 @@ function! CreatePaper(citekey) endfunction function! CreateReference(citekey) - exe "e! " . fnameescape("~/Nextcloud/personal_wiki/reference/" . a:citekey . ".wiki") + exe "e! " . fnameescape("~/Nextcloud/personal_wiki/text/reference/" . a:citekey . ".wiki") let l:timestap="%date " . strftime("%F") let l:text="= Literature Notes =\n\n= Citation =\n\n" @@ -458,13 +458,13 @@ let g:startify_custom_header = "}}} "{{{ vimwiki -let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki', - \ 'path_html': '/home/yigit/Nextcloud/personal_wiki_html', +let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki/text', + \ 'path_html': '/home/yigit/Nextcloud/personal_wiki/html', \ 'auto_diary_index': 1, \ 'auto_generate_links': 1, \ 'auto_generate_tags': 1, \ 'automatic_nested_syntaxes': 1, - \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/', + \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/templates', \ 'template_default': 'default_template', \ 'template_ext': '.html', \ 'auto_export': 1, -- cgit v1.2.3-70-g09d2