Page 1 of 4

CFA - script for folders only?

Posted: 28 Jul 2015 17:46
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.

Re: CFA - script for folders only?

Posted: 28 Jul 2015 18:14
by SammaySarkar
Not just the latest beta.
PFA isn't triggered as default action on folders.

Re: CFA - script for folders only?

Posted: 30 Jul 2015 16:21
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...

Re: CFA - script for folders only?

Posted: 30 Jul 2015 17:50
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.

Re: CFA - script for folders only?

Posted: 30 Jul 2015 18:07
by admin
Ah I see. Needs refinement...

Re: CFA - script for folders only?

Posted: 09 Sep 2015 16:13
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. ;)

Re: CFA - script for folders only?

Posted: 10 Sep 2015 04:35
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.

Re: CFA - script for folders only?

Posted: 11 Sep 2015 17:46
by admin
You mean this?

Code: Select all

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

Re: CFA - script for folders only?

Posted: 13 Sep 2015 13:52
by SkyFrontier
admin wrote:You mean this?

Code: Select all

*>::msg "It's a file.";
\>::msg "It's a folder.";
Yes!!!
:ninja:

Re: CFA - script for folders only?

Posted: 13 Sep 2015 20:07
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.

Re: CFA - script for folders only?

Posted: 14 Sep 2015 10:36
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:

Re: CFA - script for folders only?

Posted: 14 Sep 2015 11:29
by admin
It works. But the double-click on folders will always just browse that folder. You cannot customize the double-click on folders.

Re: CFA - script for folders only?

Posted: 14 Sep 2015 14:50
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?

Re: CFA - script for folders only?

Posted: 14 Sep 2015 15:01
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.)

Re: CFA - script for folders only?

Posted: 14 Sep 2015 18:03
by SkyFrontier
\>::msg "It's a folder.";

doesn't work here. (70.0118)