Sublime text show path content - path

Is there a setting or package that allows sublime text 2/3 to show what's in a path? For example I type app/ it shows me whatever is in app/ so I can press enter to select that file or folder.
Thanks,
Jordy

There is a package called FileSystem Autocompletion, which looks like it should show autocompletion entries based on files and folders that match the path you type - see https://packagecontrol.io/packages/FileSystem%20Autocompletion
EDIT: If that doesn't work for you, there are 2 more similar packages you could try:
https://packagecontrol.io/packages/FuzzyFilePath
https://packagecontrol.io/packages/AutoFileName

Related

How do I type a path of a file if a folder has spaces in its' name and I can't/don't want to change it's name?

I'm using cmder as my command line and if I want to access folders inside a given one i'm already in, e.g. doing cd [foldername], I don't know how to access folders that have spaces in them because then cmder only processes the first word in the folder name instead of the full name.
How about:
cd "folder with space"
And you can also press tab before typing name and cmd will help you out.

Windows 7 - Add Path

I need to add a new path (sumatraPDF) on my PATH variable.
I don't know why it does not work...
I think everything is right but when I try to execute sumatrapdf.exe from CMD it cannot find the program.
This is what I did:
The path is correct, I checked it 1000 times.
The idea is use LaTeX with sublimetext and when I save a .text file sumatra has to open and show to me the result. If I want that I have to add the path of SumatraPDF... but it does not work.
I think you are editing something in the windows registry but that has no effect on the path.
Try this:
How to Add, Remove or Edit Environment variables in Windows 7
the variable of interest is the PATH
also you can type on the command line:
Set PATH=%PATH%;(your new path);
Another method that worked for me on Windows 7 that did not require administrative privileges:
Click on the Start menu, search for "environment," click "Edit environment variables for your account."
In the window that opens, select "PATH" under "User variables for username" and click the "Edit..." button. Add your new path to the end of the existing Path, separated by a semi-colon (%PATH%;C:\Python27;...;C:\NewPath). Click OK on all the windows, open a new CMD window, and test the new variable.
I founded the problem:
Just insert the folder without the executable file.
so Instead of:
C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe
you have to write this:
C:\Program Files (x86)\SumatraPDF\
In answer to the OP:
The PATH environment variable specifies which folders Windows will search in, in order to find such files as executable programs or DLLs. To make your Windows installation find your program, you specify the folder that the program resides in, NOT the program file itself!
So, if you want Windows to look for executables (or other desired files) in the folder:
C:\PHP
because, for example, you want to install PHP manually, and choose that folder into which to install PHP, then you add the entry:
C:\PHP
to your PATH environment variable, NOT an entry such as "C:\PHP\php.exe".
Once you've added the folder entry to your PATH environment variable, Windows will search that folder, and will execute ANY named executable file you specify, if that file happens to reside in that folder, just the same as with all the other existing PATH entries.
Before editing your PATH variable, though, protect yourself against foul ups in advance. Copy the existing value of the PATH variable to a Notepad file, and save it as a backup. If you make a mistake editing PATH, you can simply revert to the previous version with ease if you take this step.
Once you've done that, append your desired path entries to the text (again, I suggest you do this in Notepad so you can see what you're doing - the Windows 7 text box is a pain to read if you have even slight vision impairment), then paste that text into the Windows text box, and click OK.
Your PATH environment variable is a text string, consisting of a list of folder paths, each entry separated by semicolons. An example has already been given by someone else above, such as:
C:\Program Files; C:\Winnt; C:\Winnt\System32
Your exact version may vary depending upon your system.
So, to add "C:\PHP" to the above, you change it to read as follows:
C:\Program Files; C:\Winnt; C:\Winnt\System32; C:\PHP
Then you copy & paste that text into the windows dialogue box, click OK, and you should now have a new PATH variable, ready to roll. If your changes don't take effect immediately, you can always restart the computer.
The path is a list of directories where the command prompt will look for executable files, if it can't find it in the current directory. The OP seems to be trying to add the actual executable, when it just needs to specify the path where the executable is.
Try this in cmd:
cd address_of_sumatrapdf.exe_file && sumatrapdf.exe
Where you should put the address of your .exe file instead of adress_of_sumatrapdf.exe_file.

Add translation using PoEditor

I have files named en_US.po, ru_RU.po etc.
Editing *.po files in PoEdit is very useful, but not while adding new strings manually.
How can I easily add new translation strings which are not automatically detected by PoEdit?
You can edit *.po files in any text editor and then in POEdit generate *.mo file
You misunderstand how gettext translations work. Source strings for translation are extracted from source code. It doesn't make sense to add them manually — they would never be used if they didn't have corresponding source code that uses them.
So the way to add strings is to use xgettext or Poedit's update from sources functionality.
P.S. The name's Poedit, not PoEditor.
You can configure your project (*.po file) opened in PoEdit. If you will done that correct PoEdit automatically update what to translate in this opened *.po file.
First of all, open *.po file which you want update with strings to
translate.
Go to Catalog -> Properties then to Source Paths tab
Add paths where PoEdit should look for source files in Your applilcation. More universal is to use relative to opened *.po file main path. If you have typical zf2 skeleton application folder structure you can add ../../.. for main path and add one module path.
Then go to Source of keywords tab and add translate and if you're using zf2 forms it is useful to add addLabel keyword (PoEdit will scan sources for this functions and add string parameters from them to your *.po file, as string to translate)
Next open Edit -> Preferences and in Processing programs tab, edit PHP section and add *.phtml extension (this will be scanned by poedit also)
After that you have to click in Update button and PoEdit will start scan your sources for strings to translate. Then you only have to do is translate found strings.

How to determine location of wrapper (relative to module - and not theme folder) in placement info file?

i am trying to specify a cshtml file as wrapper for specific ContentType in a placementinfo file.
my definition looks like this :
<Place Parts_Estate="Content:4;Wrapper=OrderResultItemWrapper"/>
now the problem is that , when i investigate the contentItem in ShapeTracing window i figured out that the search location for Wrapper view file is theme folder.
~/Themes/EmlakTheme/Views/OrderResultItemWrapper.cshtml
anyone have any idea how to convince the view engine to search within module folder rather than theme folder.
any help is very appreciated.
EDIT:
my problem is as follow :
1 - i have placed a cshtml file as a wrapper in the module's directory.
2 - i haven't placed any copy of (and not any other file with this name) in the theme folder
3 - the wrapper doesn't affect my shape.
4 - when i searched for problem i found out that shape tracing window showing the
"~/Themes/EmlakTheme/Views/OrderResultItemWrapper.cshtml"
path.that means it doesn't search the modules directory for my wrapper file and results in not displaying the wrapper.
EDIT
My problem have been solved.
my mistake was adding wrapper to DisplayTemplate directory.i have placed it in Views (root) directory and now it is working well.thanks all guys participating in answer.
If you have the same cshtml file in both a module and a theme, the latter will take precedence. If you need to use the one provided by module - delete the one from the theme.

File combo box in delphi

I want to have file combo box in delphi.
It must behave like this:
If i enter C:\ in combo box, it should show all the files & folders in C: Drive
If i proceed further i.e., if i enter C:\Pro, then all the files & folders starting with C:\Pro should be shown in combo box.
Simply it should behave like the File Name Combox Box that will come while using save dialog box
I think you perhaps mean autocomplete/autosuggest, in which case try the following:
Google like edit/combo control for Delphi?
Edit:
http://msdn.microsoft.com/en-us/library/bb759862.aspx
SHAutoComplete will give file functionality - check out this article

Resources