Author Topic: How do I leave the focus next to the tab which was closed?  (Read 5076 times)

Offline photon3108

  • Multiple posting newcomer
  • *
  • Posts: 32
How do I leave the focus next to the tab which was closed?
« on: March 17, 2010, 02:42:38 am »
I often open a lot of tabs and then close a part of them but not all.

CodeBlocks seems to remember some kind of order. If I close a tab,
the focus will jump by that order and they may be not in the same
page, I have to scroll to the page which has the tab next to the
last closed tab.

I sometimes close about 10 tabs at one time and they are usually not
relative to the order of CodeBlocks. So, let focus leave next to
the closed tab is very convenient to me. And I can click fewer and
move shorter to close them.

How do I leave the focus next to the tab which was closed?

Thanks.

Offline teto

  • Almost regular
  • **
  • Posts: 127
Re: How do I leave the focus next to the tab which was closed?
« Reply #1 on: August 28, 2014, 03:30:52 pm »
I have the opposite question, how to go back to the last selected tab  when closing the current tab (svn9781) ? Let me explain:
Let's say I have 2 open tabs T1 and T2 presented on the tab bar as T1 / T2.
I am editing T1 and does a "Find declaration" that opens a new tab T3. With my version they appear in tabbar as T1/T2/T3. Once I've finished looking at the declaration, I close T3 to come back editing T1 but codeblocks sets T2 as the current tab.

Previous example is trivial but makes me lose lot of time with many opened files.

I searched through the options but found nothing.


Offline photon3108

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: How do I leave the focus next to the tab which was closed?
« Reply #2 on: August 28, 2014, 03:51:46 pm »
I use svn 9834. The plugin, BrowseTracker, makes it work. It applies stack browsing not only for closing tab, but also for alt+left.

Offline teto

  • Almost regular
  • **
  • Posts: 127
Re: How do I leave the focus next to the tab which was closed?
« Reply #3 on: August 28, 2014, 05:43:50 pm »
Thank you looks like it works. What does Alt+Left accomplish ? the binding is catched by my wm.

Offline photon3108

  • Multiple posting newcomer
  • *
  • Posts: 32
Re: How do I leave the focus next to the tab which was closed?
« Reply #4 on: September 03, 2014, 02:06:33 am »
You'r welcome. Alt+Left is the keyboard shortcut of Browse Tracker. It can do what Alt+Tab does
in Windows or Linux but between the tabs of CodeBlocks. You can find it at Setting --> Editor -->
Keyboard shortcuts --> Commands --> Menu bar --> View --> Browse Tracker --> Backward Ed.

I'm not sure why Alt+Left catches your windows manager. In Ubuntu 14.04, it just help me switch
between tabs.