byronyasgur
byronyasgur

Reputation: 4747

Is there a command to move up and down the sidebar file list in sublime text?

I use the sidebar a lot in sublime text and I want some quick way of moving up and down the list ( preferably with a keybinding but if there is some command then I'm sure I can bind it).

For instance if I have 10 files in a folder then I can click on one and view it, but then I have to pick up the mouse to view the next or previous file. I want to be able to move to the next or previous file in the list.

I know I can use ctrl-p to search for the file but I was hoping to have a keyboard shortcut to simply move to the next file. Is there anything like this?

Upvotes: 15

Views: 3300

Answers (3)

You can focus on the file you are editing and type Ctrl + 0 which leads you to its position in the tree. Expanding the tree if it was collapsed. From there you can now move with the arrows (or VIM equivalent directions).

Then to move back, to edit any tree selected file, you can use the command next_view which by default is super+shift+]

on .sublime-keymap we can find that default. { "keys": ["super+shift+]"], "command": "next_view" }

Upvotes: 1

Liam Cain
Liam Cain

Reputation: 13373

If you focus the sidebar with Control+0 you can use the arrow keys to move up and down through the files. Right Arrow will open a folder and Left Arrow will close it.

Upvotes: 38

Lokkio
Lokkio

Reputation: 1703

alt-1 , alt-numbers? for switching between tabs? open all 10 files first :P

Upvotes: 1

Related Questions