summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorYigit Sever2020-06-17 13:53:50 +0300
committerYigit Sever2020-06-17 13:53:50 +0300
commit384e750b1d43665b151cfccfcd930463cafffc1b (patch)
tree869e1d7ab7bd8d0e94d037ff814cee205a711e56 /.config
parente14d9095c4aa7a83c2602c22bef95fa315b2a227 (diff)
downloaddotfiles-384e750b1d43665b151cfccfcd930463cafffc1b.tar.gz
dotfiles-384e750b1d43665b151cfccfcd930463cafffc1b.tar.bz2
dotfiles-384e750b1d43665b151cfccfcd930463cafffc1b.zip
restructure personal wiki
Diffstat (limited to '.config')
-rwxr-xr-x.config/nvim/init.vim12
1 files changed, 6 insertions, 6 deletions
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
162 162
163function! CreateNote() 163function! CreateNote()
164 py3 import uuid 164 py3 import uuid
165 exe "e! " . fnameescape("~/Nextcloud/personal_wiki/box/" . py3eval('str(uuid.uuid4())[:6]') . ".wiki") 165 exe "e! " . fnameescape("~/Nextcloud/personal_wiki/text/box/" . py3eval('str(uuid.uuid4())[:6]') . ".wiki")
166 let l:text="= up =\n\n= down =\n\n= keywords =\n\n" 166 let l:text="= up =\n\n= down =\n\n= keywords =\n\n"
167 put =l:text 167 put =l:text
168 norm gg 168 norm gg
169endfunction 169endfunction
170 170
171function! CreatePaper(citekey) 171function! CreatePaper(citekey)
172 exe "e! " . fnameescape("~/Nextcloud/personal_wiki/papers/" . a:citekey . ".wiki") 172 exe "e! " . fnameescape("~/Nextcloud/personal_wiki/text/papers/" . a:citekey . ".wiki")
173 173
174 let l:timestap="%date " . strftime("%F") 174 let l:timestap="%date " . strftime("%F")
175 let l:text="= Came From =\n\n= Takeaways =\n\n= Might Go To =\n\n" 175 let l:text="= Came From =\n\n= Takeaways =\n\n= Might Go To =\n\n"
@@ -179,7 +179,7 @@ function! CreatePaper(citekey)
179endfunction 179endfunction
180 180
181function! CreateReference(citekey) 181function! CreateReference(citekey)
182 exe "e! " . fnameescape("~/Nextcloud/personal_wiki/reference/" . a:citekey . ".wiki") 182 exe "e! " . fnameescape("~/Nextcloud/personal_wiki/text/reference/" . a:citekey . ".wiki")
183 183
184 let l:timestap="%date " . strftime("%F") 184 let l:timestap="%date " . strftime("%F")
185 let l:text="= Literature Notes =\n\n= Citation =\n\n" 185 let l:text="= Literature Notes =\n\n= Citation =\n\n"
@@ -458,13 +458,13 @@ let g:startify_custom_header =
458"}}} 458"}}}
459 459
460"{{{ vimwiki 460"{{{ vimwiki
461let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki', 461let g:vimwiki_list = [{'path': '/home/yigit/Nextcloud/personal_wiki/text',
462 \ 'path_html': '/home/yigit/Nextcloud/personal_wiki_html', 462 \ 'path_html': '/home/yigit/Nextcloud/personal_wiki/html',
463 \ 'auto_diary_index': 1, 463 \ 'auto_diary_index': 1,
464 \ 'auto_generate_links': 1, 464 \ 'auto_generate_links': 1,
465 \ 'auto_generate_tags': 1, 465 \ 'auto_generate_tags': 1,
466 \ 'automatic_nested_syntaxes': 1, 466 \ 'automatic_nested_syntaxes': 1,
467 \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/', 467 \ 'template_path': '/home/yigit/Nextcloud/personal_wiki/templates',
468 \ 'template_default': 'default_template', 468 \ 'template_default': 'default_template',
469 \ 'template_ext': '.html', 469 \ 'template_ext': '.html',
470 \ 'auto_export': 1, 470 \ 'auto_export': 1,