Replies: 2 comments 1 reply
-
that would be really nice! where do I need to put this for it to work? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Claude came up with a nice Lua version that seems to work for both Wiki style vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.keymap.set('n', '<Tab>', '/\\(\\[\\[\\|\\[.\\{-}\\](\\)<CR>:nohlsearch<CR>', { buffer = true })
vim.keymap.set('n', '<S-Tab>', '?\\(\\[\\[\\|\\[.\\{-}\\](\\)<CR>:nohlsearch<CR>', { buffer = true })
end
}) |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I wrote a function to navigate between wikilinks with the Tab key. If only one link is present in the files, it will also open it.
I think it would be cool to have something like this as a new feature.
Beta Was this translation helpful? Give feedback.
All reactions