[TxMt] ctags (or etags) and TextMate
Oscar Bonilla
ob at bitmover.com
Tue May 16 23:10:45 UTC 2006
On May 16, 2006, at 3:49 PM, Matthew Gilbert wrote:
> Nope, there is a known issue with Panther though. Boy, I've not a
> clue. Can you post the md5 of
> /Library/Application\ Support/TextMate/Bundles/Source.tmbundle/
> Support/bin/pytaglib.so. Mine is
> 2e938aa900ab7a3ae7d544df2a3aa936. Maybe try importing it manually.
>
> cd /Library/Application\ Support/TextMate/Bundles/Source.tmbundle/
> Support/bin
> python
> >>> import pytaglib
>
> Sorry, not sure what else to try. It works fine for me, I have
> reported success from others as well. _matt
Ah, I found it.
$ which python
/sw/bin/python
That's from fink. I just did
$ sudo chmod 0 /sw/bin/python*
$ which python
/usr/bin/python
and it worked.
Yeah, it's better. But it's still not as easy as with Emacs. Any
reason you're not just jumping to the file? Ah, there might be
multiple matches for the function.
A sleazy way of doing it would be to keep a stack in a temporary file
somewhere in the user's home directory and provide shortcuts for the
next tag, previous position, etc.
I've not seen at the source of your Bundle (and I don't speak Python,
so it might take me some time to catch up), but what I'm talking
about would be along the lines of:
- User hits Ctrl-]
find matches in ctag file
Pop TM_CURRENT_WORD, TM_CURRENT_FILE, TM_CURRENT_LINE from file
if popped something,
skip to ctag after the one we popped
else
jump to matching tag
- User hits Ctrl-[
Pop TM_CURRENT_WORD, TM_CURRENT_FILE, TM_CURRENT_LINE from file
Jump to it
Do you see where I'm going? Do you think that would work?
--
pgp fingerprint: BC64 2E7A CAEF 39E1 9544 80CA F7D5 784D FB46 16C1
More information about the textmate
mailing list