Is it possible to provide a list of options to someone in a snippet? For example at a tabstop, rather than them writing in text, you could provide a list of options that they could select from?
I'm imagining something similar to the one that pops up to disambiguate shortcuts.
Ed
Ok, fair enough.
Is there any other way to fake this kind of behaviour, such as by adding a dictionary of words into the escape completion list of words?
Ed
On 24/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 24. Oct 2006, at 12:42, Ed Singleton wrote:
Is it possible to provide a list of options to someone in a snippet? For example at a tabstop, rather than them writing in text, you could provide a list of options that they could select from?
Currently not, no.
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
Just a thought, but I think you could have your snippet insert a word that triggers multiple snippets (all set to the same tab trigger) followed by a $0, so after the initial snippet they would press tab and be given the menu of triggered snippets that would replace the current word. This is essentially the same as the repeating tabstops idea from yesterday...
Brett
On Oct 24, 2006, at 6:36 AM, Ed Singleton wrote:
Ok, fair enough.
Is there any other way to fake this kind of behaviour, such as by adding a dictionary of words into the escape completion list of words?
Ed
On 24/10/06, Allan Odgaard throw-away-1@macromates.com wrote:
On 24. Oct 2006, at 12:42, Ed Singleton wrote:
Is it possible to provide a list of options to someone in a
snippet?
For example at a tabstop, rather than them writing in text, you
could
provide a list of options that they could select from?
Currently not, no.
_ 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
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
Brett Terpstra : Art Director Circle Six Design, Inc. 111 Riverfront Dr, Suite 204 .................................................. p: 507.459.4398 877.858.4332 f: 1.866.540.3063 e: brett@circlesixdesign.com http://www.circlesixdesign.com ..................................................
On 24/10/06, Brett Terpstra brett@circlesixdesign.com wrote:
Just a thought, but I think you could have your snippet insert a word that triggers multiple snippets (all set to the same tab trigger) followed by a $0, so after the initial snippet they would press tab and be given the menu of triggered snippets that would replace the current word. This is essentially the same as the repeating tabstops idea from yesterday...
That is very clever, but I've just tried it and it appears that tab doesn't cause a snippet to start whilst it is in a snippet. Once you get to $0 then they will work, but not in the middle of a snippet.
Shame.
Ed