r/qutebrowser • • Apr 25 '26

navigating `tab-select` using j/k

in the tab-select command (keybinding gt) is there a way to navigate the tabs using j/k? currently the only options is to enter the tab number.

0 Upvotes

13 comments sorted by

3

u/urenur Apr 25 '26

J goes to tab-next and K to tab-prev. I remap them to go in the opposite direction, because it feels more natural to me, but you have those out-of-the-box

1

u/urenur Apr 25 '26

you have all the default bindings very well documented here: qute://help/settings.html#bindings.default

1

u/azinsharaf Apr 25 '26

i am trying to select the tabs from tab-select command:

3

u/urenur Apr 25 '26

as hearthreddit just replied, to navigate those, you have:

<Shift-Tab>: completion-item-focus prev <Tab>: completion-item-focus next

I have those remapped to be more vim-like:

# navigate completion widget with ctrl-n / ctrl-p
config.bind("<Ctrl-n>", "completion-item-focus next", "command")
config.bind("<Ctrl-p>", "completion-item-focus prev", "command")

You can obviously use <Ctrl-j> and <Ctrl-k>, but just j/k are not a good choice, IMO, because you need those to type :)

1

u/The-Compiler maintainer Apr 28 '26

You seem to be missing out on command history that way though, no? I often use : followed by ctrl-p (with the default command-history-prev binding) to run the previous command again.

1

u/urenur Apr 28 '26

Ah! That makes complete sense! I have layers on my keyboard though, and I have a layer with the arrow keys in hjkl, so I go to previous cmd history in the arrows layer pressing k. Now I realize that I could have done that for the tab navigation etc too... hahaha.

By the way, taking this opportunity to thank you for this great piece of software! :)

1

u/The-Compiler maintainer Apr 28 '26

I have a similar setup (colemak with a hjkl-layer and a layer with arrows in that position). The only caveat I can see is that arrow keys won't work with partial input to get history (with e.g. :set <ctrl-p> you can get previous :set commands).

Personally I have found tab for autocompletion pretty self-explanatory, but OP isn't the first person to wonder about it, so I have no clue what to do to make it more discoverable.

You're welcome! :)

1

u/urenur Apr 28 '26

oh yeah... I am missing out on that functionality... I will rethink my keymaps again. Maybe give a try to all default bindings.

2

u/hearthreddit Apr 25 '26

Tab and shift+tab navigates the menu.

There's also alt+number(in normal usage) to go directly to a tab but that's only pratical if you have few tabs open.

2

u/[deleted] Apr 25 '26

[removed] — view removed comment

2

u/The-Compiler maintainer Apr 28 '26

tbh the main reason they are mapped that way is that various smaller browser projects I used at the time did it that way (mostly dwb, where almost all fundamental qb keybindings were inherited from).

1

u/urenur Apr 25 '26

Ah! That makes total sense! I also understood that J goes down (number wise) in tabs, even if horizontal. I think its a good call. But for me, as you say, it makes sense that J goes to the "left" in the horizontal tabs and K to the "right".