Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Features wanted...
Post Reply
daniel_m
Posts: 223
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Post by daniel_m »

I love that we can use folderreport to quickly get customised file/folder reports. Unfortunately, the folderreport types with relative paths don't support format templates.

E.g. I'd like to copy files and their size within a folder and it's subfolder to the clipboard:
folderreport("filesrel:{fullname}<tab>{size br}","r",,"r");

This works perfectly fine with "files", but not with "filesrel" (as stated in the XYplorer help file).
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

daniel_m
Posts: 223
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

Re: Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Post by daniel_m »

Okay, while I still find it useful to add formatting to relative folderreport types, because it is very intuitive, I found a way to get what I want:
copytext replace(folderreport("files:{fullname}<tab>{size br}","r",,"r"),getpathcomponent(, "full")."\","");
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

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

Re: Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Post by admin »

filesrel works well. Not sure what you want. Give an example.

daniel_m
Posts: 223
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

Re: Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Post by daniel_m »

It doesn't work on my end.

When I execute
text folderreport("files:{fullname}<tab>{size br}","r",,"r");
in a certain folder, I get
D:\Zigbee\zigbee2mqtt\data\extension\automations.js 48324
Notice the file size sepparated by a tab.


Whith
text folderreport("filesrel:{fullname}<tab>{size br}","r",,"r");
I get automations.js
The formatting (tab and size) is missing.


According to the help file, this is not unexpected behaviour. Only Types "tree", "treeitems", "dirs", "files", and "items" support a format template.
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

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

Re: Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Post by admin »

I see. It will work in the next beta.

daniel_m
Posts: 223
Joined: 11 Apr 2010 11:47
Location: Windows 10 Pro 22H2, scaling 100%

Re: Support format template for relative folderreport types filesrel/dirsrel/itemsrel

Post by daniel_m »

Awesome, thanks a lot.
Whish you a nice end of the year!
XYplorer x64 (often the latest beta), Windows 10 Pro 22H2, 3840x2160 scaling 100%

Post Reply