9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Acme and cscope shortcuts
@ 2005-07-16  9:38 Mike Casinghino
  2005-07-16 10:18 ` Charles Forsyth
  2005-07-16 12:48 ` Russ Cox
  0 siblings, 2 replies; 6+ messages in thread
From: Mike Casinghino @ 2005-07-16  9:38 UTC (permalink / raw)
  To: 9fans

I'm switching to the acme environment on linux (from vim/xterm) using
plan9port. For cscope, I created a script called ~/bin/fgdef
(find-global-def):

echo 1$1 | cscope -l -d | \
perl -ne 'print "$1:$3 $2 $4\n" if m/(\S+)\s+(\S+)\s+(\d+)\s+(\S+)\s+(.*)/;'

Now I can put "fgdef symbol" in my tagline, middle sweep it and cscope
finds the definitions for me. The perl noise rearranges the output for
button-3 clicking.

I was thinking of adding some keyboard + mouse-button shortcuts into
acme, and was wondering if anyone has suggested this or actually tried
it before. Here's a short list of what I'd like to do.

* In a text window, holding down Alt and clicking button-3 would
reverse search for the selected text.
* Holding Alt and clicking button-2 in the tagline would run the
tagline command with the selection as an argument. (That would work
*great* with the cscope trick above.)
* Holding Ctrl and clicking button-2 in the tagline would clear the
output window before running the command.
* A Lineno tag keyword that displays line numbers in a text window.
* Oh, and mail so I can finally ditch mutt

Any suggestions, admonitions or warnings?

-Mike


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-07-16 19:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-16  9:38 [9fans] Acme and cscope shortcuts Mike Casinghino
2005-07-16 10:18 ` Charles Forsyth
2005-07-16 12:48 ` Russ Cox
     [not found]   ` <2309aa1805071611221ec2b908@mail.gmail.com>
2005-07-16 18:24     ` Fwd: " Mike Casinghino
2005-07-16 18:45       ` Steve Simon
2005-07-16 19:00   ` Charles Forsyth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).