Additional options for sorting folder or file names.

Features wanted...
Post Reply
MindReader
Posts: 41
Joined: 06 Feb 2022 14:39
Location: W10, @100% - W11, @125

Additional options for sorting folder or file names.

Post by MindReader »

I will try to explain my wish in short sentences:
1) I would like to have additional options for sorting by clicking the Name title bar.
2) Special symbols can be specified for this.
3) These symbols can be used in certain parts of the folder or file name.
4) The mouse wheel is rotated on the name title bar.
5) The symbol we want is seen as a pop-up.
6) In this case, we click on the title of the name column with the mouse wheel.
7) XYplorer sorts according to the letters/numbers following the selected symbol.

But, so that this innovation can come true, I hope you will consider my wish reasonable. :)

I think the screenshot I sent in the attachment will clarify where special symbols can be used.

Thank you for your interest.
To see the attached files, you need to log into the forum.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

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

Re: Additional options for sorting folder or file names.

Post by highend »

I don't think something like this will get implemented

It could be done via a custom column with a script (that would need to be displayed in addition to the name column) and a button to select the separator

An example:

The user defined button uses this script:

Code: Select all

perm $P_SORT_SEPARATOR;
    $seps             = "<none>|¢|¤|¥";
    $P_SORT_SEPARATOR = popupmenu($seps);
    refreshlist;
And the custom column uses this one:

Code: Select all

    if ($P_SORT_SEPARATOR) {
        return substr(<cc_name>, strpos(<cc_name>, $P_SORT_SEPARATOR) + 1);
    }
See the demo gif...
Animation.gif
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

MindReader
Posts: 41
Joined: 06 Feb 2022 14:39
Location: W10, @100% - W11, @125

Re: Additional options for sorting folder or file names.

Post by MindReader »

highend wrote: 26 Feb 2022 21:39 I don't think something like this will get implemented

It could be done via a custom column with a script (that would need to be displayed in addition to the name column) and a button to select the separator

An example:

The user defined button uses this script:

Code: Select all

perm $P_SORT_SEPARATOR;
    $seps             = "<none>|¢|¤|¥";
    $P_SORT_SEPARATOR = popupmenu($seps);
    refreshlist;
And the custom column uses this one:

Code: Select all

if ($P_SORT_SEPARATOR) {
        return substr(<cc_name>, strpos(<cc_name>, $P_SORT_SEPARATOR) + 1);
    }
See the demo gif...
Animation.gif
@Highend,
Thank you so much.
For creating a solution in such a short time.

By the way; I know your job is tough.
Not in terms of information, but because it's about people. :)
Working with machines is easy.
Working with people is much more difficult.
I also appreciate you for that.

Surely you know Donald Lessau much better than I do.
But as my nickname suggests, I'm a mind reader. :titter:

I know Donald Lessau is very busy right now.
But, I think he will like this feature.
I think he will most likely mark it on his list.

Do not get me wrong;
I will use your solution. :cup:
Thank you again.
Last edited by highend on 27 Feb 2022 07:58, edited 1 time in total.
Reason: Clarified scripts
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

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

Re: Additional options for sorting folder or file names.

Post by highend »

I doubt that. The name column shows the name of a file / folder, not some arbitrary part of it.
One of my scripts helped you out? Please donate via Paypal

MindReader
Posts: 41
Joined: 06 Feb 2022 14:39
Location: W10, @100% - W11, @125

Re: Additional options for sorting folder or file names.

Post by MindReader »

highend wrote: 26 Feb 2022 22:56 I doubt that. The name column shows the name of a file / folder, not some arbitrary part of it.
Yes, I have no technical knowledge about it.
But there is a saying:
(Of course it's an exaggeration, but this phrase has something to say.)

"Difficult things are done right away, impossible things just take time." :)

As I said, I have no technical knowledge, but I dream.
"Processes are done in the background and I see the name column changed." :idea:

Anyway, now I have a solution. :)
Thanks.


I don't know if my dream will come true.
Time is needed.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

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

Re: Additional options for sorting folder or file names.

Post by highend »

I've modified the scripts a little bit, should probably shave off a few milliseconds when used in a list with many entries
One of my scripts helped you out? Please donate via Paypal

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

Re: Additional options for sorting folder or file names.

Post by admin »

@MindReader

1) You are right: I like the idea.

2) You are wrong: I will not implement it. Almost nobody would use it.

MindReader
Posts: 41
Joined: 06 Feb 2022 14:39
Location: W10, @100% - W11, @125

Re: Additional options for sorting folder or file names.

Post by MindReader »

admin wrote: 10 Mar 2022 16:40 @MindReader

1) You are right: I like the idea.

2) You are wrong: I will not implement it. Almost nobody would use it.

@Donald,
The example I gave was a bit of an exaggeration.
You are right, so there are probably not many people who think like me.

Let's think about it like this;
In the Name Column, we use the "Truncate Filenames In The Middle" setting.
Why?
Because there is information we want to see in the last part of name.
These can be year, place, number etc.
I think that those who want to see these may want to sort them according to them.

Anyway; I respect your decision. :)


@Highend,
Do not misunderstand me;
I am using your solution.
I use "Google Translate" for my posts. If there are any unkind expressions in my posts, it is because my English is not good.
Please make sure my intentions are good.

Post Reply