From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Randy Taylor Newsgroups: gmane.emacs.devel Subject: Re: New on shelf: Tree-sitter explorer Date: Thu, 17 Nov 2022 01:34:44 +0000 Message-ID: References: <83BC69A0-1643-4A02-B52C-819FA208E7CE@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8088"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Yuan Fu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 17 02:36:05 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovToz-0001mu-BI for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 02:36:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovTo4-0004uR-Ky; Wed, 16 Nov 2022 20:35:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovTo0-0004t1-Dj for emacs-devel@gnu.org; Wed, 16 Nov 2022 20:35:05 -0500 Original-Received: from mail-4323.proton.ch ([185.70.43.23]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovTnw-0005MD-Ag for emacs-devel@gnu.org; Wed, 16 Nov 2022 20:35:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rjt.dev; s=protonmail2; t=1668648894; x=1668908094; bh=Jc3efqyv2JFeAJhqVRRla8nZ9eKtwd0t+QU6V7SNPSM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=A3S+mNkwpNC8hXDG37pIcRkj57OK+9MAliaYnXMxhucdk6EadfWwM/tZVVF4+NdIt JwIQTk1XG3Qot1OZSJW4FPRaCeQjPb6IGXlUrJxmasOw8RAMix48B0fwA/m3fnb90V NtVe4+qKmpU28U8wfW1ug5DAVlJqETgzPFnCNk/KjGZgpR71Zzrb65dwiyHAVZmRd6 2Nq5vQ0vxwdLy9I+Mpfj1XAxpw2XsL5q4iaEhc4gDOcXPTYUCB00ISJUsolYX8xFxA rNSLHnHFpZ9KMc93VKV4Fh8bdMimyFWD5wYKJ4GuDQAsqSr/+vL0TYu53vwUEKkanm NtG2FqGYHeQUw== In-Reply-To: <83BC69A0-1643-4A02-B52C-819FA208E7CE@gmail.com> Feedback-ID: 44397038:user:proton Received-SPF: pass client-ip=185.70.43.23; envelope-from=dev@rjt.dev; helo=mail-4323.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299998 Archived-At: On Wednesday, November 16th, 2022 at 18:54, Yuan Fu wro= te: >=20 > FYI I added a command treesit-explore-mode, which pops up a window showin= g the syntax tree of the current buffer in real time. This should be useful= for folks working on tree-sitter :-) >=20 > Yuan Looks and works great, thanks! I like that the explorer highlights the code that the node represents - per= haps the inverse could be implemented too? That is, in the buffer being exp= lored (i.e. the code), when point is moved to the start of a node (or withi= n a node), it would be highlighted in the explorer.