[TxMt] access to symbol via TM_ variable?

Allan Odgaard throw-away-1 at macromates.com
Thu May 17 11:19:23 UTC 2007


On 16. May 2007, at 20:28, Jay Soffian wrote:

> I'd love to have a command that can put the current symbol on the  
> clipboard, and this would be short-work if the current symbol where  
> available via a TM_* variable, but I'm not seeing it.
>
> My particular use case is Python and I'd like to be able to easily  
> construct "<module>.<class>.<method>" or "<class>.<method>".

So you would need more than just the symbol, thus you would need to  
grep the document (from stdin) anyway?

> I see no way of getting this information, short of writing a python- 
> specific parser to grab it (using TM_LINE_NUMBER to figure out  
> where the cursor is). Am I missing something?

It is not available.




More information about the textmate mailing list