CFA - script for folders only?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
highend
Posts: 10040
Joined: 06 Feb 2011 00:33

CFA - script for folders only?

Post by highend »

From the help file:
To match all folders use a single \ (backslash).
So shouldn't:
\>::echo <curitem>;
be executed on every double click on a folder?

With the latest beta this isn't the case, the CFA (on top of all others) is ignored completely.
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

SammaySarkar
Posts: 4235
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: CFA - script for folders only?

Post by SammaySarkar »

Not just the latest beta.
PFA isn't triggered as default action on folders.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 50596
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: CFA - script for folders only?

Post by admin »

Yes. Dbl-Click and ENTER on folders will always do the browsing. Do you really want something else to happen? Hard to imagine...
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

highend
Posts: 10040
Joined: 06 Feb 2011 00:33

Re: CFA - script for folders only?

Post by highend »

Do you really want something else to happen?
It's not about that I want to do something different (forever) but the help file makes me believe that (at least) it would be possible.
One of my scripts helped you out? Please donate via Paypal or paypal_donate (at) stdmail (dot) de

admin
Site Admin
Posts: 50596
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: CFA - script for folders only?

Post by admin »

Ah I see. Needs refinement...
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

TheQwerty
Posts: 4353
Joined: 03 Aug 2007 22:30

Re: CFA - script for folders only?

Post by TheQwerty »

admin wrote:Yes. Dbl-Click and ENTER on folders will always do the browsing. Do you really want something else to happen? Hard to imagine...
There have been a few times that I have wished (at least to myself) that it was possible to create PFAs for folders.

Mostly so I can get away from using custom columns to achieve my deep folder diving.

Granted another solution would be to give us an OnBrowse CEA, but I've always thought a tweak to PFA folders might be more easily achieved. ;)

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: CFA - script for folders only?

Post by SkyFrontier »

TheQwerty wrote:
admin wrote:Yes. Dbl-Click and ENTER on folders will always do the browsing. Do you really want something else to happen? Hard to imagine...
There have been a few times that I have wished (at least to myself) that it was possible to create PFAs for folders.
+1 - with a previously posted request anywhere.
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...

admin
Site Admin
Posts: 50596
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: CFA - script for folders only?

Post by admin »

You mean this?

Code: Select all

*>::msg "It's a file.";
\>::msg "It's a folder.";
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: CFA - script for folders only?

Post by SkyFrontier »

admin wrote:You mean this?

Code: Select all

*>::msg "It's a file.";
\>::msg "It's a folder.";
Yes!!!
:ninja:
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...

autocart
Posts: 882
Joined: 26 Sep 2013 15:22

Re: CFA - script for folders only?

Post by autocart »

SkyFrontier wrote:
admin wrote: ...
\>::msg "It's a folder.";
[/code]
Yes!!!
:ninja:
Strange, double click on folders still open it it the normal way here, even with this PFA/CFA "enabled". No Msg shown.
Could it be that that's what highend meant?
highend wrote:... but the help file makes me believe that (at least) it would be possible.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: CFA - script for folders only?

Post by SkyFrontier »

autocart wrote:
SkyFrontier wrote:
admin wrote: ...
\>::msg "It's a folder.";
[/code]
Yes!!!
:ninja:
Strange, double click on folders still open it it the normal way here, even with this PFA/CFA "enabled". No Msg shown.
Could it be that that's what highend meant?
highend wrote:... but the help file makes me believe that (at least) it would be possible.
It's mainly a "yes" vote, not just a celebrative "yes"... :whistle:
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...

admin
Site Admin
Posts: 50596
Joined: 22 May 2004 16:48
Location: Cologne, Win 8.1, Win 10
Contact:

Re: CFA - script for folders only?

Post by admin »

It works. But the double-click on folders will always just browse that folder. You cannot customize the double-click on folders.
FAQ | XY News RSS | XY Twitter | Stay home! 🎸 Or wear a mask! 😷

TheQwerty
Posts: 4353
Joined: 03 Aug 2007 22:30

Re: CFA - script for folders only?

Post by TheQwerty »

admin wrote:You cannot customize the double-click on folders.
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)?

Or, as I alluded above, how about a CEA_OnBrowseScript tweak?

autocart
Posts: 882
Joined: 26 Sep 2013 15:22

Re: CFA - script for folders only?

Post by autocart »

SkyFrontier wrote:It's mainly a "yes" vote, not just a celebrative "yes"... :whistle:
Ah, ok, now I understand. :)
TheQwerty wrote:
admin wrote:You cannot customize the double-click on folders.
... obey PFA (not just POM)?
Ah, ok, now I understand. (repetition on purpose) '\>::msg "It's a folder.";' was only meant for POM. What a bummer.... :cry: ;-)
TheQwerty wrote:Or, as I alluded above, how about a CEA_OnBrowseScript tweak?
Yes, cool, this I also asked for already: http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=14678
(Great minds ... :whistle: :wink: That is if I undersood you correctly.)

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: CFA - script for folders only?

Post by SkyFrontier »

\>::msg "It's a folder.";

doesn't work here. (70.0118)
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...

Post Reply