Sublime Forum

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

#61

Can you be more specific when you refer to adding the SideBarEnhancements.json file into the Settings folder? I am not finding a Settings folder in the packages directory.

0 Likes

#62

The Settings folder is located in the Packages parent folder:

ā€¦/Sublime Text 2/Packages/**ā€¦/**Settings/

0 Likes

#63

F12 to preview files in my browser has stopped working for me in the last couple of days. Iā€™ve tried updating my packages through package control and have also manually updated SideBar, but to no avail. Hitting F12 causes a slight flicker in Sublime but the browser does not open now.

Any idea how to fix this?

Thanks.

0 Likes

#64

github.com/titoBouzout/SideBarE ā€¦ ts#f12-key

0 Likes

#65

In sublime text 2 version 2.0.1, Build 2217 and I assume many versions before it uses F2 for ā€œNext bookmarkā€.

This extension overrides it. I have to delete the shortcut every time the extension is updated.

Can you please change ā€œside_bar_renameā€ shortcut to something thatā€™s not used by sublime?

Thank you.

0 Likes

#66

No, F2 is rename. Sorry.

0 Likes

#67

Iā€™m sorry but I donā€™t understand this.

[quote]F12 key allows you to open the current file in browser. If you want to add a url to that feature:

Open the Settings folder: ā€¦/Sublime Text 2/Packages/ā€¦/Settings/
Create a file called ā€œSideBarEnhancements.jsonā€
Add your paths and URLs with the following structure:[/quote]

I have to assume that ā€¦/Sublime Text 2/Packages/ā€¦/Settings/ means:

C:\Users\MyName\AppData\Roaming\Sublime Text 2\Packages\SideBarEnhancements

There isnā€™t a settings folder in there, so I created one and added the SideBarEnhancements.json file.

I donā€™t know what to put in these settings thoughā€¦

{ "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" } }

I simply want to open the file using localhost and I already have the settings you mentioned in this post setup in my project and they worked just fine until the other dayā€¦

So if I haveā€¦

[code]{
ā€œfoldersā€:

	{
		"path": "/E/Work/www"
	}
],
"url":"http://localhost/"

}[/code]

Do I delete these settings? What do I put in the json file now?

Thanks.

0 Likes

#68

[quote=ā€œtitoā€]The Settings folder is located in the Packages parent folder:

ā€¦/Sublime Text 2/Packages/**ā€¦/**Settings/[/quote]

The Packages parent folder is simply Roaming/Sublime Text 2, so to direct people to the Settings folder in that folder why not just say Sublime Text 2/Settings ?

Iā€™m still unclear as to what to actually put in the json file.

0 Likes

#69

[quote]The Packages parent folder is simply Roaming/Sublime Text 2, so to direct people to the Settings folder in that folder why not just say Sublime Text 2/Settings ?
[/quote]

Because some people confuse the application folder with the user folder.
Is not difficult to navigate to the packages folder and then typing ā€œā€¦ā€ (move one up?) and then ā€œSettingsā€.

Your setting should be something like this:

{
    "E:\\work\\www":{
        "url_testing":"http://localhost",
        "url_production":"http://domain.tld"
    }
}
0 Likes

#70

[quote]I simply want to open the file using localhost and I already have the settings you mentioned in this post setup in my project and they worked just fine until the other dayā€¦
[/quote]

No, it was not working good to everyone.

0 Likes

#71

OK, thanks for the help. I now have a completely new system, built a brand new computer, and so everything is a new installation. I have done everything youā€™ve said and F12 is now working with the settings above, but now when I hit F12, Windows doesnā€™t know which program to use to open the file. Itā€™s not opening properly in localhost, instead the dialogue to choose which program to open .php files shows up. I tried choosing Chrome, but that only opens the code in the browser window, not the site itself. Iā€™m sure I must just be missing something I had previously setup, but Iā€™m not sure what. Iā€™ve added my www directory to my Apache httpd.conf file and so when I browse to localhost in my browser I can see my files in ā€œMy Projectsā€ list and they open properly from there, but still not from Sublime.

Your thoughts?

0 Likes

#72

Windows 7 user here. Iā€™ve found a couple of issues.

  1. ā€œOpen in new windowā€ currently does nothing.

  2. ā€œOpen in browserā€ just opens the file in sublime and nothing else.

Iā€™m sure youā€™ll need more specifics, just let me know and thanks for the plugin.

0 Likes

#73

I opened an issue at https://github.com/titoBouzout/SideBarEnhancements/issues/41 asking for improvements to the read-me so that people can take full advantage of this useful package without struggling to configure it.

It also contains my (hopefully correct) findings on the specifics and potential pitfalls of the F12 and Open With features.
While written in part from the perspective of OS X, I hope they are useful in general.

0 Likes

#74

Hello, many thanks for so detailed issue. I fixed most of the bugs you mentioned about the F12 key.

Now this pluing try to call the browser directy instead of using ā€œwebbrowserā€ module.

If the browser is not found, please post the path to the browser here, Iā€™ll be happy to add it.

About updating the readme.md file, i added some of the things you mentioned, but please, fork the project and add anything you think is important. Contributions welcome.

0 Likes

#75

hello, i just want to askā€¦

when i use find advanced->in paths containingā€¦
the search result for example like this

4 matches in 1810 files for term "listItem" under 
"E:\www\toko-inventory"

E:\www\toko-inventory\application\controllers\bItem\listItem.php
E:\www\toko-inventory\application\controllers\bItemStock\listItemStock.php
E:\www\toko-inventory\application\views\bItem\listItem.php
E:\www\toko-inventory\application\views\bItemStock\listItemStock.php

how can i open up this couple of file in new tab? what shortcut keys?
been searching for this, but got no answerā€¦ :frowning:
i am on windows

0 Likes

#76

[quote=ā€œtitoā€]

Your setting should be something like this:

{ "E:\\work\\www":{ "url_testing":"http://localhost", "url_production":"http://domain.tld" } } [/quote]

That is what I have in the settings but instead of my browser opening up:

localhost/website/filename.php

itā€™s opening up:

file:///E:/Work/www/website/filename.php instead.

This is doing my head in. It canā€™t be this difficult, especially when it worked perfectly fine before.

On a similar but somewhat unrelated note, I had my last computer set up so that when I double clicked a PHP file, it would open in my browser at localhost/website/filename.php and for the life of me I canā€™t remember how I set that up, but it was immensely useful. If anyone here can tell me how I might have done this previously it would be greatly appreciated because I simply canā€™t remember and havenā€™t been able to find the answer on Google.

Regards.

0 Likes

#77

n1colius install ā€œopen includeā€
then CTRL+A (select all)
then ALT+D (open paths found on selection)

Fatbat - the paths in the config file are case sensitive. check again.

0 Likes

#78
{
    "E:\\work\\www":{
        "url_testing":"http://localhost",
        "url_production":"http://domain.tld"
    }
}

is the correct case. But it doesnā€™t make a difference what case I use. Iā€™ve tried all caps, mixed case, all lower case. In fact it doesnā€™t matter what I put here. I can type anything, leave it blank, write a poem, etc. the result is the same. Hitting F12 opens the file in Firefox at:

file:///E:/Work/www/website/filename.php

instead of:

localhost/website/filename.php

0 Likes

#79

Also, how do I control what app hitting F12 opens with? Chrome is my default browser but hitting F12 opens files in Firefox instead.

Edit: found it in the second settings file > Preferences >Package Settings > Side Bar > Settings Default

0 Likes

#80

Does anyone have any advice how to make this plugin work? Iā€™ve read though everything on Github but I do not see an obvious answer.

Any help would be greatly appreciated.

0 Likes