Focus File on Sidebar
Sublime Text plugin to open sidebar and focus on the current opened file
- Total 28K
- Win 14K
- Mac 9K
- Linux 5K
|Aug 4||Aug 3||Aug 2||Aug 1||Jul 31||Jul 30||Jul 29||Jul 28||Jul 27||Jul 26||Jul 25||Jul 24||Jul 23||Jul 22||Jul 21||Jul 20||Jul 19||Jul 18||Jul 17||Jul 16||Jul 15||Jul 14||Jul 13||Jul 12||Jul 11||Jul 10||Jul 9||Jul 8||Jul 7||Jul 6||Jul 5||Jul 4||Jul 3||Jul 2||Jul 1||Jun 30||Jun 29||Jun 28||Jun 27||Jun 26||Jun 25||Jun 24||Jun 23||Jun 22||Jun 21||Jun 20|
Sublime Text has two options regarding its sidebar:
Toggle Side Bar and
Reveal in Side Bar, in many (mine :P) workflows people want to browse their files tree right on the opened file's folder, which isn't possible with those two options alone.
This plugin aims to give an easier and simple option that allows the developer to use the new command
Focus File On Sidebar to open sidebar and move focus right to the opened file's place on project's tree, this way the user can navigate on files tree with keyboard arrows, and use the same command
Focus File On Sidebar to close sidebar and fold the unfolded folders, preparing it to be used in the same way again (this is needed because if the folder is already opened the focus goes to “opened files” section on the top of sidebar).
It's hard to explain how this small changing of focus to the sidebar improved my everyday workflow, I no longer use the
Reveal in Side Bar command, I'd suggest you to give it a try.
By default the plugin adds the
Focus File On Sidebar command to the command pallete (
control+shift+P) and adds the shortcut
Ctrl+K, Ctrl+F (Windows/Linux) or
Cmd+K, Cmd+F (OSX) to be used faster, obviously you can overwrite this options on your
Packages/User/Default (YourOS).sublime-keymap file simply by assigning another shortcut to
If your sidebar is already opened by default the plugin closes it and focus back on your file, some people weren't expecting this behavior, instead they wanted the plugin to focus the current file on sidebar (since you can change the current file while having the sidebar opened). Thinking about this different workflow I've added an option named
close_sidebar_if_opened defaulting to
true, if you prefer to always have your sidebar opened and that the plugin just reveal and focus different files please add a line with
"close_sidebar_if_opened": false to your
Packages/User/Preferences.sublime-settings file, like this.
In the same way you can install all the others Sublime plugins, by running a
git clone email@example.com:miguelgraz/FocusFileOnSidebar.git on your
Packages folder or, if you use Package Control, just by searching the plugin's name and installing from there.
Errors? Doubts? How this differs from
Reveal in Side Bar? Contributing?
You can always send a pull request, send me an email or create an issue with your doubts/feature request/critics =)
I really hope this could be of any use for you!