Code::Blocks

User forums => General (but related to Code::Blocks) => Topic started by: teto on September 16, 2015, 01:01:56 am

Title: Switch between panels with the keyboard only
Post by: teto on September 16, 2015, 01:01:56 am
Hi,

I exclusively use codeblocks with 2 panels (split view with 2 files visible at the same time) and I wonder if there is a mapping to let me switch between the left and right panels ?
It would be faster with the keyboard than taking the mouse.

Thanks

Title: Re: Switch between panels with the keyboard only
Post by: oBFusCATed on September 16, 2015, 01:44:19 am
I don't know if there is such feature.
Also I'm not sure if it is possible to implement it or how it will look/work.
Title: Re: Switch between panels with the keyboard only
Post by: ouch on September 21, 2015, 10:20:26 pm
I wonder how VLC does it's "global" key mapping? Might be a good place to start.
Title: Re: Switch between panels with the keyboard only
Post by: oBFusCATed on September 22, 2015, 11:49:11 am
I'm not sure how VLC is related to this.
We can add the keybinding in the application.
But the real problem is how to make the key binding usable and convenient and of course non-confusing.

What happens if you've split your screen top-to-bottom or have three or more editors visible?
Title: Re: Switch between panels with the keyboard only
Post by: teto on September 22, 2015, 01:36:01 pm
I don't mind if the mappings are awkward. My final goal is to use the same set of mappings between my tiling manager. For instance with neovim, my tiling windows manager checks if the focused window is neovim, if it is, it relays the change focus commands to neovim so that I can move around neovim splits as if there were windows.

There should be mapping to change panels Left/Right/Top/Bottom like vim's wincmd.