OK. You must be crazy.TheQwerty wrote:Could we have a daredevil tweak that does allow us to customize double-click on folders by forcing them to obey PFA (not just POM)?admin wrote:You cannot customize the double-click on folders.
CFA - script for folders only?
-
- Site Admin
- Posts: 60538
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: CFA - script for folders only?
FAQ | XY News RSS | XY Twitter
-
- Site Admin
- Posts: 60538
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: CFA - script for folders only?
It's POM only (not dbl-click).SkyFrontier wrote:\>::msg "It's a folder.";
doesn't work here. (70.0118)
FAQ | XY News RSS | XY Twitter
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: CFA - script for folders only?
I know it.admin wrote:It's POM only (not dbl-click).SkyFrontier wrote:\>::msg "It's a folder.";
doesn't work here. (70.0118)
Any other hint?
It's tested on an upgraded installment with minimum customization for test purposes.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Re: CFA - script for folders only?
I shows up in the POM (70.0118) if you add it to the PFA definitions, have it activated there and have only folders selected (or a folder selected AND focused if the selection includes files also). EDIT: at least here.SkyFrontier wrote:\>::msg "It's a folder.";
doesn't work here. (70.0118)
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: CFA - script for folders only?
All ok here re: conditions.
Does work when called via ctrl+alt+enter but not when ENTER pressed - presumed exception being dbl-clicker only.
"*" for files work as expected, as usual, as ever.
Does work when called via ctrl+alt+enter but not when ENTER pressed - presumed exception being dbl-clicker only.
"*" for files work as expected, as usual, as ever.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Re: CFA - script for folders only?
Nice!
But...
1)
In fresh v15.70.0119 with tweak enabled and this PFA:
If the folder ends with '.com' instead of triggering the PFA I get an error dialog:
------------------
Not Found: Application
------------------
Could not find:
C:\Temp\New Folder\xyplorer.com
[ Close ]
------------------
2) Is this the closest match to the non-tweak behavior?
But...
1)
In fresh v15.70.0119 with tweak enabled and this PFA:
Code: Select all
\>::msg "Hello<crlf><pfaitem>";
------------------
Not Found: Application
------------------
Could not find:
C:\Temp\New Folder\xyplorer.com
[ Close ]
------------------
2) Is this the closest match to the non-tweak behavior?
Code: Select all
\>::goto <pfaitem>;
Re: CFA - script for folders only?
Another issue...
With tweak disabled and same PFA entry (thus now a POM entry):
Select multiple folders.
Press Enter.
POM entry is executed for the current item.
Without the POM entry then XY opens each folder in an instance of WE. (As reported elsewhere recently.)
EDIT: Oddly in this case if the current item ends with '.com' it does run the PFA entry unlike the other issue.
With tweak disabled and same PFA entry (thus now a POM entry):
Code: Select all
\>::msg "Hello<crlf><pfaitem>";
Press Enter.
POM entry is executed for the current item.
Without the POM entry then XY opens each folder in an instance of WE. (As reported elsewhere recently.)
EDIT: Oddly in this case if the current item ends with '.com' it does run the PFA entry unlike the other issue.
Re: CFA - script for folders only?
Woah,v15.70.0119 - 2015-09-14 20:16
+ Portable File Associations: Added tweak PFADefaultOpenFolders to allow
customizing the default action on dbl-click/enter on folders.
PFADefaultOpenFolders=1
Handle with care. You cannot use folders in the list for browsing anymore
when you set this tweak.
They are either opened by a PFA to folders (\ = match any folder) like
this:
\>::msg "It's a folder: <pfaitem>";
Or they are opened by the OS-default (e.g. Windows Explorer, or another
instance of XYplorer).
Don, you are quietly (while you yet let everybody believe that it won't happen) fulfilling dreams (regarding other wishes too).
We all stopped hoping and then all of a sudden.. bamm. Wow, cool.
[AHK] redirecting Windows Explorer to XY, [XYS] Mini Tree with open tabs (cur loc expanded, tab folders highlighted), [AHK] customInlineRenameKeys, [AHK] clipboardHelper_and_XYEscToList
-
- Site Admin
- Posts: 60538
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: CFA - script for folders only?
My personal dream is to publish 15.80... so, if you would be so kind to stop inspiring me with your dreams...
FAQ | XY News RSS | XY Twitter
Re: CFA - script for folders only?
Would it be nice to have the tweak this way - if the tweak is set by default double click would still navigate within XY. Set PFA for locations where you actually need something else done. This would remove the need to have a catch all item
\>::goto <pfaitem>;
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: CFA - script for folders only?
Is this the safest way to go?
*>::msg "It's a file."; run """<pfaitem>""";
0121 tweaked made my day for folders.
*>::msg "It's a file."; run """<pfaitem>""";
0121 tweaked made my day for folders.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Re: CFA - script for folders only?
Crude concept of Deep Browsing™
1. I use selectitems because I browse folders by single clicking the icon, which doesn't select the item which is needed afterwards by <curitem>;
2. I don't rely on folderreport() because you don't know in advance how many items a folder contains, so #itemcount may be faster, also there's no need to parse the results;
3. you won't dive to the deepest level directly, see point 2. Might be an advantage 'cause you see what's going on (albeit very very fast).
Code: Select all
\>selectitems "<pfaitem>"; while (property("#itemcount", "<curitem>") == 1) {goto "<curitem>"; sel 1;}; goto "<curitem>";
2. I don't rely on folderreport() because you don't know in advance how many items a folder contains, so #itemcount may be faster, also there's no need to parse the results;
3. you won't dive to the deepest level directly, see point 2. Might be an advantage 'cause you see what's going on (albeit very very fast).
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Re: CFA - script for folders only?
I'm currently using:Marco wrote:Crude concept of Deep Browsing™1. I use selectitems because I browse folders by single clicking the icon, which doesn't select the item which is needed afterwards by <curitem>;Code: Select all
\>selectitems "<pfaitem>"; while (property("#itemcount", "<curitem>") == 1) {goto "<curitem>"; sel 1;}; goto "<curitem>";
2. I don't rely on folderreport() because you don't know in advance how many items a folder contains, so #itemcount may be faster, also there's no need to parse the results;
3. you won't dive to the deepest level directly, see point 2. Might be an advantage 'cause you see what's going on (albeit very very fast).
Code: Select all
"Browse Folder" \>::$item = "<pfaitem>"; while (FolderSize($item, '<d>+<f>', 0) == '1+0') { $item = ListFolder($item, '*', 2); } goto $item;
Code: Select all
"Browse Folder" \>::$item = "<pfaitem>"; while (FolderSize($item, '<d>+<f>', 0) == '1+0') { $item = FolderReport('dirs', 'return', $item); } goto $item;
This is mostly because I want to be able to go back once to get out of the jumped folders.