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.

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.
It's POM only (not dbl-click).SkyFrontier wrote:\>::msg "It's a folder.";
doesn't work here. (70.0118)
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)
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)
Code: Select all
\>::msg "Hello<crlf><pfaitem>";
Code: Select all
\>::goto <pfaitem>;
Code: Select all
\>::msg "Hello<crlf><pfaitem>";
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).
\>::goto <pfaitem>;
Code: Select all
\>selectitems "<pfaitem>"; while (property("#itemcount", "<curitem>") == 1) {goto "<curitem>"; sel 1;}; goto "<curitem>";
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;