Wildcard in PFA

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Wildcard in PFA

Post 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)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Wildcard in PFA

Post 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";


 

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Wildcard in PFA

Post by binocular222 »

I tried yours but still not work?!
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Wildcard in PFA

Post by highend »

Filenames are like:
extracted-snippets.sublime-settings

so shouldn't it be:

Code: Select all

*sublime>"?:\7Utilities\Sublime Text\sublime_text.exe"
?
One of my scripts helped you out? Please donate via Paypal

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Wildcard in PFA

Post 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)



.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Wildcard in PFA

Post by binocular222 »

This works for all files: *>"?:\7Utilities\Sublime Text\sublime_text.exe"
File extensions are sublime* (not file name)
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Wildcard in PFA

Post 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";




.

binocular222
Posts: 1424
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Wildcard in PFA

Post by binocular222 »

oh, this works, thanks
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Post Reply