In Sublime Text 2, search for a folder - sublimetext2

I'm using Sublime Text 2, and I'm looking for an entire folder within my currently loaded directory, which is pretty large.
I understand there are many effective ways to search for files with specific folders or the whole directory, but I'm searching for the folder itself, not any specific files in it. I've tried using the GoTo Anything feature, but it only seems to look for files, not folders.

Go "Project->Add Folder to Project". Select your folder and then appears a col in left. Only right click in your parent folder and: "Find in Folder..."
Hope helps ;)

Related

Html directory link not working if the directory is not from the beginning

My problem is that I have a bunch of HTML files but in simple I have public_html/pages folder + index.html/under pages folder a dmca.html is located.
So when I want to locate the file using href = "pages/dmca.html" it doesn't work and on another side when I use "../../public_html/pages/dmca.html" from the beginning it works is it normal or something wrong so I can only use the simple way as I have mentioned above(the link)
You have to look where is the .html file located on the hierarchy. If you are in dmca.html and you have a href on that page to second.html, you will need to jump backwards to the pages directory, and then go to the file: ../second.html
Now, if you are in index.html, and you have a href linking to dmca.html, you will need to hop back one level, enter pages directory, and choose the .html file. So it would be like this: ../pages/dmca.html
-public_html
|
|--index.html
|--pages
|--dmca.html
|--second.html
If I have not explained myself correctly, or I've understood the question wrong, please tell me.
What is happening, if I understand the problem properly, is that you are in index.html, and you want to href dmca.html, but the route you use pages/dmca.html, doesn't work, but if you use ../../public_html/pages/dmca.html, then, it does work. And I guess you are asking why is this happening.
Well, what happens when you use pages/dmca.html is that you are saying: search for a subdirectory called 'pages' and go to the file inside it called dmca.html. This would be correct if you had this hierarchy:
-public_html
|
|--index.html
|--pages
|--dmca.html
|--second.html
But index.html is a file, so it can't contain subdirectories. That's why you have to go one level up the hierarchy, and then, once you are in public_html/ you can choose to load index.html or go to the subdirectory public_html/pages and choose a file from it.
Right now I'm working on my web page, and... rethinking about it, I have to say that you were right, I mean, what you were doing was supposed to work.
Look at my directories. I have a htdocs folder, inside it I have some .png, index.html, and a folder called "prova", inside the folder "prova" I have index2. You can see that it is the same case as yours. I have an href on index.html that says href="prova/index2.html" and it works for me. Actually what I've said to you on the morning is wrong. I'm sorry :/
Because if I write ../prova/inedx2.html what happens is that the folder "htdocs" is removed from the URL. Remaining as: "PortàtilHP_antic_pare/prova/index2.html" You can see that the folder between "PortàtilHP_antic_pare" and "prova", which should be "htdocs", has disappeared.
So now I'm wondering how my answer has been useful for you. I guess I have understand it wrong, and somehow, my answer has made you change something that somehow has worked.

How to open several folder in navigation sidebar SublimeText2

It's seems i can open only one folder in the navigation sidebar in the SublimeText2 editor.
Everytime i try it open a new window...i try using a widows with 2 layout and 2 group... and also " add folder to project".. same result.
Is there a way cause i need for example the package folder
/usr/lib/python2.7/mypackage
and the project folder in my /home/project
One way would be opening the top level directory... but it not the best.
Give thanks to the community

Sublime Text Won't Find htdocs

I'm trying to open a file in htdocs directory which is on my desktop but when I click on open folder on Sublime Text 2 it doesn't show htdocs as a directory. However I can open a file in htdocs using Sublime Text by simply clicking on it. I tried to display the path of an index.php in a browser but it only shows "." instead of the path.
I appreciate any help, thanks in advance.
Try to add the folder project at your Sublime Text, just go to Project/Add folder to Project and browse it, add a whole project or just add htdocs folder if you want, so you also can see your folder project, just go to View/Side bar/Show side bar and you can find a file search it by name with the shortcut Ctrl + P
I found that even if I create a shortcut of htdocs on my desktop the path stays the same. So for example "C:\xampp\htdocs..". I had to find that directory. In case if anyone else has the same problem.

How to add icon for different file type in sublime 2

I want to switch my text editor to Sublime text 2 but the only issue cant let me do it.
I work with big projects and need very quick to navigate between files. ST2 sidebar doesnt support icon packs on such files .css, .html, ,php, .js etc. I found some article where the one guy explains how to do that - https://sublimetext.userecho.com/topic/19274-theming-of-the-sidebar/ I tried it but nothing happens. I tried do changes on the user-settings file. I suppose I do something wrong
If somebody knows how to do this please help
The newest stable version of Sublime Text 3 has sidebar themeing and many themes (not colour schemes) have added support for custom icons.
So upgrade to this: http://www.sublimetext.com/3
and then either use the default theme, or something like Soda theme to get custom sidebar icons.
For ST3 users. Adding icons for different file types and folders to default theme:
Download archive with icons. Or this one.
Go to Preferences > Browse Packages (In Windows find the Browse packages button to open the packages folder)
Copy(extract) folder from archive to packages folder. If you already have a
Theme - Default folder then just merge them.
Done. Thanks to Xavi Esteve

Adobe air native installer is not including .class files and .properties files

I have some files in my src directory, some are .class files (Java class files) and some are .properties files, when I create the Adobe air native installer these files are not included. Why is that? How can I work around that?
Also it excludes .mxml files, but that's good. I'm sure that's related, how to change what it includes or excludes?
Honestly not sure why it's excluding those on you. But you can right click the project in the project navigator panel, go to properties, on the left side navigation select "Flex Build Packaging", click the "Package Contents" tab on the right, make sure the files you want are selected. If they aren't there I would guess somehow these files aren't being seen in the source path, check that under Flex Build Path -> Source Path.
EDIT:
Found this as a duplicate, following the steps to go to window preferences and remove the exclusions seems to have worked.
Add .properties file to output folder of Flex project