Created attachment 61521 [details]
put the new tab right after current tab
Version: 2.7.999 (using KDE 4.6.4)
Konsole provides the option of 'start in same directory as current tab'. This
is nice, but konsole always put new tab at the end of tab list, which make this
nice option not as useful as it appears.
For example, I have 5 tabs open. In tab #2 I am compiling some code and I
suddenly have a nice idea and want to grep something, So I open a new tab.
The 'grep' tab start at the same directory as the 'compilation' tab , but is
placed at the end(#6). After I finish greping and want to switch back to the
'compilation' tab(#2), I have 3 choices:
a). Use mouse to click tab #2, which is slow compared with keyboard.
b). Press 'Shift+Left' 4 times
c). Press 'Ctr+Shift+Alt' 3 times to move the 'grep' tab to place #3, then
Has the 'grep' tab been placed right after the 'compilation' tab, at #3, I
would only need to press 'Shift+left' one time to switch the focus .
So this example shows that placing new tab right after current tab can make
(some) users' life much easier. And I think that's the natural result following
the 'start in same directory' option: users expect tabs doing related work to be
placed near each other.
The attached patch is a quick hack. It always puts new tab right after current
tab, regardless of whether 'start in same directory' is enabled or not.
Steps to Reproduce:
1. open 5 tabs in konsole
2. change their title to #1,#2,#3,#4,#5
3. switch focus to #2
4. open a new tab
the new tab is placed after #5
the new tab is placed after #2
Git commit 676df0c26e5c01652da64690756b74fbe180a080 by Kurt Hindenburg.
Committed on 31/07/2011 at 04:17.
Pushed by hindenburg into branch 'master'.
New tabs will be placed to the right of the current tab.
Currently new tabs are placed at the end which is not very convenient.
Patch by Jekyll Wu <email@example.com>
M +11 -1 src/ViewManager.cpp
Can this at least be configurable?
All KDE applications I've tried do not do this (dolphin, konqueror, kate, k3b, ktorrent), nor does gnome-terminal.
Firefox does it, but offers an option to disable (which I use).
Please consider that this is quite a big change, and lots of users (like me) have used the old behavior for years.
(In reply to comment #2)
> Can this at least be configurable?
I will try to make it configurable before it is shipped in 4.8.
Git commit acd37f7a739ffac0863b2580c775b0956c45baa8 by Jekyll Wu.
Committed on 27/09/2011 at 00:43.
Pushed by jekyllwu into branch 'master'.
Allow users to control where the newly created tab should be placed.
M +13 -1 src/EditProfileDialog.cpp
M +1 -0 src/EditProfileDialog.h
M +21 -1 src/EditProfileDialog.ui
M +2 -0 src/Profile.cpp
M +13 -0 src/Profile.h
M +15 -6 src/ViewManager.cpp
Thanks a lot for looking into this! Cheers :)