How to create an evil text object for bash functions using emacs-tree-sitter? #159
Replies: 3 comments
-
I have no idea on how to do that in emacs. But it would be great to team up and share queries as we have already a bunch of textobjects defined here for Neovim https://github.com/nvim-treesitter/nvim-treesitter-textobjects. In case anyone wants to start a similar project for emacs |
Beta Was this translation helpful? Give feedback.
-
This depends on the mechanism to define new text objects in For a simple text object like a function, A more generic implementation could define interfaces to plug in language-specific text-object queries, like what @theHamsta mentioned above. |
Beta Was this translation helpful? Give feedback.
-
I have started a project which does this. You can check it out at https://github.com/meain/evil-textobj-tree-sitter . The queries are actually coming from the neovim project like @theHamsta mentioned. |
Beta Was this translation helpful? Give feedback.
-
How to create an evil text object for bash functions using emacs-tree-sitter?
Beta Was this translation helpful? Give feedback.
All reactions