Ahoy TextMateys…
I like the cocoa completion menu thing. Open TextEdit. Type a few letters. Hit option-escape.
I want to make a tm_dialog nib that works exactly like that one does. Does anyone know if that is at all possible?
I like the current dialog menu that we have with tm_dialog --menu. But it's really not ideal for doing code completion.
What would need to happen is that while you're typing you can open up the completion panel, but keep on typing. Escape would banish the panel Up and down would move the selection in the completion list and insert the rest of what you're typing and select it right would banish the list and keep the currently selected completion etc...
Is that at all doable?
thomas Aylott — subtleGradient — CrazyEgg — sixteenColors
What would need to happen is that while you're typing you can open up the completion panel, but keep on typing. Escape would banish the panel Up and down would move the selection in the completion list and insert the rest of what you're typing and select it right would banish the list and keep the currently selected completion etc...
Is that at all doable?
You can not update the TextMate editor when running a command or plug-in, in other words typing in TextMate to reduce the list of completion is currently impossible. What you could do is move the typing to an external textfield that would in turn reduce the list of completions. To me personally that is not worth investing time and effort in, since I would imagine that it would be difficult not to disrupt the flow of editing when suddenly your typing is thrown into a different editing context. I think Allan is planning on adding shrink-list-as-you-type-completion in TM2.0.
Joachim Mårtensson
On Apr 5, 2007, at 4:44 PM, Joachim Mårtensson wrote:
What would need to happen is that while you're typing you can open up the completion panel, but keep on typing. Escape would banish the panel Up and down would move the selection in the completion list and insert the rest of what you're typing and select it right would banish the list and keep the currently selected completion etc...
Is that at all doable?
You can not update the TextMate editor when running a command or plug-in, in other words typing in TextMate to reduce the list of completion is currently impossible. What you could do is move the typing to an external textfield that would in turn reduce the list of completions. To me personally that is not worth investing time and effort in, since I would imagine that it would be difficult not to disrupt the flow of editing when suddenly your typing is thrown into a different editing context. I think Allan is planning on adding shrink-list-as-you-type-completion in TM2.0.
Joachim Mårtensson
Oh well, I shall wait for Allan then.
I guess I could keep myself busy by rewriting Javascript from scratch or something.
thomas Aylott