Sublime Forum

Cycle Goto Anything entries with tab

#1

When I hit tab in the omnibox it just enters a tab char, how do I make it cycle through the results? (w7 - subl 2.0.1)

0 Likes

#2

up please, this is especially important in Vintage Mode

0 Likes

#3

I’d love to know if this is possible. If not is anyone aware of available API’s for building a plugin? I’d be happy to do it.

0 Likes

#4

You could try just write a keybind which detects the go to panel and then when tab is pressed, it sends a Arrow Down key, instead of the Tab key.

However, there is not much distinctions between the Goto Anything overlay and the other overlays as the Command Palette, then, this Tab key custom behavior will also affect the Command Palette too.

1 Like

#5

Awesome, thanks @addons_zz!

0 Likes

#6

Any insights on what command to use for sending an arrow down keypress?

0 Likes

#7

You can just check the default keybinding files by going to the menu Preferences -> Key Bindings

1 Like

#8

Excellent. Thanks!

1 Like

#9

It worked! Here’s what I came up with

  { 
    "keys": ["tab"],
    "command": "move",
    "args": {"by": "lines", "forward": true},
    "context":
    [
      { "key": "overlay_visible", "operator": "equal", "operand": true }
    ]
  },
  { 
    "keys": ["shift+tab"],
    "command": "move",
    "args": {"by": "lines", "forward": false},
    "context":
    [
      { "key": "overlay_visible", "operator": "equal", "operand": true }
    ]
  }

Thanks so much @addons_zz!

1 Like