ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Side​Bar​Tools

by braver ST3

Duplicate, copy, move or compare files and folders, copy paths and filenames, all from the Side Bar in Sublime Text

Details

Installs

  • Total 73K
  • Win 46K
  • Mac 17K
  • Linux 10K
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 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12
Windows 0 5 11 8 6 8 2 6 8 9 4 8 6 5 8 5 15 9 11 9 9 8 9 11 8 14 8 8 9 6 7 5 11 12 6 7 11 7 7 10 3 4 7 10 9 11
Mac 0 5 3 3 8 2 1 1 4 3 2 3 2 4 1 7 3 8 1 6 2 4 9 6 1 2 3 3 2 6 3 5 6 3 5 4 4 2 5 3 2 0 3 3 6 4
Linux 0 6 1 8 4 0 2 0 1 9 1 0 2 4 0 4 3 2 4 0 1 2 3 4 3 3 2 1 2 2 3 3 5 6 3 4 1 2 1 2 5 4 2 4 2 1

Readme

Source
raw.​githubusercontent.​com

Sidebar Tools

Some useful tools to add to your sidebar and tab context menu's:

  • Copy Filename
  • Copy Relative Path
  • Copy Absolute Path
  • Duplicate (ie. copy to a target path)
  • Move
  • Compare
  • New file

All except Compare are also available via the command palette, in addition to:

  • Reveal In Sidebar

To use the Compare command, configure a “difftool”. For instance, Xcode comes with FileMerge that you can call via opendiff. The command will then become available when two files, or two folders are selected.

An additional Edit command is available, for ease of use on touch screens (thanks @PetrKryslUCSD). Enable it via the settings.

To open a file in its default application, consider installing the Open in Default Application package.

If you're looking for “Reveal in Finder/Explorer” for directories, Open in Default Application does that too.

Goals of this package

This package offers fewer commands than e.g. SidebarEnhancements, striking a balance somewhere between the bare minimum and going overboard. This has benefits:

  • The default context menu isn't replaced, this package just adds some useful new commands.
  • It's tiny, light-weight and reliable.
  • We won't track you. Ever.

Settings

  • difftool: configure what tool to use, and thereby enable the Compare command.
  • edit_command: enable the Edit command.
  • tab_context: optionally disable the context menu on file tabs.
  • posix_copy_command: enable the command to copy relative paths in POSIX format, e.g. for use in WSL (Windows only).

Credits

We used SidebarEnhancements as a starting point, but completely re-implemented everything we wanted to keep. Now it comes in at just over 200 lines of super clean Python with zero legacy. Special thanks go out to @rwols and @mandx to make this happen.

Buy me a coffee

☕️👌🏻

Please feel free to make a little donation via PayPal towards the coffee that keeps this labour of love running. It's much appreciated!