Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: change default new playlist names? (Read 2105 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

change default new playlist names?

Hi,
I am just wondering if anyone know a way to change the naming scheme for new playlists that you create.

The default is:
  • New Playlist
  • New Playlist (2)
  • New Playlist (3)
  • New Playlist (4)
and so on...

If possible I just want them to be named:
  • 1
  • 2
  • 3
  • 4
and so on...

I always use a keyboard command shortcut to create new playlists.

Best regards
illya

Re: change default new playlist names?

Reply #1
I made a component foo_new_playlist that introduces a new command that uses a custom pattern exposed in advanced configuration to name new playlists.

The pattern in Preferences: Advanced -> Tools -> "New playlist pattern" uses two new title formatting fields to form the titles of new playlists. The counters starts at one and increases until a free name is found.

  • %always_counter%: counts 1, 2, 3, ...
  • %maybe_counter%: counts nothing, 2, 3, 4; suitable for use in [] to not show anything for the preferred title

Hopefully this will do what you want given a format of %always_counter%.
Stay sane, exile.

Re: change default new playlist names?

Reply #2
Hi Zao.
Again... :(

New Named Playlist 1.0 (foo_new_playlist-1.0.fb2k-component)
> Could not load component "foo_new_playlist-1.0.fb2k-component": Unsupported format or corrupted file

Can not install. Can not unzip.

Thanks.
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY ULT WEAR (made a Upgrade/Balanced Cable by myself)

Re: change default new playlist names?

Reply #3
I thought I had solved my network problems... bah.
Re-uploaded over VPN.
Stay sane, exile.

Re: change default new playlist names?

Reply #4
Thank you for your support in your busy time.  ;)
SHURE SRH1840, SENNHEISER HD660S2, SENNHEISER HD 490 PRO, DT 1990 PRO, HiFiMAN Edition XS, Bowers & Wilkins P7, FiiO FT5, 水月雨 (MOONDROP) 空鳴 - VOID, Nakamichi Elite FIVE ANC, SONY ULT WEAR (made a Upgrade/Balanced Cable by myself)

Re: change default new playlist names?

Reply #5
I made a component
Thank you Zao,

I really appreciate that you took your time to actually create a plugin.

Tested it out, and it works like a charm :)

Now I just need to unlearn seven years of always hitting ctrl + m directly after ctrl +n :D

Re: change default new playlist names?

Reply #6
Edit: Problem solved using $num(%always_counter%,2)

Old post:
Hi again,
just wondering if it would be possible to make it use double or triple digits:

01,02,03,04,05,06,07,08,09,10,11,12...
instead of
1,2,3,4,5,6,7,8,9,10,11,12... (as it does now)

Reason I ask is because I have issues with other plugins that sort the playlists
They sort as: 1,10,11,12,13,14,15,16,17,18,19,2,20,21,22...

Re: change default new playlist names?

Reply #7
If you are free to use title format functions just use $num(%always_counter%,2)

 

Re: change default new playlist names?

Reply #8
If you are free to use title format functions just use $num(%always_counter%,2)
Sometimes you never think about the obvious :)

Thank you.