Add Filetype Group To Groups

In the group lists could you add 'File Type Groups' to the group menu please.
After 'Extension':

Group List

The files would be grouped by their file type group.
For example: .png .jpg .svg etc. would all be in the 'Images' group.

Fwiw, I use this column to display that data:
Filetype Column.opusscriptinstall (1.5 KB)

Then you can use it for grouping, etc.

1 Like

Does this script make the column exist only when there is a group enabled?
Cause I rarely use the group column; most sorting can be done with the other ones.
And since you can't click a group to select all in that group (the whole point of grouping) it's borderline useless. So I don't need a group column hanging around that I rarely use. Except a file type group would help make it better.

You can easily select all in a group by clicking the group divider once.

I've been trying to figure out how you got that view cause mine is just a column on the left:

I noticed setting a group kills the content format:
Grouped 3
But the columns are still as if it's the format "Images". The format doesn't return to normal until I disable the group column, leave and come back to the folder.

But if I keep the group on, leave and come back, it gives me this group view you're talking about.

Ok now I'm even more confused.

I know what's up. I actually have to turn off the option that I had on before.
The "Add Group Column..."
Add Group Column

Then it won't create the column at all, just jump to this group view.
That's good, now I can actually click on groups. Would be nice to have a file type group group though. You know, for the algorithm. :sparkles:

I solved one of my own puzzles. *Pats self on the back. I should give myself a cash offering :dollar: I'm preachin good tonight!

You were given that in the first reply.

You know, for the algorithm. :sparkles:

???

Oh ya, forgot. Skipped over that. It works good.

For the algorithm is a way of saying, "First world problems". It's nice to have but not needed; no one will die without it. Like aesthetics.

Thanks that's perfect. Works with groups too. I'm running out of happy things to post with all these people helping me. Here's a robo arm. :mechanical_arm:

Yes, it is also usable for grouping.
But you also can have control over the order of the grouping.
Here's an Evaluator Group that groups filetype groups.

I know I found this somewhere on the forum, but I can't remember or find where it was posted.
Or perhaps it was something that was started on the forum and I modified it to my liking.
In any case, it is easy to change the code to group how you want.

<?xml version="1.0"?>
<evalgroupscheme desc="Filetype Group" reverse="no" scheme_name="filetype_group" sort="no">
	<eval>If (is_dir) return [name=&quot;Folder&quot;; order=1;];
if (Match(name, &quot;grp:Archives&quot;, &quot;f&quot;)) return [name=&quot;Archives&quot;; order=2;];
if (Match(name, &quot;grp:Documents&quot;, &quot;f&quot;)) return [name=&quot;Documents&quot;; order=3;];
if (Match(name, &quot;grp:Images&quot;, &quot;f&quot;)) return [name=&quot;Images&quot;; order=4;];
if (Match(name, &quot;grp:Movies&quot;, &quot;f&quot;)) return [name=&quot;Movies&quot;; order=5;];
if (Match(name, &quot;grp:Music&quot;, &quot;f&quot;)) return [name=&quot;Music&quot;; order=6;];
if (Match(name, &quot;grp:Programs&quot;, &quot;f&quot;)) return [name=&quot;Programs&quot;; order=7;];
else (return [name=&quot;Unknown&quot;; order=8;]);
</eval>
	<groups enable="no">
		<group name="Folder" />
		<group name="Archives" />
		<group name="Documents" />
		<group name="Images" />
		<group name="Movies" />
		<group name="Music" />
		<group name="Programs" />
		<group name="Unknown" />
	</groups>
	<columns>
		<col default="no" id="0" />
	</columns>
</evalgroupscheme>

1 Like