pms icon indicating copy to clipboard operation
pms copied to clipboard

Add ability to search current list without filtering

Open tremby opened this issue 6 years ago • 4 comments

Sometimes I want to get myself to a particular point in the list via a search without actually filtering it. As far as I can tell there's no way to do this at present.

tremby avatar Sep 15 '17 19:09 tremby

Seconded. Similar to, or equal to, the quick-jump (iirc) feature from 0.42. I would definitely like to see fuzzy searching in this mode, maybe even with highlights?

kimtore avatar Sep 15 '17 21:09 kimtore

Just thought of something which may be useful.

Easier to implement (I think), and just as useful in a good chunk of cases: introduce a command/keybinding which

  1. Remembers the song the cursor is on
  2. Closes the current list
  3. Moves the cursor to the remembered song on whatever list we're on now

That way you enter an input query and filter with bleve (repeat as necessary), cursor down to it once filtered enough, and then press the binding to go up one level but with the same song highlighted. Keep going if there was more than one filter in place and you'll be back at the list you started searching from.

tremby avatar Sep 22 '17 02:09 tremby

Good idea. findIn [queue|library|named-list], or something similar?

I think these two ideas should be implemented separately, I'd like to see quick-jump too.

kimtore avatar Sep 22 '17 06:09 kimtore

I was actually thinking it wouldn't take a parameter, and would just close the current list and go to the song in the previous one. It'd be like a special case of list remove.

The commands you suggest don't sound like they close the current list. But if you can think of practical use cases for them, sure, I'm not against increasing the scope.

tremby avatar Sep 22 '17 08:09 tremby