CFA - script for folders only?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Marco
Posts: 2347
Joined: 27 Jun 2011 15:20

Re: CFA - script for folders only?

Post by Marco »

SkyFrontier wrote:For quick backwards browsing, I'm quite satisfied with this:

Unset BACKSPACE as cks (custom keyboard shortcut); build an UDC (user defined command) with the following code; set BACKSPACE as hotkey (CKS) for it.

Code: Select all

#523; $item = "<curpath>"; if (exists("$item") == "0") { end 1; } elseif {  } while (FolderSize($item, '<d>', 0) <= '1' && FolderSize($item, '<f>', 0) <= '1' && listfolder($item, "*", 32) <= '1') { #523; $item = "<curpath>"; } focus;
Also considering use of "focus" so I can fix the often occurrence of random focus on tree (previously reported).

EDIT: using exists() for a short way to deal with special folders on "drives" list mode.
What if I wanted to use the "double click on empty space" to perform all this?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]

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

Re: CFA - script for folders only?

Post by SkyFrontier »

Marco wrote:
SkyFrontier wrote:For quick backwards browsing, I'm quite satisfied with this:

Unset BACKSPACE as cks (custom keyboard shortcut); build an UDC (user defined command) with the following code; set BACKSPACE as hotkey (CKS) for it.

Code: Select all

#523; $item = "<curpath>"; if (exists("$item") == "0") { end 1; } elseif {  } while (FolderSize($item, '<d>', 0) <= '1' && FolderSize($item, '<f>', 0) <= '1' && listfolder($item, "*", 32) <= '1') { #523; $item = "<curpath>"; } focus;
Also considering use of "focus" so I can fix the often occurrence of random focus on tree (previously reported).

EDIT: using exists() for a short way to deal with special folders on "drives" list mode.
What if I wanted to use the "double click on empty space" to perform all this?
I'll play with CEA_ListRightClickOnWhite=6 and see what happens, although I find backspacing faster than dbl-clicking...
XYdemo_skipIntermediaryFolders_backAndForth.gif
XYdemo_skipIntermediaryFolders_backAndForth.gif (110.87 KiB) Viewed 2325 times
Kool, eh...? :ugeek:
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...

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

How are you guys using the tweak PFADefaultOpenFolders

It only works with \> for me. I am unable to add any specific folder or with wildcards. Are you outsourcing the work to a script

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

Cough cough, any pointers please
nerdweed wrote:How are you guys using the tweak PFADefaultOpenFolders

It only works with \> for me. I am unable to add any specific folder or with wildcards. Are you outsourcing the work to a script

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

Re: CFA - script for folders only?

Post by SkyFrontier »

Didn't answered because I use it full fledged, not much time for testing as of now - sorry!
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...

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

Did you find a nice way to make use of it. I am still thinking how I can optimally use it.

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

PFADefaultOpenFolders has issues with opening folders that start with Dot (eg. .Folder, .Dir)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: CFA - script for folders only?

Post by admin »

Cannot confirm. What issues?

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

It doesn't navigate to such folders. If it is a known extension (known by windows or has a PFA assigned to it) like .jpg - it will open the default application. If it is an unknown extension like .folder, it won't do anything.

Similarly, if a folder is named like Folder.jpg it will again treat it as a file where Folder.Folder works fine.

They are all folder names, even when they look like file names
Folder.Folder -> Navigates fine
Folder.Jpg -> Treated as a file and the default application for jpg is opened
.Jpg -> Treated as a file and the default application for jpg is opened
.Folder -> It didn't do anything earlier (but now it navigates properly to the folder. I had flipped the tweak and that probably fixed it)

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: CFA - script for folders only?

Post by admin »

No such issues here. Please give more information. E.g. the exact PFA definitions and their sequence.

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

There isn't any PFA for folders, everything is for file so don't know if this is useful. PFADefaultOpenFolders is set to 1.

Making a wild guess, is it do with the fact I mention the extensions directly rather than as *.ext


Edit: PFA list removed
Last edited by nerdweed on 17 Jan 2016 16:23, edited 2 times in total.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: CFA - script for folders only?

Post by admin »

Aah! I thought in the opposite direction. OK, issue confirmed.

nerdweed
Posts: 648
Joined: 25 Feb 2012 07:47

Re: CFA - script for folders only?

Post by nerdweed »

Wow that was quick, I was still editing the post because those 500 formats supported by XNview was causing a huge horizontal scroll bar. I will remove the PFA list.

admin
Site Admin
Posts: 60357
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: CFA - script for folders only?

Post by admin »

In the meantime I already fixed it. :)

Post Reply