Sublime Forum

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

#38

Hello. Excellent plugin, thanks for your hard work!

Is it possible to add hotkeys or other commands to the “Open With” functionality?

For example, double clicking a png file will open it with Photoshop instead of Sublime or hitting F12 will open a selected file or tab with Chrome.

0 Likes

#39

There is no built-in options to assign hotkeys to sidebar for the moment… and there is no way to listen clicks.

0 Likes

#40

That’s unfortunate. These would be great features.

0 Likes

#41

Thanks for the great module. I can’t figure out how to edit the menu items in a good way. I can comment out menu entries in the Packages/SideBarEnhancemenets/Side Bar.sublime-menu file, but if I copy that file to my User folder and do the same thing, weird things happen. I can change one of the captions just fine, but if I comment out a whole menu item, the file suddenly gets ignored, and defaults back to the original .sublime-menu file.

Am I doing something wrong?

0 Likes

#42

The easy and hacky way is to cut Side Bar.sublime-menu from the package and paste it into your User folder.

If you just want to change the visibility I can add a parameter. But if you want to re-order these you will have the same problem.

0 Likes

#43

Thanks that worked. Is it not the default behaviour to copy files in the User folder in order to override them? Or maybe only extend them, and that’s the problem?

Either way, yes all I wanted to do was remove items I would never use, to keep things nice and streamlined.

0 Likes

#44

Cool! Thank you very much for this enhancement.

0 Likes

#45

I’m having a problem with this plugin. The first time I hit F12 everything works as expected and the file is opened in the browser. Cool. It will work fine until I modify the file. After I modify the file, hitting F12 no longer works. It doesn’t work again until I restart Sublime Text and then it works until I modify a file again.

Any ideas?

Edit: here is the error I’m getting in the console:

“IOError: [Errno 2] No such file or directory: u’C:/Apache2/htdocs/…’”

There’s a lowercase u at the beginning of the filename before the first quote for some reason. Is this what’s causing the problem?

0 Likes

#46

I’ve installed this through Package Control.

And I get nothing. Not really sure what I’m missing?

Apologies if it’s something obvious but this just doesn’t seem to work.

Beta Build 2190.

0 Likes

#47

[quote=“MikeJerome”]I’m having a problem with this plugin. The first time I hit F12 everything works as expected and the file is opened in the browser. Cool. It will work fine until I modify the file. After I modify the file, hitting F12 no longer works. It doesn’t work again until I restart Sublime Text and then it works until I modify a file again.

Any ideas?

Edit: here is the error I’m getting in the console:

“IOError: [Errno 2] No such file or directory: u’C:/Apache2/htdocs/…’”

There’s a lowercase u at the beginning of the filename before the first quote for some reason. Is this what’s causing the problem?[/quote]

Can you please post the complete path of the problematic file? Do you have some project open? Maybe a permissions problem?

[quote=“paulmist”]I’ve installed this through Package Control.

And I get nothing. Not really sure what I’m missing?

Apologies if it’s something obvious but this just doesn’t seem to work.

Beta Build 2190.[/quote]

Try restarting or with a clean profile.

0 Likes

#48

It turns out that it was looking for an old deleted project file for some reason. I think something with the workspace file was screwing it up. Anyway I reinstalled everything and it’s working fine now!

0 Likes

#49

I’ve just downloaded it via package control on the OSX version of sublime - I get no context menus on the side bar
I’ve tried restarting sublime text 2

Is there anything else I’m missing?

0 Likes

#50

It works in folders and files under “FOLDERS” section. Is not adding nothing new to “OPENFILES”.
Try adding a new folder to the project. Project -> Add Folder To Project.

0 Likes

#51

After i updated plugin to the latest version - “F12” key binding stop working, and i get this error in console:

command: side_bar_open_in_browser {"paths": ], "type": "testing"}
Traceback (most recent call last):
  File ".\sublime_plugin.py", line 325, in run_
    return self.run(**args)
  File ".\SideBar.py", line 1091, in run
  File ".\sidebar\SideBarProject.py", line 11, in hasOpenedProject
  File ".\sidebar\SideBarProject.py", line 25, in getProjectFile
  File ".\json\__init__.py", line 307, in loads
  File ".\json\decoder.py", line 319, in decode
  File ".\json\decoder.py", line 336, in raw_decode
  File ".\json\scanner.py", line 55, in iterscan
  File ".\json\decoder.py", line 183, in JSONObject
  File ".\json\scanner.py", line 55, in iterscan
  File ".\json\decoder.py", line 183, in JSONObject
  File ".\json\scanner.py", line 55, in iterscan
  File ".\json\decoder.py", line 183, in JSONObject
  File ".\json\scanner.py", line 55, in iterscan
  File ".\json\decoder.py", line 183, in JSONObject
  File ".\json\scanner.py", line 55, in iterscan
  File ".\json\decoder.py", line 217, in JSONArray
  File ".\json\scanner.py", line 55, in iterscan
  File ".\json\decoder.py", line 155, in JSONString
ValueError: Invalid control character at: line 491 column 7 (char 19788)

but menu command “open\run” - works fine.
what am i doing wrong?

0 Likes

#52

I’m not sure if the json created by the session file is valid. Maybe Jon can confirm? I replace the character “\t” before parsing because for some reason the decoder fails. Not sure. WTH?

0 Likes

#53

it seems the problem was in this characters

in session file
after i deleted them, “f12” works again

0 Likes

#54

No contextual menu after installing SibeBar enhancements? Any suggestion?

0 Likes

#55

Yes, add a folder to the project.

0 Likes

#56

I have installed SideBar Enhancements but the contextual menu doesn’t appear when I right-click on a file, as showed at the top of this thread. Any suggestion? If I right-click on a file, I onle see “Close”.

0 Likes

#57

Excuse my double posting. My mistake. And you’re right. The contextual menu appears after open a Folder. Thank you very much.

0 Likes