stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
9.37k stars 803 forks source link

[Feature] Sorting and filtering Library list #4513

Open r3538987 opened 10 months ago

r3538987 commented 10 months ago

Is your feature request related to a problem? Please describe. When user has long library list with folders, it can become complicated to read such list. Because paths are sorted by date added, and if multiple drives are involved, list becomes messy.

While I know file structure in drives, finding path in library list can be slow, because order is not alphabetical.

Describe the solution you'd like Add an button or sort field, which could allow to sort or filter library view.

Describe alternatives you've considered If possible to implement via plugins or even custom CSS, would be great.

Additional context In discord server I had given suggestion, where you open one of config files, sort it's portion via Notepad++ and save it.

kashmir772 commented 3 months ago

Having a sort of the Library list is probably a bad idea, but an easy drag and drop method for reordering libraries would be awesome.

My justification for the modification to your request is that the order of the libraries can change what is found by scans. If you have to 2 folders in your libraries where one is a subfolder to the other strange things can happen. The issue that I have run into a couple times is having a photos library that I want to add inside of a directory that has been added as video only. Example: 1st Library was /Stash/Clean Videos: ✅ Photos: ❌ 2nd Library was /Stash/Clean/_Photos Videos: ❌ Photos: ✅

In this order NO photos in the _Photos directory will be added, but any videos in the _Photos directory are added.

Now, if I flip the order of the libraries so that they are 1st Library was /Stash/Clean/_Photos Videos: ❌ Photos: ✅ 2nd Library was /Stash/Clean Videos: ✅ Photos: ❌

Now, this adds all of the photos and it doesn't added the video in the _photos directory.

It would be awesome to be able to reorder the libraries with out having to remove the directory and readd the library back in.