You are not logged in.

#1 2010-10-21 12:08:37

senicar
Member
Registered: 2010-10-14
Posts: 4

How to find a song quickly in ncmpcpp

Hi

I've been trying to figure it out if it is possible to find a song in the playlist by artist and title or any other tag. Something similar to how Sonata filters the playlist.

If I search for 'one' I get hundreds of results even tough I only want the U2 song. I know I can search by tags in Search engine but I prefer searching in the playlist. So the only "solution" I found is to first filter the playlist for 'u2' and then do the Find forward for 'one'. But it seems there has to be a better way to do this. Using regular expressions with / would be great but I haven't found any examples on how to use them properly in ncmpcpp.

Is there a way to search by multiple tags with Find forward/backward?

I can see there are a lot of people on the forum using mpd and ncmpcpp and I'm wondering how do you search quickly for a song that has one fairly common word for the title?

Thanks

Offline

#2 2010-10-22 09:57:16

senicar
Member
Registered: 2010-10-14
Posts: 4

Re: How to find a song quickly in ncmpcpp

So I spent some more time trying to solve this issue and I think I figured it out.

Even though I've set regular expressions to extended, I still had trouble finding the proper entries starting with 'one'.
^one.*u2 didn't return anything, at least until I've tried it in playlists column mode.

This is my playlist formating for column and classic mode:
song_columns_list_format = "(40)[white]{t} (30)[green]{a} (10)[green]{l}"
song_list_format = "{$8%t$9}|{$8%f$9} $R{$3[%a]$9}|{$3%D$9}  {$3%l$9}"

It turns out that color definition in classic mode are part of the input string but in column mode they are not.
^..one.*u2  finds exactly the song I was looking for.

In the end nothing fancy, but this little thing was bugging me for a long time now and I just wanted to make an end to it all.

... now the only thing left missing is a 'Jump to' widget for awesomewm big_smile

Offline

Board footer

Powered by FluxBB