News:

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

Main Menu

[Shortcuts] How to map 'Jump Back' short cut to 'Ctrl--'?

Started by yaoyansi, November 26, 2014, 04:43:24 AM

Previous topic - Next topic

yaoyansi

Hi all,
I know how to set the short cut of 'Jump frwd' to 'Ctrl-='  in "Settings --> Editor -->Keyboard shortcuts", but I can't set the short cut of 'Jump Back' to 'Ctrl--'. I'm wondering whether the short cut 'Ctrl--' is already bound in CodeBlocks? If so, which is bound to? How to unbind it?

Cheers

oBFusCATed

Can you try a  nightly build? I think this bug has been fixed already.
(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!]

Jenna

It does not work for me, neither on linux (FC20, C::B  trunk) nor on windows (10016) .

ollydbg

Quote from: jens on November 26, 2014, 01:14:59 PM
It does not work for me, neither on linux (FC20, C::B  trunk) nor on windows (10016) .
The bug happens on my XP too.
When I hit the "CTRL+-" key, the string show in the editor, and later it get removed automatically.
I try to debug the keybinder plugin, but it looks like I can't hit breakpoints in all the plugin sources under the "src\plugins\contrib" folder, but breakpoints under core plugin's source(such as codecompletion.cpp) file works fine. That's strange, any one has the debugging issue like me?
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

Pecan

Ctrl-- and Ctrl-+ do not yet work in Keybinder because of the parsing mechanism used to catch "Ctrl-".

I used to have a fix from someone. I'll see if I can find it.

Pecan

Applied Petrov patch to handle Ctrl-- and Ctrl-+
Svn 10037

ollydbg

Quote from: ollydbg on November 26, 2014, 02:08:53 PM
I try to debug the keybinder plugin, but it looks like I can't hit breakpoints in all the plugin sources under the "src\plugins\contrib" folder, but breakpoints under core plugin's source(such as codecompletion.cpp) file works fine. That's strange, any one has the debugging issue like me?
The strange thing is that if I copy the source code files (e.g. the whole folder "byogame") from "src\plugins\contrib" to "src\plugins", then adjust the output file paths, and build this plugin again, then I can correctly hit breakpoints in byogame's source code.  :(
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

oBFusCATed

(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!]

ollydbg

Quote from: oBFusCATed on November 27, 2014, 06:43:37 PM
Have you inspected the output of the debugger?

I'm hunting this bug for several hours, and finally I see it is a GDB bug, I filed it in https://sourceware.org/bugzilla/show_bug.cgi?id=17659 with details.
If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.

ollydbg

If some piece of memory should be reused, turn them to variables (or const variables).
If some piece of operations should be reused, turn them to functions.
If they happened together, then turn them to classes.