Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » theide: Complete abbreviations
|
|
Re: theide: Complete abbreviations [message #20007 is a reply to message #19477] |
Mon, 09 February 2009 11:07 |
slashmais
Messages: 20 Registered: January 2007 Location: south africa
|
Promising Member |
|
|
Very useful!
Now to make it Ultimate (ly!) useful is to add the ability to pass parameters to the expander, e.g.:
which should then expand to:
if (index == 5)
{
}
else
{
}
Maybe use $1,$2, ... as parameter position holders.
I could implement this if you can point me to where the source for it is.
[Updated on: Mon, 09 February 2009 11:11] Report message to a moderator
|
|
|
Re: theide: Complete abbreviations [message #20194 is a reply to message #20007] |
Tue, 24 February 2009 14:00 |
|
Hello Mirek! Can you correct this bugs in ide/Abbr.cpp? corrected code is:
void AbbreviationsDlg::Add()
{
String s;
if (EditText(s, "New abbreviation", "Keyword", CharFilterAlpha))
{
abbr.Add(s, Null);
Finish(s);
}
}
and
void AbbreviationsDlg::Edit()
{
if(!abbr.IsCursor())
return;
String s = abbr.GetKey();
if (EditText(s, "Edit keyword", "Keyword", CharFilterAlpha))
{
abbr.Set(0, s);
Finish(s);
}
}
I propose to change abbreviation mechanism:
1. Add parametrization, first propose is to add as <@"parameter description">
2. Change char @ with <@>
3. Edit and save abbreviations as tree (group by folders).
4. Save abbreviation file as xml file
5. Save abbreviation in more files and user defined locations. By default will be <installation folder>\abbrs.xml, but in file <installation folder>\ide.abbrs will be saved addresses of abbreviations files.
6. Set Splitter from abbreviation tree and code editor.
7. Change from "Abbreviation" to "Text template".
I can do this changes on evening and I will post for appreciate.
Anybody is interesting in this changes or have other proposes?
|
|
|
|
Goto Forum:
Current Time: Sun Jun 16 00:17:51 CEST 2024
Total time taken to generate the page: 0.01543 seconds
|