diff --git a/README.md b/README.md index a20efc5..38a8ef5 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,10 @@ next up: * [ ] implement custom anchor creation function to go with custom regex * [ ] opening zettel should use generated link table for full filename anchor search * [x] need a default zettel directory to look in - * [ ] implement fallback to filename + * [ ] link following order should be: + * [x] look up & follow anchor + * [ ] look for filename in current dir (or relative/absolute link loc) + * [ ] implement fallback to filename in any of zettel subdirs ## TODO: needed functionality @@ -54,6 +57,7 @@ next up: * [ ] keep tree of notes cached? * [ ] zettel maintenance * [ ] fix malformed anchors + * [ ] fix-link function which looks for most similar file to be found and renames file/link automatically (after confirmation) * [ ] add missing anchors * [ ] 'rename' anchor (goes against stability?) * [ ] recognize duplicate anchors (in directory, when listing, etc) diff --git a/plugin/zettelkasten.vim b/plugin/zettelkasten.vim index 0616342..8476b75 100644 --- a/plugin/zettelkasten.vim +++ b/plugin/zettelkasten.vim @@ -15,9 +15,9 @@ augroup END " example plug mappings " nnoremap Zettel_Link :call zettelkasten#zettel_link() -nnoremap zettel_link_create :lua require 'zettelkasten'.create_zettel() -vnoremap zettel_link_create :lua require 'zettelkasten'.create_zettel() -nmap i zettel_link_create -vmap i zettel_link_create +nnoremap zettel_link_open :lua require 'zettelkasten'.open_link() +vnoremap zettel_link_open :lua require 'zettelkasten'.open_link() +nmap i zettel_link_open +vmap i zettel_link_open let g:loaded_zettelkasten = 1