Eric:
Hey! No Fair. You took away my F1 from pydoc. And, while you were at it you duplicated the functionality in my List Defs command, already in the Python Bundle.
I guess this shortcut key assignment is one of the problems that will go away (get better) when we get scoping, in b6?
Brad
On Mar 12, 2005, at 7:35 PM, Eric Hsu wrote:
useful method selector pull-down menu, which is great for navigating around the file.
yes, I've been missing one of those in tm since day one!
While we await the official solution from Allan, I've checked into SVN a cute hack that does this: upon hitting F1, it displays special items in an HTML popup menu which magically sends you to the desired line upon selection. It's in the Defaults bundle and currently contains support for Perl and Python.
The way it works is it takes the output of 'entitynav.py' and processes it using nav2htmlpopup.pl. If you want to add support for your language, you can
(1) edit entitynav.py; or (2) write your own command to process a file from standard input and output grep format "line: text"; then pipe that through nav2htmlpopup.pl as in the command.
I'm sure someone can make this look nicer; it was more a proof of concept than anything, and a celebration that I finished a big talk today!
- Eric
-- Eric Hsu, Assistant Professor of Mathematics San Francisco State University erichsu@math.sfsu.edu http://math.sfsu.edu/hsu ______________________________________________________________________ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Brad Miller, PhD Assistant Professor Luther College http://www.cs.luther.edu/~bmiller jabber: bnmnetp@jabber.org