Show in groups

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Stef123

Re: Show in groups

Post by Stef123 »

Like I said above, for the task at hand I am fine with "Alternate Groups"
Cannot tell you what else I might need it for. "Show in groups" has been my default setting (within Details view) for such a long time (Windows and 3rd party) - I have no idea what other comforts I'll be missing without it. Have to wait until other problems come up, then ask again for work-arounds.

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

Re: Show in groups

Post by admin »

I assume you know the "Type Stats and Filter" button on the toolbar?

Stef123

Re: Show in groups

Post by Stef123 »

Bingo. I bet you're great at playing poker? Raising the stakes and bluffing and introducing red herrings only to sweep the table in the end. :mrgreen:

This doesn't make my wish for "Show in groups" obsolete (I challenge everyone to spot files faster with any other view) but it definitely solves the task I have been asking for - perfect.

If only the font were larger. Tahoma 8 on a Full HD Monitor :veryconfused:
Any reason for locking it down and not making it custumizable?

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

Re: Show in groups

Post by admin »

The menu font can be customized system-wide in Windows display settings.

And a tip for "Type Stats and Filter": Hold CTRL when you select an item from that menu to select the files (instead of filtering them).

Stef123

Re: Show in groups

Post by Stef123 »

admin wrote:The menu font can be customized system-wide in Windows display settings.
I was afraid you'd say this. Was hoping XY's dropdowns would be configurable independent from general Windows menus which I hate to blow up for all applications. What's this setting for: Configuration > Tools > Dialogs. Offers me to change the font but not the size :eh:

Thanks for the Ctrl tip - good to know.
Unfortunately something else is bugging me now: After stepping through Type Stats it replaced all my Visual Filters -they've all moved out of reach in the Visual Filter Button dropdown. How do I make them sticky? I tried varations of -----> mru (for the address bar) but no luck so far.

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

Re: Show in groups

Post by admin »

Stef123 wrote:
admin wrote:The menu font can be customized system-wide in Windows display settings.
I was afraid you'd say this. Was hoping XY's dropdowns would be configurable independent from general Windows menus which I hate to blow up for all applications. What's this setting for: Configuration > Tools > Dialogs. Offers me to change the font but not the size :eh:

Thanks for the Ctrl tip - good to know.
Unfortunately something else is bugging me now: After stepping through Type Stats it replaced all my Visual Filters -they've all moved out of reach in the Visual Filter Button dropdown. How do I make them sticky? I tried varations of -----> mru (for the address bar) but no luck so far.
1. Cannot offer size since layouts would break.

2. Oh yes, thanks for the hint. I will stop this.

Stef123

Re: Show in groups

Post by Stef123 »

admin wrote:2. Oh yes, thanks for the hint. I will stop this.
Thank you.

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Show in groups

Post by autocart »

Maybe something like this (see picture) is easier to implement (I don't know, but would be nice for my eyes and brain):
And in combination with custom groups (http://www.xyplorer.com/xyfc/viewtopic.php?f=5&t=10366) it would be even more awesome - just in case.
(I just found out about the dupes column in the find-dupes-search-results (http://www.xyplorer.com/images/whatsnew/DupesByName.png). This seems to me to be similar.)
Attachments
wish-groupinginXYp.png
wish-groupinginXYp.png (88.36 KiB) Viewed 2981 times

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Show in groups

Post by autocart »

Hi all,

With the new Custom Columns I finally found a very close solution.
It only "works" as grouping for extension (can not be changed without changing the code), therefore it is rather a proof of concept.

The only other little limitation is in formatting: I did not find a way of how to ensure that the grouping-string (in this example the extension) will definitely be shown at the first group-item. It might be shown anywhere in the group.

An example of how it looks like is in the 1st picture (pay attention to the far left column).
BTW, folders will have a "DIR" in the grouping column. If you don't like this, then just exchange "DIR" in the code with " " (a quoted space).

How to do it:
Show a custom column and configure it. In the configure window (see 2nd attached picture) set:
In "Caption" whatever you like,
"Type" as "Script",
"Format" as "Text",
"Item type" as "Files and Folders",
"Item filter" empty
and in the "Script" box paste the following code:

Code: Select all

perm $grouping_extensions_used;
if (get("CountItems") == 1) {
  $grouping_extensions_used = "";
}

$current_ext = getpathcomponent(<cc_item>,"ext");
if (<cc_isfolder>) {
  $current_ext = "DIR";
}

if (strpos($grouping_extensions_used, $current_ext . "|") >= 0) {
  return "";
}
else {
  $grouping_extensions_used = $grouping_extensions_used . $current_ext . "|";
  return $current_ext;
}
.
Attachments
BTW, folders will have a &quot;DIR&quot; in the grouping column.
BTW, folders will have a "DIR" in the grouping column.
Group with Custom Columns example.jpg (348.64 KiB) Viewed 2939 times
Group with Custom Columns by extension.jpg
Group with Custom Columns by extension.jpg (71.93 KiB) Viewed 2939 times
Last edited by autocart on 20 Mar 2014 14:05, edited 4 times in total.

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

Re: Show in groups

Post by admin »

Nice!

Note that there is also <cc_isfolder>, so you don't need to check for folder yourself.

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Show in groups

Post by autocart »

Hi Don,

Thx for the acknowledgement and the hint. I aleady changed the code above.

BTW, with the extentions of custom columns I think XY is really the best file explorer in the world now. But please don't stop improving even further, XY needs to stay on top ;)

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

Re: Show in groups

Post by admin »

No problem, I'm just starting... :mrgreen:

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Show in groups

Post by autocart »

I was trying to add dynamic behaviour to the custom column on change of the sorting column.
I had to realize that I don't know how to make the custom column update on change of sorting.

Is there a way how it can be done?

autocart
Posts: 1356
Joined: 26 Sep 2013 15:22

Re: Show in groups

Post by autocart »

updated the code:
doc and docx could have been treated as the same extension. Fixed.

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

Re: Show in groups

Post by admin »

autocart wrote:I was trying to add dynamic behaviour to the custom column on change of the sorting column.
I had to realize that I don't know how to make the custom column update on change of sorting.

Is there a way how it can be done?
Not yet. Might add something later.

Post Reply