Repository navigation
ctrl+tab tab behavior #10707
|
Hello, I'd like ctrl+tab to go to the previously activated tab instead of the next one in order. Is this a mappable action ? I didn't find it in the docs. Ideally I'd like to have ctrl+tab list tabs by activity order (like firefox for example), but it's just a small bonus compared to the first demand. |
Replies: 1 comment 1 reply
|
Yes, map ctrl+tab goto_tab 0Pressing it again takes you back, so it toggles between your two most recent tabs like Alt+Tab. For the Firefox-style list: |
Yes,
goto_tabdoes it with zero or a negative number: zero and negative numbers go to previously active tabs (goto_tab). The number is shifted by one, so the previous tab is0, not-1:Pressing it again takes you back, so it toggles between your two most recent tabs like Alt+Tab.
goto_tab -1goes to the tab before that,goto_tab -2the one before, and so on. kitty keeps that history per OS window (active_tab_historyinkitty/tabs.py).For the Firefox-style list:
select_tab(map ctrl+shift+tab select_tab) opens an overlay to pick a tab by name, but it lists them in tab-bar order, not by recent activity, and there's no hold-Ctrl-and-cycle mode.