Author Topic: Defining Abbreviations with non alpha-num chars  (Read 3286 times)

Offline ahagele

  • Single posting newcomer
  • *
  • Posts: 4
Defining Abbreviations with non alpha-num chars
« 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?


Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Defining Abbreviations with non alpha-num chars
« Reply #1 on: January 28, 2016, 12:16:22 am »
i can confirm this behaviour with the latest nightly

is this intended?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Defining Abbreviations with non alpha-num chars
« Reply #2 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.
(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!]

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
Re: Defining Abbreviations with non alpha-num chars
« Reply #3 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9702
Re: Defining Abbreviations with non alpha-num chars
« Reply #4 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!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