I realized after seeing a HyperEdit screenshot that having a floating snippets palette would be immensely useful in TextMate.
I've mocked up how I might think you could implement this, focusing the selected snippets on the current editing mode... In any case, I don't think that snippets belong in a hierarchical menu, and as much as I would like for you to be able to stick to minimal modal interfaces, I think that in this case, it's worth adding one more.
Chris
+1
Actually, some sort of floating palette with all of the current languages stuff (commands, snippets, macros) would be handy.
Jonathan Raphaelson University of Colorado at Boulder --
Home: 303-469-3442 Cell: 720-937-4372
jonathan.raphaelson@colorado.edu jonraphaelson@gmail.com
On Jan 31, 2005, at 16:05, Jon Raphaelson wrote:
Actually, some sort of floating palette with all of the current languages stuff (commands, snippets, macros) would be handy.
Okay -- but I'd prefer not to spend any time on this before after 1.1. And I'm btw changing my plans a little, so 1.1 will be in a few weeks, and I'll just do 5-10 1.1.x releases instead of having 1.1 in beta for half a year ;)
Hopefully no-one feels cheated that some of the stuff I've promised for 1.1 then will be 1.1.x instead.
I've thought about this idea, and I agree that it would be good to have a sort of "Crib sheet" of available snippets within the current mode, as when you have a lot of them - like me - their triggers tend to get muddled up in my mind.
Ideally it would follow Chris' second mock-up as it would be better to work with and be a floating-on-top window.
Additionally, It would be great if you could have some text selected in the main editor window and then just click the "New" (snippet) button and have that code added as a snippet with a default name.
Double-clicking on the snippet name in the window would open up the snippet editor window.
Just my 2 pence added.
Kind regards,
Mats
---- "TextMate, coding with an incredible sense of joy and ease" - www.macromates.com -
I would also like to be able to drag n' drop a snippet onto a selection and have the snippet wrap around my selection. Also, inline editing of the snippet (if you widened my mockup) would be cool (a la track name editing in iTunes).
Chris
Mats Persson wrote:
I've thought about this idea, and I agree that it would be good to have a sort of "Crib sheet" of available snippets within the current mode, as when you have a lot of them - like me - their triggers tend to get muddled up in my mind.
Ideally it would follow Chris' second mock-up as it would be better to work with and be a floating-on-top window.
Additionally, It would be great if you could have some text selected in the main editor window and then just click the "New" (snippet) button and have that code added as a snippet with a default name.
Double-clicking on the snippet name in the window would open up the snippet editor window.
Just my 2 pence added.
Kind regards,
Mats
"TextMate, coding with an incredible sense of joy and ease"
- www.macromates.com -
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
On Feb 1, 2005, at 20:51, Chris Messina wrote:
I would also like to be able to drag n' drop a snippet onto a selection and have the snippet wrap around my selection.
Ehm... how? Shouldn't the snippet then somehow specify where the selection should go, and if so, would this be any different than what you currently can do, other than the way you activate it?
It's probably no different than how it's currently done, except, again, with a floating palette, I could drag n' drop a snippet ONTO a selection, rather than select the snippet from a flyout to be applied to my selected text.
This would have great use, for example, with your new "append to each line" command. I could drag n' drop an "<li>echo $TM_SELECTED_TEXT</li>" snippet and have it apply to each line.
Chris
Allan Odgaard wrote:
On Feb 1, 2005, at 20:51, Chris Messina wrote:
I would also like to be able to drag n' drop a snippet onto a selection and have the snippet wrap around my selection.
Ehm... how? Shouldn't the snippet then somehow specify where the selection should go, and if so, would this be any different than what you currently can do, other than the way you activate it?
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