On Mar 30, 2007, at 10:42 AM, Patrick Gundlach wrote:
Hello Haris,
Actually you might want to form groups instead, and have the snippets in there, so that they are still visible when you navigate the menu.
That is what I do now.
If they are all encapsulated inside a command, you'll just have to change the command. Otherwise, you have to change each of these snippets individually, quite a pain if there are really several hundred of them.
They are all auto generated. So I could just regenerate them.
Just in case anybody is interested: this is for a ConTeXt bundle (a TeX macro package).
Ah, in that case have you looked at how we do this in the LaTeX bundle, and if so, is there any reason not to use the same system? I.e. you would type for instance "col" and then cmd-}, and it would become \color {${1:.......
These snippets are invoked by tab completion:
\color <tab> -->
\color [${1:...}]{${2:...}} $3
or a slightly more complex example:
\filllinrules <tab> -->
\fillinrules ${1:[${2:...,...=...,...}]}{${3:...}}{${4:...}} $5
This way the user can find out about possible arguments and if they are optional or not.
Patrick
Haris Skiadas Department of Mathematics and Computer Science Hanover College