jakewvincent / mkdnflow.nvim

Fluent navigation and management of markdown notebooks
GNU General Public License v3.0
695 stars 41 forks source link

make anchor link jump support jumplist #130

Closed HUAHUAI23 closed 1 year ago

HUAHUAI23 commented 1 year ago

Set a mark before the anchor links jump doesn't seem to support jumplist eg: <ctrl-i> and <ctrl-o>

https://user-images.githubusercontent.com/43649186/212915179-7625754f-2792-4044-9ae0-67a2b10abf6e.mp4

so i add vim.cmd [[ normal! m' ]] https://neovim.discourse.group/t/how-to-add-the-current-cursor-position-to-the-jump-list/1585

https://user-images.githubusercontent.com/43649186/212915739-efbc9f28-fd85-487c-aeee-a9de10895e88.mp4

jakewvincent commented 1 year ago

Closing this PR, as this should already be working. See line 193 in the cursor.lua file, in the go_to_heading function:

vim.api.nvim_buf_set_mark(0, '`', position[1], position[2], {})

Please do open an issue if this does not seem to be working properly. Thanks!