zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.38k stars 2.61k forks source link

support treesitter incremental_selection #14317

Open reaink opened 1 month ago

reaink commented 1 month ago

Check for existing issues

Describe the feature

add treesitter incremental_selection command

https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#incremental-selection

If applicable, add mockups / screenshots to help present your vision of the feature

No response

JosephTLyons commented 1 month ago

Hey @reaink, we currently have editor: select larger syntax node (ctrl-shift-right) and editor: select smaller syntax node (ctrl-shift-left):

https://github.com/user-attachments/assets/cba1ead6-c86c-49a9-a76a-d46b8ecd9a3d

I'm not too familiar with incremental_selection, does this cover your needs?