new sorting option: ignore articles
new sorting option: ignore articles
A new sorting option to ignore articles (the, a, an) would be very useful when managing media files like music and movies.
A quick way to turn this option on and off will be desirable so a new tool bar button may be required.
Thanks for giving this consideration.
A quick way to turn this option on and off will be desirable so a new tool bar button may be required.
Thanks for giving this consideration.
-
- Posts: 3358
- Joined: 07 May 2007 18:14
- Location: NJ/NY
Re: new sorting option: ignore articles
Hmmm, seems too much like a media manager kind of wish. Not sure how many will really use it. I for one, won't.ladner wrote:A new sorting option to ignore articles (the, a, an) would be very useful when managing media files like music and movies.
A quick way to turn this option on and off will be desirable so a new tool bar button may be required.
Thanks for giving this consideration.
Re: new sorting option: ignore articles
I have a great media manager however there are times when I need to work on media within the file system and ignoring articles would be helpful. Just a small suggestion to make the product better. I'm told that Directory Opus has this feature.
-
- Site Admin
- Posts: 60612
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: new sorting option: ignore articles
This will probably remain one of the differences to DO.
FAQ | XY News RSS | XY Twitter
Re: new sorting option: ignore articles
bump
I continue to think this would be a great addition to XYP.
I am a long time heavy user of XYP and this is the only important feature I feel is missing.
I would use it on a daily basis when navigating movies and music files.
Please reconsider.
I continue to think this would be a great addition to XYP.
I am a long time heavy user of XYP and this is the only important feature I feel is missing.
I would use it on a daily basis when navigating movies and music files.
Please reconsider.
-
- Site Admin
- Posts: 60612
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: new sorting option: ignore articles
Seems like you are alone with this wish...
FAQ | XY News RSS | XY Twitter
Re: new sorting option: ignore articles
He's probably not alone, it would be nice to have, but I personally would not be using it all that much.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here...
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here...
Re: new sorting option: ignore articles
bump
The new custom columns feature in 13.90 makes it easier to manage audio and image media files. I think this is a good direction for XYplorer and I encourage you to keep going.
1) Please add the "ignore articles" feature suggested by me at the start of this thread. This would make it much more convenient to use XYplorer for managing audio and video files.
2) Please add some custom columns for video file types such as video duration, video codec, video resolution, video bit rate, audio codec, and audio bit rate.
The new custom columns feature in 13.90 makes it easier to manage audio and image media files. I think this is a good direction for XYplorer and I encourage you to keep going.
1) Please add the "ignore articles" feature suggested by me at the start of this thread. This would make it much more convenient to use XYplorer for managing audio and video files.
2) Please add some custom columns for video file types such as video duration, video codec, video resolution, video bit rate, audio codec, and audio bit rate.
-
- Site Admin
- Posts: 60612
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: new sorting option: ignore articles
Easy for English, but we have 17 languages here...
FAQ | XY News RSS | XY Twitter
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: new sorting option: ignore articles
@ladner:
1. is scripted custom column an acceptable solution?
2. if so, please provide a set of such words to ignore and I'll see what I can do.
1. is scripted custom column an acceptable solution?
2. if so, please provide a set of such words to ignore and I'll see what I can do.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
-
- Site Admin
- Posts: 60612
- Joined: 22 May 2004 16:48
- Location: Win8.1 @100%, Win10 @100%
- Contact:
Re: new sorting option: ignore articles
Bingo, good idea!SkyFrontier wrote:1. is scripted custom column an acceptable solution?
FAQ | XY News RSS | XY Twitter
Re: new sorting option: ignore articles
You nailed it, I was thinking about the same solution!SkyFrontier wrote:1. is scripted custom column an acceptable solution?
Tag Backup - SimpleUpdater - XYplorer Messenger - The Unofficial XYplorer Archive - Everything in XYplorer
Don sees all [cit. from viewtopic.php?p=124094#p124094]
Don sees all [cit. from viewtopic.php?p=124094#p124094]
-
- Posts: 2341
- Joined: 04 Jan 2010 14:27
- Location: Pasárgada (eu vou!)
Re: new sorting option: ignore articles
Well.
This can be achieved by two different approaches, each with flaws and strengths:
-potentially slower;
-can be customised at the "$dic" part (first line).
-potentially faster;
-dumber: it just removes the first token from " ", returning all the rest.
Tech note: couldn't make the $dic work along with foreach loops - the list seems to return the first valid result and stuck there. As stepping doesn't work for debugging CCs, it's hard to tell for sure.
This can be achieved by two different approaches, each with flaws and strengths:
Code: Select all
$dic = "the|a";
$tst = gettoken(getpathcomponent(<cc_item>, base), 1, " ");
while($tk != "") {
$op++;
$tk = gettoken($dic, $op, |);
if($tst LikeI $tk) { return gettoken(getpathcomponent(<cc_item>, base), 2, " ", , 2); end 1; }
else { }
}
return getpathcomponent(<cc_item>, base);
-can be customised at the "$dic" part (first line).
Code: Select all
$files = gettoken(getpathcomponent(<cc_item>, base), 2, " ", , 2);
return "$files";
-dumber: it just removes the first token from " ", returning all the rest.
Tech note: couldn't make the $dic work along with foreach loops - the list seems to return the first valid result and stuck there. As stepping doesn't work for debugging CCs, it's hard to tell for sure.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...
Re: new sorting option: ignore articles
This is one place that I'd actually suggest RegexReplace...
return ends script execution intentionally.
Code: Select all
return RegexReplace(<cc_name>, '^(the|an?)\b\s+');
Re: new sorting option: ignore articles
This works really well. Thanks kindly!TheQwerty wrote:This is one place that I'd actually suggest RegexReplace...return ends script execution intentionally.Code: Select all
return RegexReplace(<cc_name>, '^(the|an?)\b\s+');
Gotta learn Regex some day
"a" and "an" are ignored as expected but "at" is not ignored. This is what I want but I am curious how it works. Can you please translate the Regex dictionary item "an?" into English for me?