Ignore leading words doesn't work

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Ignore leading words doesn't work

Post by javicozar »

Hello,

I have a problem with XYplorer: the "ignore leading words when sorting" function doesn't work for me except on the "Name" column. it's odd and I don't understand why, but for instance, in a list of songs and artists, the "ignore leading words when sorting" function works on the "Name" column, but if I sort by the "Artist" column or the "Title" column it simply doesn't work.

Any body can help me, please?

Thanks in advance,


Javier

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

Re: Ignore leading words doesn't work

Post by highend »

It's bound to the name column...

You can always create a custom column that delivers the same functionality (pro license only!)

Paste this into the addressbar:
snippet;

and execute it with {ENTER}

Paste this into that window:

Code: Select all

Snip: CustomColumn 1
  XYplorer 19.00.0200, 28.06.2018 00:15:27
Action
  ConfigureColumn
Caption
  Title
Type
  3
Definition
      return regexreplace(property("#tag.title", <cc_item>), "^(a|an|the) ");
Format
  0
Trigger
  0
Item Type
  0
Item Filter
  {:Audio}
Confirm it with the OK button

To do this with an artist column, just replace the
line after "Caption" and the property #tag.title with #tag.artist

Add the custom colum to your columns...
One of my scripts helped you out? Please donate via Paypal

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

Re: Ignore leading words doesn't work

Post by admin »

I think it wouldn't harm if I extended this functionality to those other columns.

jupe
Posts: 2795
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Ignore leading words doesn't work

Post by jupe »

On a similar topic, what do you think about making the natural numeric sort config option apply to other columns, or would that be can of worms?
clip-15_06_18_17.00.png
clip-15_06_18_17.00.png (3.6 KiB) Viewed 1430 times

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

Re: Ignore leading words doesn't work

Post by admin »

jupe wrote:On a similar topic, what do you think about making the natural numeric sort config option apply to other columns, or would that be can of worms?

clip-15_06_18_17.00.png
Extra columns of type "Number" are already sorted numerically (independent of that option). But not the other types... yes, I think that could/should be done (tie them to that option). Let's try it...

javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Re: Ignore leading words doesn't work

Post by javicozar »

highend wrote:It's bound to the name column...

You can always create a custom column that delivers the same functionality (pro license only!)

Paste this into the addressbar:
snippet;

and execute it with {ENTER}

Paste this into that window:

Code: Select all

Snip: CustomColumn 1
  XYplorer 19.00.0200, 28.06.2018 00:15:27
Action
  ConfigureColumn
Caption
  Title
Type
  3
Definition
      return regexreplace(property("#tag.title", <cc_item>), "^(a|an|the) ");
Format
  0
Trigger
  0
Item Type
  0
Item Filter
  {:Audio}
Confirm it with the OK button

To do this with an artist column, just replace the
line after "Caption" and the property #tag.title with #tag.artist

Add the custom colum to your columns...
Thank you for your answer. I've tried your script and it works... but it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love". That's not the way I've intended to go, I'would like to see the correct name of the song, "The Power of Love", but sorted on the "P" letter rather than the "T" letter.

Anyway, I Appreciate very much your help.

Javier

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

Re: Ignore leading words doesn't work

Post by highend »

but it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love"
Sure, it can't be done in any other way atm. But it probably won't take long (one of the next betas I guess) until that option
got expanded to other colums as well...
One of my scripts helped you out? Please donate via Paypal

javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Re: Ignore leading words doesn't work

Post by javicozar »

admin wrote:I think it wouldn't harm if I extended this functionality to those other columns.
I've tested XYplorer a few months ago before I've purchased the license and... I'm not totally sure, but I think that on my tests I could sort ignoring articles on whichever column I wanted, the Title column or the Artist column, for instance. Maybe my memory is doing tricks with that matter, not sure... but I would swear that I did that kind of sorting. In fact, that was one of the main reasons to buy the license as Microsoft Explorer couldn't do that (couldn't do a lot of things XYplorer can, as a matter of fact) and this is a function I need on a daily basis in my work.

Am I correct? That was a function disabled on latest version? Or XYplorer never had this option and I'm remembering wrong?

In any case, would be too much to ask you to extend this functionality to the other columns as a part of the software?

Thank you for your time!!!

Javier

javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Re: Ignore leading words doesn't work

Post by javicozar »

highend wrote:
but it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love"
Sure, it can't be done in any other way atm. But it probably won't take long (one of the next betas I guess) until that option
got expanded to other colums as well...
Hope so! Thank you for your kind reply!!!

Javier

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

Re: Ignore leading words doesn't work

Post by admin »

You can always try out earlier versions to check your memory:
https://www.xyplorer.com/freezer.php

:)

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

Re: Ignore leading words doesn't work

Post by admin »

Done. Next beta version has it. :cup:

javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Re: Ignore leading words doesn't work

Post by javicozar »

admin wrote:Done. Next beta version has it. :cup:
Thanks!!!!

Javier

jupe
Posts: 2795
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Ignore leading words doesn't work

Post by jupe »

Since you say you use this feature a lot, you may already know about this, but in case you didn't I just thought I would mention that you can customize the list of words that are skipped if that is of any interest to you, it just takes a tweak of the ini file:

Code: Select all

SortLeadingWordsToIgnore=a;an;the
for instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak

javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Re: Ignore leading words doesn't work

Post by javicozar »

jupe wrote:Since you say you use this feature a lot, you may already know about this, but in case you didn't I just thought I would mention that you can customize the list of words that are skipped if that is of any interest to you, it just takes a tweak of the ini file:

Code: Select all

SortLeadingWordsToIgnore=a;an;the
for instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak
Yes, I did know this feature. In fact, I tweaked the .ini file in that line.
Thank you very much !!

javicozar
Posts: 12
Joined: 27 Jun 2018 23:35

Re: Ignore leading words doesn't work

Post by javicozar »

admin wrote:Done. Next beta version has it. :cup:
I've already tested last beta version and this feature works. Not very smooth, because the sorting takes a little time to do its thing, must reload and refresh several times... but eventually it works properly and after a little time it shows the items well sorted.

Thank you for adding this feature!! It helps me a lot in my daily work!!!

Post Reply