Enhancements to Sublime Text sidebar. Files and folders.

Overview

Sidebar Enhancements

In other languages

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

Russian - https://www.youtube.com/watch?v=8I0dJTd58kI&feature=youtu.be&a

Chinese - https://github.com/52fisher/SideBarEnhancements

Description

Provides enhancements to the operations on Sidebar of Files and Folders for Sublime Text. 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. (even on folders)

New file/folder, edit, open/run, reveal, find in selected/parent/project, cut, copy, paste, paste in parent, rename, move, delete, refresh....

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 (may be a bit buggy).

Installation

Download or clone the contents of this repository to a folder named exactly as the package name into the Packages/ folder of ST.

Troubleshooting Installation:

  • First please note this package only adds a context menu to the "Folders" section and not to the "Open Files" section.
  • 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.
  • It works

F12 key

(Please note that from version 2.122104 this package no longer provides the key, you need to manually add it to your sublime-keymap file (see next section))

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.

F12 key conflict

On Sublime Text 3 F12 key is bound to "goto_definition" command by default. This package was conflicting with that key, this no longers happens. You need to manually add the keys now: Go to Preferences -> Package Settings -> Side Bar -> Key Bindings - User and add any of the following:

	[
		{ "keys": ["f12"],
			"command": "side_bar_open_in_browser" ,
			"args":{"paths":[], "type":"testing", "browser":""}
		},
		{ "keys": ["alt+f12"],
			"command": "side_bar_open_in_browser",
			"args":{"paths":[], "type":"production", "browser":""}
		},
		{
			"keys": ["ctrl+t"],
			"command": "side_bar_new_file2"
		},
		{
			"keys": ["f2"],
			"command": "side_bar_rename"
		},
	]

Keybinding for Find in paths:

You may wish to add a key for opening "find in paths.."

[
	{
		"keys": ["f10"],
		"id": "side-bar-find-files",
		"command": "side_bar_find_files_path_containing",
		"args": {
			"paths": []
		}
	}
]

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.
  • You should change Caption and id of the menu item to be unique.
//application 1
{
	"caption": "Photoshop",
	"id": "side-bar-files-open-with-photoshop",
	"command": "side_bar_files_open_with",
	"args": {
		"paths": [],
		"application": "Adobe Photoshop CS5.app", // OSX
		"extensions":"psd|png|jpg|jpeg",  //any file with these extensions
		"args":[]
	}
},

Vars on "args" param

  • $PATH - The full path to the current file, "C:\Files\Chapter1.txt"
  • $PROJECT - The root directory of the current project.
  • $DIRNAME - The directory of the current file, "C:\Files"
  • $NAME - The name portion of the current file, "Chapter1.txt"
  • $NAME_NO_EXTENSION - The name portion of the current file without the extension, "Chapter1"
  • $EXTENSION - The extension portion of the current file, "txt"

Using the External Libraries

(check each license in project pages)

Source-code

https://github.com/SideBarEnhancements-org/SideBarEnhancements

Forum Thread

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

Contributors:

(Thank you so much!) Aleksandar Urosevic, bofm, Dalibor Simacek, Devin Rhode, Eric Eldredge, Hewei Liu, Jeremy Gailor, Joao Antunes, Leif Ringstad, MauriceZ, Nick Zaccardi, Patrik Göthe, Peder Langdal, Randy Lai, Raphael DDL Oliveira, robwala, Stephen Horne, Sven Axelsson, Till Theis, Todd Wolfson, Tyler Thrailkill, Yaroslav Admin

TODO

https://github.com/SideBarEnhancements-org/SideBarEnhancements/issues/223

License

"None are so hopelessly enslaved as those who falsely believe they are free." Johann Wolfgang von Goethe

Copyright (C) 2014 Tito Bouzout [[email protected]][]

This license apply to all the files inside this program unless noted different for some files or portions of code inside these files.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation. http://www.gnu.org/licenses/gpl.html

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/gpl.html

Helpful!? Support, Many thanks ^_^

[Donate to support this project.][]

[]: https://www.dropbox.com/s/ckz5n2ncn2pxkii/sidebar.png?dl=1 [desktop]: http://pypi.python.org/pypi/desktop [Send2Trash]: http://pypi.python.org/pypi/Send2Trash [bfg-pages]: http://code.google.com/p/bfg-pages/ [[email protected]]: [email protected] [Donate to support this project.]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DD4SL2AHYJGBW

