selfint / code-blocks

Manipulate code as blocks
https://marketplace.visualstudio.com/items?itemName=selfint.code-blocks
MIT License
5 stars 0 forks source link

Improve navigation commands #166

Open selfint opened 1 year ago

selfint commented 1 year ago

Navigation commands are ify at best currently.

This is because when we switched to node-based vs block-based objects, navigating to parent can sometime mean the cursor doesn't move.

We can probably easily fix this, by just iterating up the syntax tree until the "parent" doesn't start at the current cursor location.