From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <2309aa18050716023846d2365a@mail.gmail.com> Date: Sat, 16 Jul 2005 02:38:09 -0700 From: Mike Casinghino To: 9fans@cse.psu.edu Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: [9fans] Acme and cscope shortcuts Topicbox-Message-UUID: 683ffbf6-ead0-11e9-9d60-3106f5b1d025 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