- Notifications
You must be signed in to change notification settings - Fork244
-
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. |
BetaWas this translation helpful?Give feedback.
All reactions
👀 1
Replies: 2 comments 1 reply
-
that would be really nice! where do I need to put this for it to work? |
BetaWas this translation helpful?Give feedback.
All reactions
-
If you're using an init.vim as your neovim config file, just paste everything in there, it's all written in vimscript. |
BetaWas this translation helpful?Give feedback.
All reactions
-
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}) |
BetaWas this translation helpful?Give feedback.