Sublime Forum

SideBar Enhanc.. (Clipboard, Open With., Reload renamed)

#132

All the sidebar Enhancement function don’t work for images. When I open a png file, I can’t use delete file, copy file path etc…

0 Likes

#133

True, ST does not report the file name of the active view containing an image!

sublime.active_window().active_view().file_name()
Traceback (most recent call last):
File “”, line 1, in
AttributeError: ‘NoneType’ object has no attribute ‘file_name’

0 Likes

#134

The installation is not working for me as it should. I am fairly new to Sublime but I know enough to share with you that I am running ST2 and have the Package Control installed.

Am I supposed to copy the contents of the ZIP file to the packages directory? But that sounds like a manual install which we are advised against.

If I click Preferences > Package Control > Install Package, I don’t find SideBarEnhancements in the menu.

What am I doing wrong?

0 Likes

#135

As I recall, @tito no longer supports ST2, but only supports ST3. So, in short, upgrade to ST3 and then install via package control.

0 Likes

#136

That worked. Thanks.

0 Likes

#137

Thank you Tito.

0 Likes

#138

github.com/titoBouzout/SideBarE … ts#f12-key

0 Likes

#139

Hello again.

Is it possible to bind F12 key to open in firefox, and ALT+F12 to open in chrome?
Reading the documentation, i cannot figure out how to.

0 Likes

#140

I just added option to set the browser to use directly in the keymap file. So you may now update the package first(with package control), and then, add the browser to your keymap, as:

{ "keys": "f12"],
	"command": "side_bar_open_in_browser" ,
	"args":{"paths":], "type":"testing", "browser":"firefox"}
},
{ "keys": "alt+f12"],
	"command": "side_bar_open_in_browser",
	"args":{"paths":], "type":"testing", "browser":"chrome"}
}

]

PS: I did not tested :stuck_out_tongue:

0 Likes

#141

New Build Install Issues. Installed in latest ST beta using Package Control 2.0.

Per your GitHub

Troubleshooting Installtion:

If you have problems with the installtion, do this:

Open the package folder. Main menu -> Preferences -> Browse Packages.
Completed

Close Sublime Text.
Completed

Remove the folder “Packages/SideBarEnhancements”
There was no “Packages/SideBarEnhancements” folder

Remove the folder “User/SideBarEnhancements”
There was no “User/SideBarEnhancements” folder

Navigate one folder up, to “Installed Packages/”, check for any instance of SideBarEnhancements and remove it.
Completed

Open ST, with Package Control go to : Remove Package, check for any instance of SideBarEnhancements and remove it.
Completed

Restart ST
Completed

Open ST, check if there is any entry about SideBarEnhancements in Package Control(in sections: “Remove Package” and just in case in “Enable Package”)
Completed, there was no evidence of SideBarEnhancements

Restart ST
Completed

Install it via Package Control.
Completed

It works
No it doesn’t :smile:

Upon inspection, “Packages/SideBarEnhancements” and “User/SideBarEnhancements” folders are not being created. Side Bar.sublime-settings is being created in the Users folder.

When right clicking on any file, it shows only one single menu item - close.

Thanks,
Matthew

0 Likes

#142

Matthew, Great homework! Thank you so much :slight_smile:

…Now read the first Question of the FAQ: github.com/titoBouzout/SideBarEnhancements#faq:slight_smile:

[quote]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.[/quote]

0 Likes

#143

Thanks for the reply Tito. So much information, so little time. Sorry I missed that in the FAQ.

Can you enlighten me as to why “Packages/SideBarEnhancements” and “User/SideBarEnhancements” folders are not being created after I install SideBarEnhancements?

After reading your troubleshooting guide, I immediately assumed the installation was failing b/c of the lack of those two folders…

0 Likes

#144

Your are welcome, thank to you for detailed debugging. The folder are not created because in ST3 the package resides in a zip file with extension sublime-package. (in ./Packages/…/Installed Packages/HERE). In ST2 these were unpacked to the Packages/ folder. I’m sorry for the confusion. As most people with problems, where trying to install it in ST2. I’ll update the readme

0 Likes

#145

