Sublime Forum

Custom key bindings for sidebar navigation?

#1

Are there key binding actions that we can use to remap our keyboard navigation of the sidebar?

[code]{ “keys”: “j”], “command”: “sidebar_nav_down”,
“context”:

    { "key": "setting.sidebar_focused", "operand": true },
]

}

{ “keys”: “k”], “command”: “sidebar_nav_up”,
“context”:

    { "key": "setting.sidebar_focused", "operand": true },
]

}[/code]

0 Likes

#2

{ "keys": "j"], "command": "move", "args": {"by": "lines", "forward": true}, "context": {"key": "control", "operand": "sidebar_tree"} ] }, { "keys": "k"], "command": "move", "args": {"by": "lines", "forward": false}, "context": {"key": "control", "operand": "sidebar_tree"} ] }

This seems to work but has some issues when it comes to folders (Even if the folders are collapsed, it still traverses the contents). I’m assuming move by line is not the correct command in this case. You can play around with it though. Maybe Jon knows.

0 Likes

#3

awesome, will play around with this. is there any documentation for the “move” command?

0 Likes

#4

No, but you can look at the default keybindings for more options.

0 Likes