Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: carra on April 25, 2012, 11:28:53 am
-
Abbreviations, as implemented in C::B, seem to me one of the most useful features I have seen in any IDE. And since they have been the thing to make me adopt C::B, I am making some *extensive* use of them.
I see, however, that when my list of defined abbreviations grows, it gets difficult to find and maintain entries because they are displayed in seemingly random order at Editor Options. They are not even in the same order they appear in default.conf, so even sorting them manually in the XML will not work.
I guess there is no way to sort the list right now, so would it be possible to request this feature for future versions? I do not know how the code does the list display, but I guess it shouldn't be too hard to sort the list before display. Any other ideas would be welcome too.
-
On a different note (but related), I have just noticed that even when I remove from the list the default abbreviations (today, wdu, now, ...), CodeBlocks just keeps re-creating them on restart every time.
I guess this should be a bug?
-
I actually submitted a small patch for the sorting problem a while back http://forums.codeblocks.org/index.php/topic,15450.0.html - don't know what happened to it.
-
Well thanks for creating the patch! I will definitely keep an eye on it. However (correct me if I'm wrong here!), looking at it, it seems that to apply it I need to compile C::B from source, which is something I don't plan on doing. But if someday I were to use the sources, I would definitely use your patch :)
-
Being a white-on-black color scheme user, I too would appreciate it if it is applied. Can you please submit it to Berlios Neil? Maybe then somebody will take care of it.
-
I actually submitted a small patch for the sorting problem a while back http://forums.codeblocks.org/index.php/topic,15450.0.html - don't know what happened to it.
Yes - I guess its my "fault". I have applied it in my local copy for testing, but forgot to actually commit it. No need to put it in the patch tracker - I'll take care...
EDIT: Done.
Compile from trunk or wait for the next nightly.
-
No need to put it in the patch tracker - I'll take care...
Thanks, Morten. I must dig out some of the other stuff I was fiddling with...
-
EDIT: Done.
Compile from trunk or wait for the next nightly.
Great! Thanks
At least me registering this forum was useful for something ;)
EDIT: Some opinions about C::B recreating the default abbreviations? Should that behavior be considered normal?
-
I also don't use most of them but that doesn't hurt anyone I guess especially when sorted. ;)
-
Yeah you may be right. I only hope that, if some day I want to use overwrite some of them (such as another use for "today") it won't get transformed back to the default.
Anyway I have noticed that not all defaults are recreated, only those corresponding to environment variables: $TODAY, $TODAY_UTC, etc. Other defaults such as "if", "while" or "guard", do NOT get recreated.