Skip to main content

Topic: change default new playlist names? (Read 622 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
  • illya_
  • [*]
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

  • Zao
  • [*][*][*][*][*]
  • Developer (Donating)
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%.
Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered.

  • Air KEN
  • [*]
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 HD650,  Beyerdynamic DT 1770 Pro, B&W P7, HIFIMAN HE400i, Ultrasone Performance 880, AKG K712 PRO, ONKYO A800, Bose QuietComfort 35 wireless, SENNHEISER HD 4.50BTNC (made a Upgrade/Balanced Cable by myself)

  • Zao
  • [*][*][*][*][*]
  • Developer (Donating)
Re: change default new playlist names?
Reply #3
I thought I had solved my network problems... bah.
Re-uploaded over VPN.
Zao shang yong zao nong zao rang zao ren zao.
To, early in the morning, use a chisel to build a bathtub makes impatient people hot-tempered.

  • Air KEN
  • [*]
Re: change default new playlist names?
Reply #4
Thank you for your support in your busy time.  ;)
SHURE SRH1840, SENNHEISER HD650,  Beyerdynamic DT 1770 Pro, B&W P7, HIFIMAN HE400i, Ultrasone Performance 880, AKG K712 PRO, ONKYO A800, Bose QuietComfort 35 wireless, SENNHEISER HD 4.50BTNC (made a Upgrade/Balanced Cable by myself)

  • illya_
  • [*]
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

  • illya_
  • [*]
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...
  • Last Edit: 27 April, 2017, 08:47:54 AM by illya_

  • Case
  • [*][*][*][*][*]
  • Developer (Donating)
Re: change default new playlist names?
Reply #7
If you are free to use title format functions just use $num(%always_counter%,2)

  • illya_
  • [*]
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.