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