Add full :tree-sitter-tree
in addition to existing :tree-sitter-subtree
#12149
Labels
C-enhancement
Category: Improvements
I would love to see a
:tree-sitter-tree
command that opens a side buffer containing the full document parse tree. This exists in Zed and Neovim::tree-sitter-subtree
can work in most cases, if you just select the entire document and then run the command. But it is not ergonomic to use; the popup sticks around to where the cursor is, and only stays visible in visual mode - you can't edit the document and still see the tree.I would try to implement this myself but I'm not sure how to go about programatically creating a new buffer panel to the side with set dimensions and all that. The rest of the code can easily be copied from the existing command source, without the selection-related stuff.
helix/helix-term/src/commands/typed.rs
Line 2137 in e1d1a5c
The text was updated successfully, but these errors were encountered: