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 76K
  • Win 48K
  • Mac 17K
  • Linux 11K
Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8
Windows 0 9 7 4 6 6 2 7 7 7 7 3 6 9 7 14 4 1 3 9 8 4 10 1 7 6 3 9 9 6 9 4 2 13 11 6 7 10 5 5 5 8 5 10 3 7
Mac 0 5 7 2 5 4 4 5 5 4 2 2 4 4 1 3 2 2 2 6 2 2 3 4 2 2 1 2 4 1 1 4 3 6 4 9 7 6 6 3 3 6 3 2 6 1
Linux 0 3 3 6 2 3 1 0 0 6 0 0 1 2 1 2 2 0 5 0 4 3 4 7 1 1 4 1 2 3 4 2 2 2 2 2 3 3 0 2 1 1 3 5 1 3

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!