hydrusnetwork / hydrus

A personal booru-style media tagger that can import files and tags from your hard drive and popular websites. Content can be shared with other users via user-run servers.
http://hydrusnetwork.github.io/hydrus/
Other
2.36k stars 157 forks source link

History of search tags with back/next navigation #409

Open novakda opened 4 years ago

novakda commented 4 years ago

I'm frequently doing different refined searches with the same set of base criteria. It would be useful to have a back/next to replay steps in the "history" of searches, much like browser history (perhaps with a list like the favorites with searches in the same session)

For example, suppose you're reviewing scans of music scores for different composers. You might start with this search:

If you wanted to switch to composer:wolfgang amadeus mozart, you'd have to manually remove the composer:johann sebastian bach from the search. A back button here would undo the last tag added to the search, which would easily allow you to refine a base search with fewer steps.

You can sort of do this with "manage favorite searches", but it requires you to save the search and reload it each time from the menu, which takes several clicks. (For this example, you could make a favorite of "format:image AND motive:musical score")

This comes from similar needs as #402, but may have other uses.

bbappserver commented 4 years ago

Undoing the last tag added to the search is functionally equivalent to double clicking that tag to remove it. This takes precisely the same number of steps as an undo button, and has the same outcome but does not require managing the undo stack, and is more flexible in how the search can be changed.

novakda commented 4 years ago

Undoing the last tag added to the search is functionally equivalent to double clicking that tag to remove it. This takes precisely the same number of steps as an undo button, and has the same outcome but does not require managing the undo stack, and is more flexible in how the search can be changed.

Except that:

Perhaps an undo stack/history is excessive, but being able to remove the last tag you added to the search would have benefits.

If not that, making favorites bindable to shortcuts would speed things up for me similarly.

DonaldTsang commented 4 years ago

@novakda in this case what you are hoping for is either:

  1. browse lists of tags in a kind of order that you want, if it is alphabetical it would be a namespace issue, if not how would you add metadata to tags
  2. browse images or music or whatever in an expected order, in this cases there would be ordinal tags next to wach file.
novakda commented 4 years ago

@novakda in this case what you are hoping for is either:

  1. browse lists of tags in a kind of order that you want, if it is alphabetical it would be a namespace issue, if not how would you add metadata to tags
  2. browse images or music or whatever in an expected order, in this cases there would be ordinal tags next to wach file.

It would be nice to control the sort order of tags lists (so the same namespace always appears at the top or bottom), but this is more about doing multiple searches with the same criteria in common for me. I was thinking in terms of a browser Back button to undo one step then adding a different search tag from the a namespace each time.

Zweibach commented 4 years ago

Ignore Donald unless he's actually on topic. He has a well known tendency to bring up barely relevant or related topics whenever discussing anything.

DonaldTsang commented 4 years ago

@novakda You want pre-searching based on the order of a certain list of tags, and combine that with other tag queries. In this case, how would you make the order, where would you store it, and how can you edit the order in case there are new tags? Would it be easier to just switch tags manually? Or as an alternative, have a feature that allows you do do multiple queries based on a single variation?