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.97k stars 2.7k forks source link

Vim Various Text Objects #15293

Open ovidius72 opened 1 month ago

ovidius72 commented 1 month ago

Check for existing issues

Describe the feature

There a plugin that allows to use 30 extra text objects. https://github.com/chrisgrieser/nvim-various-textobjs Some of them are really useful and I use them all the days. I was wondering if it is possibile to add them in zed (or at least some of them).

Thanks.

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

No response

Avi-D-coder commented 1 week ago

Adding support for tree-sitter and or lsp text object would also be great. https://github.com/nvim-treesitter/nvim-treesitter-textobjects

AlbertMarashi commented 1 week ago

Here i thought something like this would be implemented

AlbertMarashi commented 1 week ago

How hard would it be to add support for a zed editor command that allows anyone to run any kind of arbitrary tree-sitter queries?

"(": ["editor::scm_query", "...SCM QUERY HERE..."]