E.g. listpane() in the scope of a scripted custom column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

E.g. listpane() in the scope of a scripted custom column

Post by highend »

E.g.: return listpane();
shows that each column where the script is executed does only see the visible items up to its entry.

The same is true for e.g. get("countitems");

I guess this is by design?

I'd like to do the following: Use a scripted cc and...

Code: Select all

- Test if it's the first column
If yes fill a perm var with the content of a cli tool that is able to generate metadata for a full list of files (in this case: for all [C]listpane()[/C] files/folders...)
- Test if it's a column > first column & < last column
If yes, wait until the perm var is non empty and return its belonging data line from it afterwards
- Test if it's the last column
If yes, return its belonging data line and reset the perm var to empty
This would yield a huge performance boost because the data would only be generated once and the cli tools don't need to be called <x> times for all items...
One of my scripts helped you out? Please donate via Paypal

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

Re: E.g. listpane() in the scope of a scripted custom column

Post by admin »

Yep, by design.

I'm aware that Custom Column scripts are quite inefficient and that some form of initialization code section would help a lot. Needs more thinking...

highend
Posts: 14571
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: E.g. listpane() in the scope of a scripted custom column

Post by highend »

I hope you'll find the time for it at some point :whistle:
Apart from tagging (not everyone wants to do this / knows how) there isn't any other working way to speed up the external usage of cli tools in cc columns...
One of my scripts helped you out? Please donate via Paypal

Post Reply