From 94ff554d8d7c76dbd3e46b4b7ff6c4b134a48e0a Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 30 Apr 2021 13:28:39 +0200 Subject: [PATCH] Update readme and debug mappings --- README.md | 6 +++++- plugin/zettelkasten.vim | 8 ++++---- 2 files changed, 9 insertions(+), 5 deletions(-) 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