Move and switch tabs keybindings should be different

Bug #1438082 reported by Emmanuel Beffara
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Sakura
Fix Released
Medium
Unassigned

Bug Description

The default key binding for moving to next tab and previous tab is Ctrl-Alt-Right and Ctrl-Alt-Left. Many applications use Ctrl-PageDown and Ctrl-PageUp instead (including gnome-terminal, firefox, gvim, etc) so I have these binding as a reflex. I tried to change the bindings in sakura by setting

  prev_tab_accelerator=4
  prev_tab_key=Page_Up
  next_tab_accelerator=4
  next_tab_key=Page_Down

in the sakura.conf file but this only works partially: I now have to type Ctrl-Alt-PageDown and Ctrl-Alt-PageUp. Actually, the value in the _accelerator fields seems to be completely ignored: I tried other values but it has no effect.

Am I missing something here?
What is the proper way to set the bindings I want?

Revision history for this message
David Gómez (dabisu) wrote :

There is no prev_tab_accelerator o next_tab_accelerator config option. The one you need to change is move_tab_accelerator.

So this is what you need:
move_tab_accelerator=4
prev_tab_key=Page_Up
next_tab_key=Page_Down

If it isn't a bug, please next time add your question in the "Answers" section in Launchpad. Thanks.

Changed in sakura:
status: New → Invalid
Revision history for this message
Emmanuel Beffara (manu-beffara) wrote :

I don't know if it is a bug or not, but indeed I should have posted that in "Answers"; I will post the question there in case anyone has the same questions. Now that this (invalid) bug is here, I follow up here.

Your suggested solution does not work: using the settings you write, when I hit Ctrl-PageUp/Down, it moves the current tab to the left or to the right while keeping focus on it. I still need to do Ctrl-Alt-PageUp/Down to get focus on the previous or next tab. In other words, I don't want to move a tab, I want to move TO a tab.

It happens that if I say

switch_tab_accelerator=4
move_tab_accelerator=5
prev_tab_key=Page_Up
next_tab_key=Page_Down

I get the expected behaviour for Ctrl-PageUp/Down, which solves the initial question, but now the bindings Ctrl-Shift-PageUp/Down for moving the current tab do not work anymore. What would be the proper way to achieve this?

David Gómez (dabisu)
summary: - configuring accelerators for prev/next tab key binding
+ Move and switch tabs keybindings should be different
Changed in sakura:
status: Invalid → Confirmed
importance: Undecided → Medium
David Gómez (dabisu)
Changed in sakura:
status: Confirmed → Fix Committed
David Gómez (dabisu)
Changed in sakura:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.