Skip to content
This repository

Enhancements to Sublime Text sidebar. Files and folders.

branch: st3
Octocat-spinner-32 hurry Update v0.9: January 05, 2012
Octocat-spinner-32 send2trash Apply patch for ubuntu encrypted folder bug. January 07, 2014
Octocat-spinner-32 sidebar Newline python 3 mess February 04, 2014
Octocat-spinner-32 .gitignore Lazy load sendtotrash, desktop. 2nd fix #92 April 28, 2013
Octocat-spinner-32 CHANGELOG Paste runs threaded, allow to delete files with large filenames. February 02, 2014
Octocat-spinner-32 Commands.sublime-commands Feature request, fixes #163 January 08, 2014
Octocat-spinner-32 Default (Linux).sublime-keymap Added keymaps for OSX, Linux, and Windows August 13, 2013
Octocat-spinner-32 Default (OSX).sublime-keymap Added keymaps for OSX, Linux, and Windows August 13, 2013
Octocat-spinner-32 Default (Windows).sublime-keymap Added keymaps for OSX, Linux, and Windows August 13, 2013
Octocat-spinner-32 Edit.py Fix instant search (being edit, end edit mess), rename of files does … June 06, 2013
Octocat-spinner-32 Main.sublime-menu Add menu for keybindings March 21, 2012
Octocat-spinner-32 Side Bar.sublime-menu Add option menuitem to exclude "selected items" from the index (notes… February 07, 2014
Octocat-spinner-32 Side Bar.sublime-settings Added Canary as a browser November 04, 2013
Octocat-spinner-32 SideBar Results.hidden-tmLanguage Commit contribution "search as you type for search in file paths" by … March 23, 2012
Octocat-spinner-32 SideBar.py Add option menuitem to exclude "selected items" from the index (notes… February 07, 2014
Octocat-spinner-32 SideBarDefaultDisable.py The linter shows errors correctly June 07, 2013
Octocat-spinner-32 StatusBarFileSize.py The linter shows errors correctly June 07, 2013
Octocat-spinner-32 StatusBarModifiedTime.py The linter shows errors correctly June 07, 2013
Octocat-spinner-32 license.txt Update informational files January 08, 2014
Octocat-spinner-32 readme.md Just DONT try to install manually! February 03, 2014
readme.md

Sublime Text 3+ Package. Install via an updated version of Package Control 2+. Just *DON'T install manually.

Sidebar Enhancements

Translations

Japanese - http://taamemo.blogspot.jp/2012/10/sublime-text-2-sidebarenhancements.html?m=1

Description

Provides enhancements to the operations on Sidebar of Files and Folders for Sublime Text. See: http://www.sublimetext.com/

Notably provides delete as "move to trash", open with.. and a clipboard. Close, move, open and restore buffers affected by a rename/move command.

Provides the basics: new file/folder, edit, open/run, reveal, find in selected/parent/project, cut, copy, paste, paste in parent, rename, move, delete, refresh....

The not so basic: copy paths as URIs, URLs, content as UTF8, content as data:uri base64 ( nice for embedding into CSS! ), copy as tags img/a/script/style, duplicate

Preference to control if a buffer should be closed when affected by a deletion operation.

Allows to display "file modified date" and "file size" on statusbar.

Screenshot

Installation

To install SideBarEnhancements, Install Package Control 2 First. See: https://sublime.wbond.net/installation

Then after restarting, with package control Install this Package.

WARNING: Manual installation:

  • We don't have time to workaround, provide support and follow threads of all the possible problems that installing manually can cause.
  • Most users will clone this repo, with sublime opened, which will Install the version of the package for ST2 on ST3, if you do this with ST3 and opened, the installition is likely screwed up.
  • Install with package control please.

Troubleshooting Installtion:

If you have problems with the installtion, do this:

  • Open the package folder. Main menu -> Preferences -> Browse Packages.
  • Close Sublime Text.
  • Remove the folder "Packages/SideBarEnhancements"
  • Remove the folder "User/SideBarEnhancements"
  • Navigate one folder up, to "Installed Packages/", check for any instance of SideBarEnhancements and remove it.
  • Open ST, with Package Control go to : Remove Package, check for any instance of SideBarEnhancements and remove it.
  • Restart ST
  • Open ST, check if there is any entry about SideBarEnhancements in Package Control(in sections: "Remove Package" and just in case in "Enable Package")
  • Repeat until you find there no entry about SideBarEnhancements
  • Restart ST
  • Install it via Package Control.
  • It works

F12 key

F12 key allows you to open the current file in browser.

url_testing allows you to set the url of your local server, opened via F12

url_production allows you to set the url of your production server, opened via ALT+F12

With absolute paths

  • Right click any file on sidebar and select: "Project -> Edit Projects Preview URLs"
  • Edit this file, and add your paths and URLs with the following structure:
{
    "S:/www/domain.tld":{
        "url_testing":"http://testing",
        "url_production":"http://domain.tld"
    },
    "C:/Users/luna/some/domain2.tld":{
        "url_testing":"http://testing1",
        "url_production":"http://productiontld2"
    }
}

With relative paths

Imagine we have a project with the following structure

Project/ < - root project folder
Project/libs/
Project/public/ < - the folder we want to load as "http://localhost/"
Project/private/
Project/experimental/ < - other folder we may run as experimental/test in another url "http://experimental/"

Then we create configuration file:

Project/.sublime/SideBarEnhancements.json

with content:

{
    "public/":{
        "url_testing":"http://localhost/",
        "url_production":"http://domain.tld/"
    },
    "experimental/":{
        "url_testing":"http://experimental/",
        "url_production":"http://domain.tld/"
    },
    "":{
        "url_testing":"http://the_url_for_the_project_root/",
        "url_production":"http://the_url_for_the_project_root/"
    }
}

...

You can create config files some/folder/.sublime/SideBarEnhancements.json anywhere.

Notes on configuring the Open With menu:

Definitions file: User/SideBarEnhancements/Open With/Side Bar.sublime-menu (note the extra subfolder levels). To open it, right-click on any file in an open project and select Open With > Edit Applications...

  • On OSX, the 'application' property simply takes the name of an application, to which the file at hand's full path will be passed as if with open ..., e.g.: "application": "Google Chrome"
  • On OSX, invoking shell commands is NOT supported.

FAQ

Q: Why the menu is not shown on Open Files?

  • It should be mentioned that the package's context menu is only available for files and folders in a project (section Folders in the side bar), and not on the open files listed at the top of the side bar, due to a limitation of ST.

Using the External Libraries

Source-code

https://github.com/titoBouzout/SideBarEnhancements

Forum Thread

http://www.sublimetext.com/forum/viewtopic.php?f=5&t=3331

Contributors:

- Leif Ringstad
- Sven Axelsson
- Dalibor Simacek
- Stephen Horne
- Eric Eldredge
- Till Theis
- Jeremy Gailor

Like it? Support

- https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=YNNRSS2UJ8P88&lc=UY&item_name=Support%20%20SideBarEnhancements%20Developer&amount=12%2e00&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted
Something went wrong with that request. Please try again.