Comments
  • Troubleshooting‎ my 'open in browser' / F12, does not work

    Troubleshooting‎ my 'open in browser' / F12, does not work

    Im using the st3 on mac, setup a project but 'open in browser' wont pull up page. It just does nothing. open / run works for html files.

    [title edited by tito]

    opened by nwpointer 31
  • For 'Open in Browser', add support for the user's primary browser

    For 'Open in Browser', add support for the user's primary browser

    On my system, the default settings of 'Open in Browser' are very surprising: it will open Chrome even though it's not my primary browser.

    This pull request will use the user's primary browser by default. It uses Python's webbrowser module to do the hard work.

    The user can of course still control which browser is opened, by changing the SideBar settings.

    opened by zr40 27
  • Delete files doesn't work on OSX

    Delete files doesn't work on OSX

    Environment:

    • OSX
    • Sublime Text - Build 2190
    • Latest version of SideBarEnhancements

    Delete files doesn't work. The "delete" panel appears and dissapears without allowing the user to remove the file.

    opened by fesplugas 24
  • Wrong permissions on new file/folder

    Wrong permissions on new file/folder

    New files are being created with 666 permission (umask 000).

    They should respect logged user umask.

    New Folders are being created with 775, but these permissions seens to be fixed on code.

    opened by paulodiovani 22
  • Configuring 'Open With Terminal'

    Configuring 'Open With Terminal'

    Hello, Really enjoying this plugin! I used to use it in the past, but never took the time to really configure it.

    I'm currently working on an "Open With Terminal" menu option.

    Here is the terminal command that would open a terminal window on my OS: gnome-terminal --working-directory=/path/to/your/project

    And here is my current progress inside my Side Bar.sublime-menu file:

    {
    	"caption": "Terminal",
    	"command": "side_bar_files_open_with",
    	"args": {
    		"paths": [],
    		"application": "gnome-terminal",
    		"extensions":"",
    		"args":["--working-directory="]
    	},
    	"open_automatically" : false 
    },
    

    Is there any way I can access my project's file path from args?

    opened by DougBeney 21
  • Deleting files on windows causes hang

    Deleting files on windows causes hang

    Right clicking and deleting a file on windows when SideBarEnhancements is active will cause sublime to hang for a considerable amount of time, 30 seconds or so. I've not conducted any further investigation into it, but the problem goes away when removing this package so I figured it's probably related. Not ruling out there's a conflict with something else though as I've not tried it on a pristine sublime install.

    This seems like it's a windows only issue.

    opened by mstade 17
  • Opening folder

    Opening folder

    I would like to add entry to Side Bar.sublime-menu to open folder with file browser (say nemo). I see an extension filter, is there a filter for folders? The current Open/Run opens a terminal at the folder withoud cd-ing into the folder (Cinnamon/Arch).


    Edit: A workaround (at least for Linux) is to use "Open in Browser".

    opened by leesei 16
  • "Exclude from project" no longer works

    Sublime Text 3 build 3059 on OSX Mavericks. SideBarEnhancements installed and working as previously in a Linux host (also Sublime Text 3). But "Exclude from project" does not work in OSX, it does not edit the project file at all.

    opened by ibc 15
  • Plugin fails without internet connectivity

    Plugin fails without internet connectivity

    When you start Sublime Text 2, your plugin loads.

    In its load process, it (assumingly) checks for an update.

    If you're disconnected from the Internet (weird concept, I know), it throws an exception and the rest of the load process fails.

    Because of that, every item on the menu remains disabled indefinitely. I think you just need a try/catch somewhere.

    opened by OlsonDev 15
  • Can't install SideBarEnhancements from ST2 PackageControl

    Can't install SideBarEnhancements from ST2 PackageControl

    I was trying to install SideBarEnhancements on my new computer with ST2. But I couldn't find it on PackageControl install list. I noticed that SideBarEnhancements is not recommended install manually. I wonder is there anything wrong with wbond or github, Thanks.

    opened by testto 14
  • F2 shortcut interferes with Sublime shortcut

    F2 shortcut interferes with Sublime shortcut

    Hi,

    would it be possible to change the F2 shortcut:

     "keys": ["f2"], "command": "side_bar_rename" },
    

    To something else by default as it interferes with Sublimes "Next bookmark" shortcut. Or at least move it to the user keybinding file?

    Thanks

    opened by lanthaler 14
  • Default items (

    Default items ("New File", "New Folder") are still there in ST4

    Hi, I tried installing a fresh copy of ST4, and installing Sidebar Enhancements. The default items are still there. I thought (?) they were supposed to be gone? Or am I missing something?

    Screen Shot 2022-09-07 at 11 33 40
    opened by mgussekloo 2
  • "Open With" multiple files?

    Is it possible to configure an app to take more than one highlighted file? I'd like to highlight two files, select "Open With" and pass both files to a diffing tool.

    Thanks.

    opened by sardaukar 8
  • Request: show full path for new file in input field

    Request: show full path for new file in input field

    Would it be possible to display the full path in the input field when creating a new file or folder, like it is when moving an item? That way you have confirmation that the file will be created in the folder you expect, as well as the option to change it quickly.. AdvancedNewFile displays it in the status bar below, but that's hard to see with a dark theme and doesn't allow editing..

    Thanks for a great plugin!

    opened by ViggoV 0
  • Fails to function with specific character in path name

    Fails to function with specific character in path name "^"

    When I need to open a file with a path name containing "^" (like "F:/Work/^Current_Project/^Current_File") from sidebar or using command palette, SideBarEnhancements fails to locate such a file. Possibly the plugin fails to recognize the "^" symbol.

    The commands that are broken include:

    • Open/Run, Open in browser, Reveal: failed to find location
    • Copy path: "^" returns as "%5E"

    The commands that are functioning properly include: Open in new window, Open With, Copy Name.

    I didn't test other commands but I think this problem could affect other commands in some ways.

    opened by YiLiu6240 2
Owner
Tito
Tito
Emmet for Sublime Text

This plugin is deprecated and no longer maintained, please use new version. Emmet for Sublime Text Official Emmet plugin for Sublime Text. How to inst

Sergey Chikuyonok 5.3k Jan 5, 2023
The code linting framework for Sublime Text 3

SublimeLinter The code linting framework for Sublime Text. No linters included: get them via Package Control. Installation Install SublimeLinter and l

null 2k Jan 8, 2023
Locust are malware that can delete all folders, files, etc. on the system; I

Locust are malware that can delete all folders, files, etc. on the system; It was originally designed for web systems.

Md. Ridwanul Islam Muntakim 21 Dec 9, 2022
File & Folders & Media Browser With Code Editor

Filament Browser File & Folders & Media Browser With Code Editor Features File Browser Code Editor with highlights Media Viewer .Env Editor Screenshot

Fady Mondy 23 Jan 5, 2023
A laravel package to generate class files from stub files.

Laravel Stub Generator A php laravel package to generate useable php files from given stub files . Installation Require the package using composer: co

Touhidur Rahman 31 Dec 29, 2022
A Laravel package that allows you to use multiple ".env" files in a precedent manner. Use ".env" files per domain (multi-tentant)!

Laravel Multi ENVs Use multiple .envs files and have a chain of precedence for the environment variables in these different .envs files. Use the .env

Allyson Silva 48 Dec 29, 2022
Laravel package to convert English numbers to Bangla number or Bangla text, Bangla month name and Bangla Money Format

Number to Bangla Number, Word or Month Name in Laravel | Get Wordpress Plugin Laravel package to convert English numbers to Bangla number or Bangla te

Md. Rakibul Islam 50 Dec 26, 2022
Laravel package to convert English numbers to Bangla number or Bangla text, Bangla month name and Bangla Money Format

Number to Bangla Number, Word or Month Name in Laravel | Get Wordpress Plugin Laravel package to convert English numbers to Bangla number or Bangla te

Md. Rakibul Islam 50 Dec 26, 2022
Integrates the Trix Editor with Laravel. Inspired by the Action Text gem from Rails.

Integrates the Trix Editor with Laravel. Inspired by the Action Text gem from Rails. Installation You can install the package via composer: composer r

Tony Messias 267 Jan 4, 2023
An online communication application that provides a real-time or live transmission of text messages from sender to receiver.

Realtime-chat-application An online communication application that provides a real-time or live transmission of text messages from sender to receiver.

isha 2 Aug 15, 2022
Load files and classes as lazy collections in Laravel.

Lody Load files and classes as lazy collections in Laravel. Installation composer require lorisleiva/lody Usage Lody enables you to fetch all exist

Loris Leiva 64 Dec 22, 2022
Bunny CLI - Replicate and store your files to the edge!

Bunny CLI - Replicate and store your files to the edge! What is Bunny CLI? Bunny CLI is a tool for the console to upload frontend frameworks such as A

own3d media GmbH 11 Apr 18, 2022
Package to parse DNA kit files, and import them into Laravel

Package to parse DNA kit files, and import them into Laravel

Family Tree 365 4 Aug 31, 2022
Package for Laravel that gives artisan commands to setup and edit environment files.

Setup and work with .env files in Laravel from the command line NOTE: This doesn't work with Laravel 5 since .env files were changed. This is for Lara

Matt Brunt 6 Dec 17, 2022
Laravel 5 package for reading and writing CSV files.

CSV Laravel 5 package for reading and writing CSV files. Warning The package has been updated to PHP 7. If you can't update to PHP 7 use version 0.6.x

Maciej Wilgucki 48 Nov 29, 2022
Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel 5.

Laravel-Mediable Laravel-Mediable is a package for easily uploading and attaching media files to models with Laravel. Features Filesystem-driven appro

Plank Design 654 Dec 30, 2022
Searches for multilingual phrases in Laravel project and automatically generates language files for you.

Laravel Lang Generator Searches for multilingual phrases in a Laravel project and automatically generates language files for you. You can search for n

Gleb 5 Oct 19, 2022
MySecureVault is the most secure passwords, notes and files vault on the Internet.

MySecureVault MySecureVault is the most secure passwords, notes and files vault on the Internet. It has been developed with ultimate privacy and secur

MySecureVault 1 Jan 26, 2022
Localization Helper - Package for convenient work with Laravel's localization features and fast language files generation

Localization Helper Package for convenient work with Laravel's localization features and fast language files generation. Installation Via Composer $ c

Galymzhan Begimov 0 Jul 13, 2019