From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <509071940802181143s3bfbeddcx72d2bb1824305598@mail.gmail.com> Date: Mon, 18 Feb 2008 14:43:10 -0500 From: "Anthony Sorace" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] ctags on plan 9 with acme-friendly tags In-Reply-To: <948781140802180924g2b1f03acue9253dd9e8fff93a@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <509071940802162134y571aaf2w77840afd1477a9e6@mail.gmail.com> <948781140802180924g2b1f03acue9253dd9e8fff93a@mail.gmail.com> Topicbox-Message-UUID: 59a2dc78-ead3-11e9-9d60-3106f5b1d025 Okay, /n/sources/contrib/anothy/rc/bin/looktag is useful, i think. It'll take a list of tags as arguments, look for them in a tags file (-f file, or tags in the local dir by default), and plumbs the results correctly. It's intended so that if you put it in the tag of an acme window, 1-click at an identifier, and 2-1 chord looktag, it'll do the right thing. It'll handle multiple tags and multiple occurrences correctly. If multiple tags are in one file, you only get the last one (I suppose one could Zerox the window for each occurence if the file's already open; have at it). I believe it'll work properly with p9p, but have not tested it (later tonight). As an aside, it might be nice of Acme provided the path or file name the supplied argument in a 2-1 chord came from in the environment somewhere. I imagine it'd be useful more generally, but here it'd allow sticking (a modified) 'looktag' in a Guide file or similar and using that for every window, rather than typing it in every window's tag. I spent a few minutes looking at doing a Limbo tagger and decided it wasn't worth it for me, but I'd be interested if anyone decides to give it a go. Anthony