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_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24329 invoked from network); 18 Aug 2021 06:53:11 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 18 Aug 2021 06:53:11 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 3453138D58 for ; Wed, 18 Aug 2021 02:53:09 -0400 (EDT) (envelope-from bounce.mM01a99fa6f5ef08418c3e312f.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 273C13301790; Wed, 18 Aug 2021 02:53:09 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=oat.nine.sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1629269589; bh=59GS1hZ5gT6PLPXH Mjt9SCr1mEjMgDbgArKpPG8VrBY=; b=jgZ4ilNG7Jj5H2CSqyasW7Zd5aM2o/9b UhMbDnXkjCSlmWkCHW5F2/ohraXBlKCyGInHo27v/+wvnhF3vWmlKng9qs2UTqio goAInmL+deqJg/HIZbgmIK6o+/aDWOYF6b227uAIZyYHovnb1FBh5RwoxE4USAiE LQ1TlPrMM+0= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1629269589; b=PI2naYIATp/sWlN2S28WTEHnRjAM8xiEaVd72BSeqPAHUx80qX VOwppEUXE9YsuuBByxT9B8Mx1xKjSomOMVVTOsOFQm2y1i05o627jGMciUvHLM+L EAJa0CznkrnpUvhRE1jI0psYLZTvfmYp3DeI+WbNL1iPsslj2xMOJ5UGk= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=oat.nine.sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (oat.nine.sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=oat.nine.sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=oat.nine.sirjofri.de policy.ptr=oat.nine.sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: oat.nine.sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: oat.nine.sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; bh=59GS1hZ5gT6PLPXHMjt9SCr1mEjMgDbgArKpPG8VrBY=; b=QbPhvIpn3QL5 MmHwKqSQBs1qeyPwKzcDQ5buCTNHmeXXF1AAkDucV94jFHgKl0oYCYrWtUC5mu7D z9xONl8Fdh5XtMh4zSyy8uClvLGVv2xeea29VXoIAuDjN/Dljn5E5Q4SL4rsjjP/ BsDFlLP/FSUquXF0CN8QJAfE/k2MApM= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 5F9273301395 for <9fans@9fans.net>; Wed, 18 Aug 2021 02:52:57 -0400 (EDT) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id F7A3B37BD6A; Wed, 18 Aug 2021 02:52:57 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1629269577; b=cd1s4n4IQuGFdm1m37zNcXKBnu+x6F4WBciZCjdeo4XJhYLh1a OCzAo7u2xfNPtCzN/c7dm0nVOqDCIfl2a+a8DJQZt2d6Q2zdNaf+JwhuFIRaTNgh j1w9FB4frFkjdCo4mnx2tIn0y0ZiP3wdziJJ/dtkbDpZvbC2lE1RaK36X1Fw3wz8 nx3l1SzpTq4qD1JMMALurd31A7H2gmb+6rTaltZDd5Qm8tKIfwfKBTKMpqWEQXGV ZOKraVUxiGqNks/FFr+kZx+UcqF6st7JB1ObDYBL00GFW7KlAlsAs+02n4rS0pCB Wr7FLu0BDdu27Ubu5tTiwBvHH1cVmZWnxKgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= arcseal; t=1629269577; bh=cH9Tsl1fpeKDjFjq8ElyYRcS9za4uIH6G+hYeA 4Radw=; b=shOFAK0wewuzqiT2N8Ybgw3NI4KBefTsowJjxRvJ9yIf1B1I9mbxJk 3+3uOw5Tz4LMuJ1E3VqsIaBZ/L/HT/FQah9SWjjrhOgC419Mlu+B70iUqAK7nv8t +ofFZxdJSmHEn31aq8Twdaw4mH5LGN1aJYY3os27qkBC6Jsapo9wC7HTCs9XRmvX wGPxj8V082AARbdBo66ZPu8iRF4w0HVYwF6vD4IuvWioB7wXjuw6uiefgZBCj8bt 1cLm6FG7glQmRewM+AHnbSxhgVq7tswomAqk7T/RS6aY0eGWk6/6T9cZiSdH4Fq5 PzHUlFQW4WNDD85/bR3a97AIcqC/4Vcg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (oat.nine.sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=oat.nine.sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=oat.nine.sirjofri.de policy.ptr=oat.nine.sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: oat.nine.sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: oat.nine.sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvtddrleeggdejheculddtuddrgeduhedrtddtmd cutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghn shhusghstghrihgsvgdpuffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtne cunecujfgurhepfffhvffkjghfufggtgfgsehtjeertddttdejnecuhfhrohhmpehsihhr jhhofhhrihcuoehsihhrjhhofhhrihdomhhlqdelfhgrnhhssehsihhrjhhofhhrihdrug gvqeenucggtffrrghtthgvrhhnpeefhfdtteduheffveeuleefgeejvdegfeegtddtheel uedutdehudfhfeffueelteenucfkphephedrgeehrddutdehrdduvdejpddutdelrdegud druddvledrudeikeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvght peehrdeghedruddthedruddvjedphhgvlhhopehorghtrdhnihhnvgdrshhirhhjohhfrh hirdguvgdpmhgrihhlfhhrohhmpeeoshhirhhjohhfrhhiodhmlhdqlehfrghnshesshhi rhhjohhfrhhirdguvgeq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sirjofri.de: 5.45.105.127 is authorized to use 'sirjofri+ml-9fans@sirjofri.de' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="sirjofri+ml-9fans@sirjofri.de"; helo=oat.nine.sirjofri.de; client-ip=5.45.105.127 Received: from oat.nine.sirjofri.de (oat.nine.sirjofri.de [5.45.105.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 18 Aug 2021 02:52:55 -0400 (EDT) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from sirjofri.de ([109.41.129.168]) by oat; Wed Aug 18 08:52:53 +0200 2021 Date: Wed, 18 Aug 2021 06:52:52 +0000 (UTC) From: sirjofri To: 9fans <9fans@9fans.net> Message-ID: <7ffd2fe2-1790-42df-8907-483b764aff1a@sirjofri.de> In-Reply-To: References: Subject: Re: [9fans] Codebase navigation and using tags files in acme MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8"; format="flowed" Content-Transfer-Encoding: quoted-printable X-Correlation-ID: <7ffd2fe2-1790-42df-8907-483b764aff1a@sirjofri.de> Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: ee938e48-fff0-11eb-80cb-900ea6e85d98 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZjhjZWFjMTJkZjlkYTY3NC1NMDFhOTlmYTZmNWVmMDg0MThjM2Uz?= =?UTF-8?B?MTJmPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M01a99fa6f5ef08418c3e312f:1:7FsxZBuCnmphOudIPNplO8aru3lQLQCCA8vu8kodXL4 Hello Ben, 17.08.2021 22:22:09 Ben Hancock : > I've just recently started using the acme editor and am really enjoying=20 > it, and trying to get the hang of the "acme way" of doing things. One=20 > bit of functionality that I'm familiar with from other editors is the=20 > ability to easily look up a function or symbol definition within a=20 > codebase. In Emacs and vi, this is done by generating tags files (etags=20 > or ctags), which those editors can parse and allow you to easily jump=20 > to a definition of the symbol under the point/cursor. The original developers of Plan 9 software were people who made simple=20 things even simpler so they can understand them. Imagine your codebase is=20 so small that you can know many symbols and have other symbols open or at=20 least know where to look. Using g(rep) in the parent directory of your=20 project and your brain should be enough. If it isn't your project might=20 be too complex/large. (That's different when reading other code or revisiting code after a long=20 time, but then you are supposed to read it again so you can understand it=20 anyway.) > What's the preferred method or workflow for achieving this in acme? I=20 > have tried passing a selected symbol to 'g -n' in the window's tag,=20 > using the Mouse-2 + Mouse-1 chord. That gets me part of the way there=20 > but isn't effective if the file where the symbol is defined happens to=20 > be in another directory. I feel like I'm missing something. I doubt you are missing something. People used to use text editor since=20 there were no IDEs, and keep in mind that the core of unix was written=20 with ed, maybe even on teletypes. It's like writing code on paper, and it=20 works. My advise is, read and produce good clean code. If you need syntax=20 highlighting and fancy IDE stuff your codebase is probably too large.=20 With more training you can work with larger codebases, but still they to=20 keep it simple and small. If you really need to work with extremely=20 complex codebases you likely won't find success using plan9 at all. Many plan9 tools are one C file only. In acme you can jump between=20 selected text by right clicking it, which works very well in these cases.=20 Right clicking included files opens them and you can search there. These=20 are basically the tools you have. I'm personally very happy reading man pages and searching the plan 9=20 source with g(rep) and plumbing the results. I hope this helps. Oh, and you can always write your own tools and call them using=20 middle-click in acme. You could write an rc-script that cd..s to your=20 project home directory (if it's a git repo, the one containing .git) and=20 invokes g, for example. sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tf8ceac12df9da674-M01a99= fa6f5ef08418c3e312f Delivery options: https://9fans.topicbox.com/groups/9fans/subscription