Ignore "The or A's" at start of names

Support for Windows users
Post Reply
GameOverAus
Posts: 11
Joined: 09 Jan 2022, 22:47

Ignore "The or A's" at start of names

Post by GameOverAus »

Is there a way to put (A or The's) at the end of names by default. So many movie and shows start with A or The which is a nightmare for sorting.
I would manually name them "Name, The instead of The Name". for instance

Is there a way to do this with the GUI when naming files.? Instead of having to do it manually?
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Ignore "The or A's" at start of names

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
GameOverAus
Posts: 11
Joined: 09 Jan 2022, 22:47

Re: [SNIPPET] Sort Name

Post by GameOverAus »

You are awesome, that worked to a tee :)

Code: Select all

{ n.sortName('$2, $1') } 
I then cvame to the issue i wanted to change the :'s FIlebot puts by default which are invalid and only change The to the end. The following works

Code: Select all

{ n.colon(' - ').replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/) } ({y}){' CD'+pi}{subt}
Post Reply