News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Defining Abbreviations with non alpha-num chars

Started by ahagele, January 27, 2016, 11:57:31 PM

Previous topic - Next topic

ahagele

I'm used to have some keyboard shortcut to add little text blocks. Like a fixme line get a // .??. comment at the end.
I don't seem to be able to set a keyboard shortcut in C::B to do that.
So I tried the Abbreviations settings. However if I add a keyword like ?? to expand into the above nothing happens.
It seems that any non-alpha-numeric char does not work.

Is there a reason for that? Is there a way to get around this?


BlueHazzard

i can confirm this behaviour with the latest nightly

is this intended?

oBFusCATed

I don't know. The fastest way will be to check the code of the abbreviations plugin.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

BlueHazzard

i have looked into it, and found a "fix"

i am still not 100% sure, why it was implemented as it is, but my tests show, that it is working with this patch.

greetings

MortenMacFly

Quote from: BlueHazzard on January 28, 2016, 01:03:03 PM
i have looked into it, and found a "fix"
That is correct, there is no need to look only for words here.

Applied in SVN. Thank you!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]