Page 1 of 1

Additional options for sorting folder or file names.

Posted: 26 Feb 2022 20:53
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.

Re: Additional options for sorting folder or file names.

Posted: 26 Feb 2022 21:39
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

Re: Additional options for sorting folder or file names.

Posted: 26 Feb 2022 22:42
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.

Re: Additional options for sorting folder or file names.

Posted: 26 Feb 2022 22:56
by highend
I doubt that. The name column shows the name of a file / folder, not some arbitrary part of it.

Re: Additional options for sorting folder or file names.

Posted: 26 Feb 2022 23:39
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.

Re: Additional options for sorting folder or file names.

Posted: 27 Feb 2022 07:59
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

Re: Additional options for sorting folder or file names.

Posted: 10 Mar 2022 16:40
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.

Re: Additional options for sorting folder or file names.

Posted: 10 Mar 2022 20:00
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.