Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: filter on starting symbol #2177

Open
ghost opened this issue Aug 16, 2020 · 4 comments
Open

feature request: filter on starting symbol #2177

ghost opened this issue Aug 16, 2020 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 16, 2020

hi

The player's folder navigation + search is fantastic and fast!

However there is one thing I think could make the browsing better.
I have 3000+ zip files in one folder.
I need to find a zip file starting with a specific alphabetically symbol and then scroll to find it. If you have thousands of files in 1 folder, it takes a long tile to scroll!
I mostly don't know what the file name contains as substring so I can't use the search for this.

Would it be possible to add a little icon next to the magnifying glass to apply a starting symbol filter on the current folder (with X to remove filter).
In this way we can filter long folder lists by starting symbol. You could also make other filters maybe like file extension, song duration, ...

ps: thx for the help with the zip files, adding them to playlist works great!!!

Thx in advance!

@vitamin-caig
Copy link
Owner

You have to draw UI mockups to check out how it would looks like. Existing 'search' icon, new 'search from the beginning' icon. file extension filter, song duration etc... (BTW, all the folder should be implicitly scanned to detect modules duration? Not sure this is good idea).

The only thing I can do is to support regular expressions rather than simple substring matching as it's already done.

@ghost
Copy link
Author

ghost commented Aug 16, 2020

Regular expressions is a good idea!
So just entering it in the existing search, right?

So to find all files starting with 'a', it's this

a*

Correct?
For single char match you will use a '?' then?
For example all files starting with 'a' and length of 4 chars:

a???

Will you add it in next update? I would like it a lot.
It solves my problem!

The other search options maybe can appear in a pop-up window after pressing advanced search button? Then it does not occupy space in the UI. Regular expressions is much more usable then my other suggestions I think.

@vitamin-caig
Copy link
Owner

vitamin-caig commented Aug 17, 2020

Do not confuse filename masks and regular expressions. Moreover, searching is performed not only by filename, but also by title/description (if available).

So, to find all the tracks starting from 'a' you have to enter "/^a/" (not now, but after implementation) - slashes will enable working with regular expressions, regexp format you can check out at any suitable manual at the internet.

@vitamin-caig
Copy link
Owner

One more thought: in case of full (not preview) search, regexp will have extremely low performance - online catalogs server sides cannot work with regexp (in opposite to simple substring matching), so search will have to request all the catalog folders one by one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant