Searching a tag should highlight tags in sidebar

This applies to every sidebar function:

  • Saved Searches
  • Today
  • Flags
  • Card States
  • Decks
  • Note types
  • Tags

Behaviour:

What should happen (expand and highlight):

1 Like

I’m not against it but I have a few design related questions regarding your proposal:

  1. What if you search for multiple things? Should every sidebar element be highlighted that’s included in the search?
  2. What about sidebar elements that have been explicitly excluded? Should they be colored in a different color?
  3. If the sidebar reacts to the queries you search, how should it react in case you use one of the several other queries that are not included in the sidebar?

Haven’t thought about multiple queries, but let see

  1. Sure, the elements can be multi selected in the filter search bar, there is even a shade on secondary options

  2. The secondary color, darker blue above, could be used as excluded terms, it won’t even require changes to Recolor and Redesign add-ons

  3. The queries must be equal to the sidebar functions to work

  • Saved Searches: == “String” (must be equal, else no highlight)
  • Due: prop:due=0
  • Flags: flag:1
  • Card State: is:new
  • Decks: deck:Default
  • Note types: note:Basic
  • Tags: -tag:_*

Today functions are, in sequence:

  • Due: prop:due=0
  • Added: added:1
  • Edited: edited:1
  • Studied: rated:1
  • First Review: introduced:1
  • Rescheduled: resched:1
  • Again: rated:1:1
  • Overdue: is:due -prop:due=0

If the number is altered such as rated:2 should the function be selected? Since sidebar only focus on “Today”, then would say no, the user could use a Saved searches to highlight the option

1 Like

Isn’t this what searching the Sidebar filter already does – Browsing - Anki Manual ? Do we need a 2nd way to do that?

Pair nicely with BetterSearch and Clickable Tags v2.0

Better Search:
1. additional filter dialogs With this add-on when you type “tag:”, “deck:”, “note:”, or “card:”, etc. into the browser search bar a dialog opens that allows you to filter and insert a matching tag, deck, notetype, cardtype, etc. into the search bar. See the gif above. Some sort of fuzzy search is supported: E.g. typing in “b c o” (note the spaces between the characters) will match “vocabulary”.

Clicking the tag fills the searchbar, then selecting a tag should highlight in the sidebar as well

The sidebar highlights every tag, deck and flag containing the same name, while the second is more specific

The sidebar is a tool to make it easier to construct search queries, and the expected flow is sidebar>search, not vice versa.