[TxMt] Re: TMTOOLS plug-in 0.9 release (for testing!)
Jacob Rus
jacobolus at gmail.com
Fri Oct 12 18:24:40 UTC 2007
Hans-Joerg Bibiko wrote:
> Well, in principal would it be possible to write such a command. A
> general approach would be to write a normal tmCommand which is bound to
> e.g. CTRL-R. In that tmCommand one could write a TMTOOLS command "do
> waitForNextKeyDown '{time=2;}' ". waitForNextKeyDown waits for the next
> key and gives back the pressed key code. If no key was pressed for 2
> seconds it gives you back -1. After having the pressed key code you can
> dispatch the task in the normal tmCommand.
> One thing is missing: a inline menu which will listen to a key and 'not
> only' for numbers 1 to 9.
>
> But I don't know whether this feature is an issue for a plug-in. If one
> write such a command for e.g. the LaTex bundle and other users wants to
> use it they have to install that plug-in for invoking a command. I want
> to say the key binding stuff is an internal TM issue, not a
> circumferential one, at least by my opinion.
You can do this with the Cocoa text key binding system, fairly easily,
and the result will be usable in all Cocoa apps (without the menu though).
See http://hcs.harvard.edu/~jrus/site/cocoa-text.html
More information about the textmate
mailing list