From 28f7f304c1e40317d7465f9f6751b778d8d0772f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Thu, 1 Oct 2020 09:17:44 +0200 Subject: [PATCH] nvim: Fix zettelkasten links Fixed links in zk which do not follow the exact pattern of anchor space title, allowing for wiki-style links and so on. --- nvim/.config/nvim/plugin/wiki.vim | 3 +-- nvim/.config/nvim/spell/en.utf-8.add | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/nvim/.config/nvim/plugin/wiki.vim b/nvim/.config/nvim/plugin/wiki.vim index 6fd5d57..22a4911 100644 --- a/nvim/.config/nvim/plugin/wiki.vim +++ b/nvim/.config/nvim/plugin/wiki.vim @@ -40,7 +40,7 @@ endfunction let g:wiki_map_link_create = 'ZettelLinkCreate' let g:zettel_anchor_separator = ' ' -let g:zettel_anchor_pattern = '[:/]\d\{10,14} ' +let g:zettel_anchor_pattern = '[:/]\d\{10,14}' " Returns the full path to the Zettel owning the anchor id passed in function! s:GetZettelPath(anchor) abort " match first 10-digit-beggining file ending with .md @@ -58,7 +58,6 @@ function! s:GetZettelPath(anchor) abort endfunction command! -nargs=1 ZettelOpen execute ":e " . s:GetZettelPath() - " Uses the Zettel Anchor ID instead of the whole link structure to traverse " the whole Wiki directory from its root and opens first fitting Zettel function! ZettelOpenAtCursor(...) abort diff --git a/nvim/.config/nvim/spell/en.utf-8.add b/nvim/.config/nvim/spell/en.utf-8.add index e40bcaa..906ba3c 100644 --- a/nvim/.config/nvim/spell/en.utf-8.add +++ b/nvim/.config/nvim/spell/en.utf-8.add @@ -60,3 +60,10 @@ presidentialization Polanyi iconicity Gramsci's +feminization +tertiarization +impactful +glyphosate +Monstanto +univseralism +universalisms