From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: New on shelf: Tree-sitter explorer Date: Wed, 16 Nov 2022 19:28:02 -0800 Message-ID: <1D5B5167-4DE0-44CE-AAE0-379F016E8556@gmail.com> References: <83BC69A0-1643-4A02-B52C-819FA208E7CE@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17153"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Randy Taylor Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Nov 17 04:28:52 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 1ovVa5-00049V-2x for ged-emacs-devel@m.gmane-mx.org; Thu, 17 Nov 2022 04:28:49 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovVZQ-0004cZ-5Z; Wed, 16 Nov 2022 22:28: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 1ovVZP-0004cL-53 for emacs-devel@gnu.org; Wed, 16 Nov 2022 22:28:07 -0500 Original-Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovVZN-0005ud-MQ for emacs-devel@gnu.org; Wed, 16 Nov 2022 22:28:06 -0500 Original-Received: by mail-pj1-x102b.google.com with SMTP id o7so514717pjj.1 for ; Wed, 16 Nov 2022 19:28:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xmpykn1Ev5dqq3sx41Qg3JpGyZGMbNzH6BN6vQXWTk0=; b=NbUsm45PgIsYOVorv9W1z9e9cDYt4xWDe/wLP3KIDRyKFgV6TO4g76NX45uT0NptAh PohguLzYV0soJrwUJKBwEInREf4t9A6/0ufViw+4Jtgp2nhiTXXQ1NjQ534anENxGH2y CiSEDc+MxZbfwntasmkHfYeDXmP2IH/DAHbIG4tSbUqyK0spIHrkh68x8g96pcbIU4+u k5BoJcUwLKDB1I7ox+i9/RTWh3Pe9drEcHXIK5roU9op87JrB4TZh0aQ4l2S9vXIa6iV KoCrFiUluDUGt8lKaGXmvVbV7ZXALG9R/ANnkBhHSi22lSAapkjK/P+cOjFBszxbKMrW UbCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xmpykn1Ev5dqq3sx41Qg3JpGyZGMbNzH6BN6vQXWTk0=; b=Fj31c+kL09AX0ajootxEAJuIbtLkzgEGzO0KMPnp6QUfhJH2aeR0PqbdeCRjBccjQl htgPBqyHcGBXqDJvW4VLunbrv7gBUlmwiX2GlowkwDpdTeAiTFILktL20Jrf2rxgtAdj NOOl502aV+CipAMIlM8xCLIUoly8LlN5n0UvJe3H8h/Yb+oFnLz2mPI4tk7dtZeWFyJy b6DzywNlcgVDmjec0Z8O+muGDOOXmGMOcM34wzONBO8O/7RdmRUTaBCzlWaHV0y0l1O/ /QEroxJQkWEEk+kCJ/M9zpROYiTUqiDUyiO/vhrExzi6EIefFMRXjgbFO78G+JHk60dm Gmog== X-Gm-Message-State: ANoB5plNlvIQ8YBjccMq5lKSsaKBRArWXdBXx1+nXYv+2ShIAunYtrox ttZAxNU1+ZxOEp0Y1RZBfir/6gjzDps= X-Google-Smtp-Source: AA0mqf4E6UAJeRm3iok9pvLQGnn6iK4SSVYaBfvXJIaRSnCmfOZZcFWe8zA18IXFCj0KkrBFtWQlBg== X-Received: by 2002:a17:90a:bf13:b0:213:5d6:8280 with SMTP id c19-20020a17090abf1300b0021305d68280mr6607254pjs.185.1668655684029; Wed, 16 Nov 2022 19:28:04 -0800 (PST) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id n15-20020a170902e54f00b001873aa85e1fsm13211966plf.305.2022.11.16.19.28.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Nov 2022 19:28:03 -0800 (PST) In-Reply-To: X-Mailer: Apple Mail (2.3696.120.41.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=casouri@gmail.com; helo=mail-pj1-x102b.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:300000 Archived-At: > On Nov 16, 2022, at 5:34 PM, Randy Taylor wrote: >=20 > On Wednesday, November 16th, 2022 at 18:54, Yuan Fu = wrote: >>=20 >> 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 :-) >>=20 >> Yuan >=20 > Looks and works great, thanks! >=20 > 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. Yuan=