ziontee113 / syntax-tree-surfer

A plugin for Neovim that helps you surf through your document and move elements around using the nvim-treesitter API.
MIT License
472 stars 10 forks source link

Back to previous selection #19

Open giddie opened 9 months ago

giddie commented 9 months ago

When navigating around in visual mode, focused on a particular node, then jumping up to the parent, there is currently no way to jump back to the previously selected child. The only option is to jump down to the first child, then along the children until the original node is reached.

It would be really nice to have a "previous selection" binding to jump back in case we end up somewhere unexpected.