mirror of
https://github.com/Ascyii/telekasten.nvim.git
synced 2026-01-01 06:14:23 -05:00
fixed follow link
This commit is contained in:
@@ -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:
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user