fixed follow link

This commit is contained in:
Rene Schallner
2021-11-21 01:44:12 +01:00
parent d4e07474cf
commit d30e4c96a7
2 changed files with 6 additions and 2 deletions

View File

@@ -109,15 +109,19 @@ end
-- find the file linked to by the word under the cursor
--
follow_link = function(opts)
vim.cmd('normal yi]')
local word = vim.fn.getreg('"0')
builtin.find_files({
prompt_title = "Follow link to note...",
cwd = zkcfg.home,
default_text = vim.fn.expand("<cword>"),
default_text = word,
find_command = { zkcfg.daily_finder },
entry_maker = zk_entry_maker,
})
end
--
-- find_notes:
--