I wonder.
How do you browse the sidebar file browser by keyboard?
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?
- 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
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?
guess not.
different question: how do I add/delete files in the sidebar file browser, by keyboard?
The Sidebar Enhancements plugin (https://forum.sublimetext.com/t/sidebar-enhanc-clipboard-open-with-reload-renamed/2784/1&hilit=sidebar+enhancements) is your friend…
Enjoy!!
Cheers,
Mick