[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New on shelf: Tree-sitter explorer

From: Yuan Fu
Subject: Re: New on shelf: Tree-sitter explorer
Date: Wed, 16 Nov 2022 19:28:02 -0800

> On Nov 16, 2022, at 5:34 PM, Randy Taylor <dev@rjt.dev> wrote:
> On Wednesday, November 16th, 2022 at 18:54, Yuan Fu <casouri@gmail.com> wrote:
>> FYI I added a command treesit-explore-mode, which pops up a window showing 
>> the syntax tree of the current buffer in real time. This should be useful 
>> for folks working on tree-sitter :-)
>> Yuan
> Looks and works great, thanks!
> I like that the explorer highlights the code that the node represents - 
> perhaps the inverse could be implemented too? That is, in the buffer being 
> explored (i.e. the code), when point is moved to the start of a node (or 
> within a node), it would be highlighted in the explorer.

Good news: if you select text in the source buffer, the enclosed nodes are 
highlighted in the syntax tree.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]