Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: ahagele on January 27, 2016, 11:57:31 pm

Title: Defining Abbreviations with non alpha-num chars
Post by: ahagele on January 27, 2016, 11:57:31 pm
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?

Title: Re: Defining Abbreviations with non alpha-num chars
Post by: BlueHazzard on January 28, 2016, 12:16:22 am
i can confirm this behaviour with the latest nightly

is this intended?
Title: Re: Defining Abbreviations with non alpha-num chars
Post by: oBFusCATed on January 28, 2016, 09:27:50 am
I don't know. The fastest way will be to check the code of the abbreviations plugin.
Title: Re: Defining Abbreviations with non alpha-num chars
Post by: BlueHazzard on January 28, 2016, 01:03:03 pm
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
Title: Re: Defining Abbreviations with non alpha-num chars
Post by: MortenMacFly on January 28, 2016, 03:16:13 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!