Sublime Forum

How do you browse the sidebar file browser by keyboard?

#1

I wonder.

0 Likes

#2

Focus the sidebar with control + 0

0 Likes

#3

Well I’ll be damned, thanks :smile:

0 Likes

#4

Now what if you have a folder selected in the file browser, and you want to search all files in this folder… I know I can right-click and do “Find in Folder”, but is there a shortcut for this?

0 Likes

#5
  • open console (control+`)
  • type: sublime.log_commands(True)
  • right click and select “find in Folder”
  • see what command is outputted into the console
  • open your user keybindings
  • make a keybinding like this: { "keys": "control+f"], "command": "YOUR_COMMAND_HERE", "context": {"key": "control", "operand": "sidebar_tree"} ] }
  • make post on st forum to thank C0D312
  • ???
  • Profit
0 Likes

#6

So I added

{ "keys": "control+f"], "command": "side_bar_find_in_selected", "context": {"key": "control", "operand": "sidebar_tree"} ] }

But it’s not working:

Traceback (most recent call last): File "./sublime_plugin.py", line 339, in run_ TypeError: run() takes exactly 2 arguments (1 given)

The “second” argument should be something like

{ "paths": "CURRENTLY_SELECTED_FOLDER_PATH" }

Is that possible?

0 Likes

#7

guess not.

different question: how do I add/delete files in the sidebar file browser, by keyboard?

0 Likes

#8

The Sidebar Enhancements plugin (https://forum.sublimetext.com/t/sidebar-enhanc-clipboard-open-with-reload-renamed/2784/1&hilit=sidebar+enhancements) is your friend… :wink:

Enjoy!!

Cheers,
Mick

0 Likes