From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 9681 invoked from network); 18 Aug 2021 09:26:58 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 18 Aug 2021 09:26:58 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 1B924368F0 for ; Wed, 18 Aug 2021 05:26:57 -0400 (EDT) (envelope-from bounce.mMb6807aa0e9520cbbc2e097ad.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 18432323F520; Wed, 18 Aug 2021 05:26:57 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=o+06Axld header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f180.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1629278816; bh=IfLDiRNUbmee2b6y W70OCI64DpQJaVbmLPBe2q5hERQ=; b=gyd3dAKyKQ9a7kWHC+NrCRxSFyvhd8yj aawDNWgRcxgmQl6LmI7IyZEjYVhZJCa9Gf0ZGVRiTRkw7rUFP5anichM3l/jkg/v O68/Jv84pOS0CPLGI/ubIAY+RAXishZnXZ0oXPX3CE+WzFEOCTN2xIzl7TO5XsSe 2e5ohMEUYn8= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1629278816; b=WhjzhismbaOu7bdMv16gZr3UBQEKktbECoeis0pPR+RqTUudwz bW1yIcmBF77G6q4r7yhNjvQTUIcXiqN2kIREclRKtjNup9ZogpX4fTnZ2WLvRigR 5ILFjj8KbVPzhymh17kDQQM6hU8euhc802R3LC8ZNe/7GwnhVC+J7wBQA= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=o+06Axld header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f180.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=o+06Axld header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.180 (mail-lj1-f180.google.com); spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f180.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=JhtirNH5; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f180.google.com policy.ptr=mail-lj1-f180.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; bh=lIYSP/ATxZhdq5Z8EpoXt8CUPB7hFgsdbjY35XzVq9A=; b=BIrK8pZdSIQi 5SfEME5NrjVE94sww6etaugj3yvqXEaIg/bZoEXwGkETCk0+aTpeiMw0k1wsqZnz 8XUuXUAYK5zi2qHMT6VIcOwqhPAuHmGmhBzCzAJ2/N1E1ZjXtPBC9eeMn6tZhpU7 EGBiZqNlnENv/BUFiVdUBDSNqP0KpuE= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 2A48B323F064 for <9fans@9fans.net>; Wed, 18 Aug 2021 05:26:47 -0400 (EDT) (envelope-from ole.hjalmar.kristensen@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id FD68B41376A; Wed, 18 Aug 2021 05:26:47 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1629278807; b=nlCM3oOIb578SiQS0/m0vuf6eBIU5HTsGMHYeR3JaCkvStwGry 4JJOhUZ+gNKbe+iJRW3wr8Bmu6DQTZwnCvOdOc432LNyPf9fpokzpUrBiJMD+2Li rNo3PQkbWEN8h5aw9pWWgHCQgdOeRHvJVhyfYJHkmbnHePRbX3FKGLWeqh9KqGya ypwExIuCy2KhUsxDa96IU+RZ1p8lNwtGMXg8yiL+xnDWkvCS0cOa2dEfd0GmNH3F IJHHKTzAk2dOrdlyn2wXfbbIooVUgu18f0V1Ev1x1hiNVYZ6lYuSAZPQpZjqhMGd 3pmLSRe9ZC179FNJ/sj2xUx5UqzmUuHg3akQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1629278807; bh=rQbQ2MJqOyppwhVTNkeSMGjT5yQ9+WsTzRPk4Z4SDas=; b=DmxncpajN9iZ OrDkiPAxDHW6ApJ53Wnd46/AapwSOddv+qYQXlN9rPV0oYCchNKEbI2lOZpY9two ADtzTOSfY5GtQKPx9fpBBonJx+hKc1qJ5+MpaeIt8IF50uQ0GE1snoDKJJtOqQb2 uDCrL5NkvXFyu5NccKYdVEVVkTujrP1BugBWHA/RastCW40c5KcNrBw8R8PJ4Ndo n/P4tV/Hw1DqM/qK3PtMwhF8fJb6oDDVgNF0cLmo1W2WRajRf2u3nhcg7XnSuzwE 7AI2MN2i9U3kpqauZheOQ7v8VGihd3fSz3tMsp4NjiFIZOmMvNzOvKhsW3NcGru5 M+qLWmAwYA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=o+06Axld header.a=rsa-sha256 header.s=20161025 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.208.180 (mail-lj1-f180.google.com); spf=pass smtp.mailfrom=ole.hjalmar.kristensen@gmail.com smtp.helo=mail-lj1-f180.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=JhtirNH5; x-me-sender=none; x-ptr=pass smtp.helo=mail-lj1-f180.google.com policy.ptr=mail-lj1-f180.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvtddrleeggdejheculddtuddrgeduhedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghn shhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtne cunecujfgurhepgghfjgfhfffkuffvtgesrgdtreertddtjeenucfhrhhomhepqfhlvgdq jfhjrghlmhgrrhcumfhrihhsthgvnhhsvghnuceoohhlvgdrhhhjrghlmhgrrhdrkhhrih hsthgvnhhsvghnsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeefffdt tddvhfekteehhffffeduleefieffhffgteehkeduveekkefgvedtieenucffohhmrghinh epsggvnhhghhgrnhgtohgtkhdrtghomhdpthhophhitggsohigrdgtohhmnecukfhppedv tdelrdekhedrvddtkedrudektdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epihhnvghtpedvtdelrdekhedrvddtkedrudektddphhgvlhhopehmrghilhdqlhhjuddq fhdukedtrdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeoohhlvgdrhhhjrghlmh grrhdrkhhrihhsthgvnhhsvghnsehgmhgrihhlrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'ole.hjalmar.kristensen@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="ole.hjalmar.kristensen@gmail.com"; helo=mail-lj1-f180.google.com; client-ip=209.85.208.180 Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 18 Aug 2021 05:26:46 -0400 (EDT) (envelope-from ole.hjalmar.kristensen@gmail.com) Received: by mail-lj1-f180.google.com with SMTP id n7so3991402ljq.0 for <9fans@9fans.net>; Wed, 18 Aug 2021 02:26:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=rQbQ2MJqOyppwhVTNkeSMGjT5yQ9+WsTzRPk4Z4SDas=; b=JhtirNH5AFL33NShpuDcALGd1ADBDm5+Cjq/Da3QczZF1jzISaZr17n1vAn4eo7li6 Qd43j22WlxsXlB/oSELWVTO+xWZt9vthBR/Z56e2PQoWVvX/xSDviykJmUTAIsX3V/QA 8dPnSyaap/wMimGW2Nb7CnbN1A6n6Wwq+orshnUIHo/buu4Kp0ruLcvzgf9r674sj0HB lOHgPeX8bx2hncbtm2uSiUF/ZhNNQjB/lrhAgwYL5Taty8qUz95ReLQV5jCBBCj4/92q UabuPDVxko3NbNPr5nFTmk93HXS8+/l70lBq4Dyug01Ot0sr1N6xB8UeqwpRhSH2aLQM fISw== X-Gm-Message-State: AOAM533Ag0MNtasEb4Ta6WtdO+4V1HWbuY8wGIJZEqafkMnMVCR7Sjog lL68sQF6FJteaEVo0Vnda6SzS/2LrTrMIdSVCpAPogm8 X-Google-Smtp-Source: ABdhPJx5GfghRDVPvOmUx9GGmEJ+G1UTqEl8M96qx68XFA0QfD0/iy2Z+1f/z63DempYcbCm/QhtYjOoHKhX937c5go= X-Received: by 2002:a2e:7a09:: with SMTP id v9mr6991624ljc.397.1629278805097; Wed, 18 Aug 2021 02:26:45 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ole-Hjalmar Kristensen Date: Wed, 18 Aug 2021 11:26:33 +0200 Message-ID: Subject: Re: [9fans] Codebase navigation and using tags files in acme To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary="0000000000006b00cb05c9d208a2" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 6bc38bd8-0006-11ec-ae3f-84482488ebe6 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZjhjZWFjMTJkZjlkYTY3NC1NYjY4MDdhYTBlOTUyMGNiYmMyZTA5?= =?UTF-8?B?N2FkPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mb6807aa0e9520cbbc2e097ad:1:HKbgSYhZ6m02j4oa5Xa-fSDr3S5nubpizk9u01oRXoY --0000000000006b00cb05c9d208a2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On linux, you can run ctags -x and postprocess the file to append the line number to the file name instead of having i as a separate field. That way, you can locate the symbol in the tags file, and right-click on the file:linenumber. Also, on linux, we have acme-lsp, which in principle works with any LSP server. I have tested it with go and C/C++. On Tue, Aug 17, 2021 at 10:22 PM Ben Hancock wrote: > Hello 9fans, >=20 > I've just recently started using the acme editor and am really enjoying > it, and trying to get the hang of the "acme way" of doing things. One > bit of functionality that I'm familiar with from other editors is the > ability to easily look up a function or symbol definition within a > codebase. In Emacs and vi, this is done by generating tags files (etags > or ctags), which those editors can parse and allow you to easily jump to > a definition of the symbol under the point/cursor. >=20 > What's the preferred method or workflow for achieving this in acme? I > have tried passing a selected symbol to 'g -n' in the window's tag, > using the Mouse-2 + Mouse-1 chord. That gets me part of the way there > but isn't effective if the file where the symbol is defined happens to > be in another directory. I feel like I'm missing something. >=20 > Many thanks! >=20 > - Ben >=20 > -- > Ben Hancock > www.benghancock.com ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf8ceac12df9da674-Mb6807= aa0e9520cbbc2e097ad Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --0000000000006b00cb05c9d208a2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On linux, you can run ctags -x and postprocess= the file to append the line number to the file name instead of having i as= a separate field. That way, you can locate the symbol in the tags file, an= d right-click on the file:linenumber.

Also, on linux, = we have acme-lsp, which in principle works with any LSP server. I have test= ed it with go and C/C++. 

=
On Tue, Aug 17, 2021 at 10:22 PM Ben = Hancock <ben@benghancock.com&= gt; wrote:
Hel= lo 9fans,

I've just recently started using the acme editor and am really enjoying=
it, and trying to get the hang of the "acme way" of doing things.= One
bit of functionality that I'm familiar with from other editors is the <= br /> ability to easily look up a function or symbol definition within a
codebase. In Emacs and vi, this is done by generating tags files (etags or ctags), which those editors can parse and allow you to easily jump to a definition of the symbol under the point/cursor.

What's the preferred method or workflow for achieving this in acme? I <= br /> have tried passing a selected symbol to 'g -n' in the window's = tag,
using the Mouse-2 + Mouse-1 chord. That gets me part of the way there
but isn't effective if the file where the symbol is defined happens to =
be in another directory. I feel like I'm missing something.

Many thanks!

- Ben

--
Ben Hancock
www.benghancock.com

------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/Tf8ceac12df9da674-M693d75f3d4f4ad66ecaa27= e0
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription
= --0000000000006b00cb05c9d208a2--