system configuration:** Sublime text3 build 3065 + Ubuntu 14.04**

I want to add preview in Browser and found that Siderbar Enhancement (SBE) is best plugin to do that. below are the steps

  1. Folder added and project and work space created in ST3
  2. Install [SBE], following the instructions. First removed previous instance of SBE and then install via via Package Control.
  3. Restart the ST3.

But still no menu in folder context menu?

Is that any issue with plugin/system or am I missing something?

0 Likes

#146

right click any file or folder and select “open in browser”, if you want to “open in browser” the current view/tab, then add a keyshortcut as described in github.com/titoBouzout/SideBarE … s/#f12-key

0 Likes

#147

Hello!

I want to open folder with git-bash using open with menu on windows.

The command is following and work correctly "C:\Program Files\Git\bin\sh.exe" --login -i

The configuration if following:

			{
				"caption": "git bash",
				"id": "side-bar-files-open-with-gitbash",

				"command": "side_bar_files_open_with",
				"args": {
					"paths": ],
					"application": "\"C:\\Program Files\\Git\\bin\\sh.exe\" --login -i",
					"extensions":"",
					"args":]
				},
				"open_automatically" : false
			},

But i get the following error


Sublime Text

Unable to “Open With…”, probably incorrect path to application.

ОК

Please, help

0 Likes

#148

I use ST3 on Windows 10.

I have enabled option ‘statusbar_modified_time’ for SBE and it worked nice. Recently I changed in Windows regional settings to use Serbian Cyrillic, so that now provide month and weekday name in Serbian Cyrillic text, like:

but in ST statusbar weekday and month name are presented as question marks.

https://drive.google.com/file/d/0B8BerXvnwoN3YTRIX0F0SkFqckU/view

What I can do to make this readable and displayed properly? Thanks!

0 Likes

#149

Hi there, in theory should just work as we are using python3, I’m not sure whats really going on, but the code is pretty simple
github.com/titoBouzout/SideBarE … r.py#L1904

Can you confirm that opening the console (Menu -> View -> View Console ) and running this:
sublime.active_window().active_view().set_status(‘test’, ‘четвртак окт.’);
shows the correct characters?

0 Likes

#150

Hi Tito,

I though maybe is something with UI font encoding, but looks that it’s something with ST Python or some setting (because time.strftime() returns unreadable weekday and month name).

With Python 3.5 in Windows I’m getting English date - https://goo.gl/vnfqE3

Test for statusbar in ST3 as you suggested works - goo.gl/BwNnP9

sublime.active_window().active_view().set_status('test', 'четвртак окт.');

But printing formatted time.strftime() doing this mess - goo.gl/fEXTm8

import time; sublime.active_window().active_view().set_status('test', time.strftime("%A %b %d %H:%M:%S %Y"));

I’m not so good with Python, but any idea to resolve this is welcome.

Thank you in advance!

EDIT: I fixed my issue by implementing new option to set locale and override system set locale - here is GitHub pull request https://github.com/titoBouzout/SideBarEnhancements/pull/284

0 Likes

#151

What is wrong with this setup, I am on Windows.

[
    {"id": "side-bar-files-open-with",
        "children":
        [

{
                "caption": "FastStone Image Viewer",
                "id": "side-bar-files-open-with-photoshop",

                "command": "side_bar_files_open_with",
                "args": {
                                    "paths": ["M:\\PortableApps\\FastStone Image Viewer\\FSViewer.exe"],
                                    "extensions":"psd|png|jpg|jpeg",  //any file with these extensions
                                    "args":[]
                                },
                "open_automatically" : true // will close the view/tab and launch the application
            },

            {"caption":"-"},

            {
                "caption": "Photoshop CC 2015",
                "id": "side-bar-files-open-with-photoshop",

                "command": "side_bar_files_open_with",
                "args": {
                                    "paths": ["C:\\Program Files\\Adobe\\Adobe Photoshop CC 2015\\Photoshop.exe"],
                                    "extensions":"psd|png|jpg|jpeg",  //any file with these extensions
                                    "args":[]
                                },
                "open_automatically" : true // will close the view/tab and launch the application
            }

0 Likes