On Apr 4, 2005, at 7:15 AM, Sune Foldager wrote:
On 04-04-2005, at 06:20, Charilaos Skiadas wrote:
I hope this is not a very stupid question, but can someone explain to me how input patterns are supposed to work? i.e. if i have bound a snippet to an input pattern, how do I activate it? (An example of an input pattern would be much appreciated). Or are they not implemented yet?
Certainly! .. you just type the pattern in the editor window as normal text, and press TAB. So it works as a short-cut really. There are plenty of snippets already in place in the various bundles :-).
The question is about input patterns, not tab triggers. Here's what I can find on the subject:
From: Allan Odgaard <allan at macromates.com>
Input pattern is not working yet. What it will be is a non-greedy regular expression matched against the typed input. Mainly useful for having macros executed on certain editing patterns. For example the
bundle has a snippet that expands to: “<$1></$1>”. Here one could
“expansion of this snippet”, “giving the tag a name”, “pressing return inside the tag (w/o typing anything)”. The macro would then add indent and move the end tag down an extra line.