Page 1 of 1
Wildcard in PFA
Posted: 20 May 2013 05:57
by binocular222
I want to match:
sublime-menu;sublime-commands;sublime-settings;sublime-keymap;sublime-completions;sublime-build
But this does not work:
sublime*>?:\7Utilities\Sublime Text\sublime_text.exe
-----------------
This is for Sublime Text (quite a good Text Editor)
Re: Wildcard in PFA
Posted: 20 May 2013 11:41
by Stefan
binocular222 wrote:I want to match:
sublime-menu;sublime-commands;sublime-settings;sublime-keymap;sublime-completions;sublime-build
But this does not work:
sublime*>?:\7Utilities\Sublime Text\sublime_text.exe
perhaps with quotes due to the space?
sublime*>"?:\7Utilities\Sublime Text\sublime_text.exe"
f.ex. this 'sublime*>' works for me fine with the mentioned filespecs:
+|"Open with &Sublime Text" sublime*>"..\SublimeText2\sublime_text.exe";
Re: Wildcard in PFA
Posted: 20 May 2013 12:12
by binocular222
I tried yours but still not work?!
Re: Wildcard in PFA
Posted: 20 May 2013 13:10
by highend
Filenames are like:
extracted-snippets.sublime-settings
so shouldn't it be:
Code: Select all
*sublime>"?:\7Utilities\Sublime Text\sublime_text.exe"
?
Re: Wildcard in PFA
Posted: 20 May 2013 14:06
by Stefan
binocular222 wrote:I tried yours but still not work?!
Are this the real file names?
sublime-menu
sublime-commands
Would this work for you on all files?
*>"?:\7Utilities\Sublime Text\sublime_text.exe"
or
*>"X:\7Utilities\Sublime Text\sublime_text.exe"
(were you should replace X:\ with your drive)
.
Re: Wildcard in PFA
Posted: 20 May 2013 18:00
by binocular222
This works for all files: *>"?:\7Utilities\Sublime Text\sublime_text.exe"
File extensions are sublime* (not file name)
Re: Wildcard in PFA
Posted: 20 May 2013 20:09
by Stefan
binocular222 wrote:File extensions are sublime* (not file name)
Ahh,
now you provide details!
You mean you have file names like:
Context.
sublime-menu
Default (Windows).
sublime-keymap
Main.
sublime-menu
Main_user.
sublime-menu
Preferences.
sublime-settings
???
That are important details.
For this pattern use
*.sublime*
like
+|"Open with Sublime Text" *.sublime*>"..\SublimeText2\sublime_text.exe";
.
Re: Wildcard in PFA
Posted: 21 May 2013 17:46
by binocular222
oh, this works, thanks