Ignore leading words doesn't work
Ignore leading words doesn't work
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
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
Re: Ignore leading words doesn't work
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:
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...
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}
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
-
- Site Admin
- Posts: 60594
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Ignore leading words doesn't work
I think it wouldn't harm if I extended this functionality to those other columns.
FAQ | XY News RSS | XY Twitter
Re: Ignore leading words doesn't work
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?
-
- Site Admin
- Posts: 60594
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Ignore leading words doesn't work
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...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
FAQ | XY News RSS | XY Twitter
Re: Ignore leading words doesn't work
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.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:Confirm it with the OK buttonCode: 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}
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...
Anyway, I Appreciate very much your help.
Javier
Re: Ignore leading words doesn't work
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 optionbut it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love"
got expanded to other colums as well...
One of my scripts helped you out? Please donate via Paypal
Re: Ignore leading words doesn't work
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.admin wrote:I think it wouldn't harm if I extended this functionality to those other columns.
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
Re: Ignore leading words doesn't work
Hope so! Thank you for your kind reply!!!highend wrote: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 optionbut it deletes the articles, so for instance, a song called "The Power of Love" it shows as "Power of Love"
got expanded to other colums as well...
Javier
-
- Site Admin
- Posts: 60594
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: Ignore leading words doesn't work
Done. Next beta version has it.
FAQ | XY News RSS | XY Twitter
Re: Ignore leading words doesn't work
Thanks!!!!admin wrote:Done. Next beta version has it.
Javier
Re: Ignore leading words doesn't work
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:
for instructions on how to tweak:
https://www.xyplorer.com/faq-topic.php?id=tweak
Code: Select all
SortLeadingWordsToIgnore=a;an;the
https://www.xyplorer.com/faq-topic.php?id=tweak
Re: Ignore leading words doesn't work
Yes, I did know this feature. In fact, I tweaked the .ini file in that line.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:
for instructions on how to tweak:Code: Select all
SortLeadingWordsToIgnore=a;an;the
https://www.xyplorer.com/faq-topic.php?id=tweak
Thank you very much !!
Re: Ignore leading words doesn't work
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.admin wrote:Done. Next beta version has it.
Thank you for adding this feature!! It helps me a lot in my daily work!!!