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

Tag tree to prune itself with the search #873

Open
Armagedoom opened this issue Oct 25, 2019 · 1 comment
Labels

Comments

@Armagedoom
Copy link
Contributor

@Armagedoom Armagedoom commented Oct 25, 2019

Feature description

Some action is necessary when the tag tree becomes too big to easily traverse (given you don't want to always need to traverse it by memory).
The idea comes in two ways:

  • Having a search bar also on top of the tag tree that would prune the underneath tag tree according to the search terms, and only those. This way we could easily search by "Docker" or "Restaurant" and directly see a filtered out tag tree showing only those branches which have any leaf tag that matches that filter. Sometimes you can have the word "Restaurant" in different branches, and this would let you work with both (or remember you have it in duplicated spots) very easily.
  • Using the current search box: A toggle option for the tag tree to be pruned filtering out all the tags that don't contain any note matching the current search terms. This is less convenient IMO.

I think the first one would be the way to go, at the cost of an extra search bar on top of the current tag tree, which might even look good/symmetric with the current one. I think we will eventually need one in the text edition too, similar to the one we see in the web browsers when we do control+f (since we ATM we cant do control+f within a document and search for specific words unless we open the doc in other editors).

Feature motivation

Making it easier to find the wanted tags.

@fabiospampinato

This comment has been minimized.

Copy link
Member

@fabiospampinato fabiospampinato commented Oct 25, 2019

Using the current search box: A toggle option for the tag tree to be pruned filtering out all the tags that don't contain any note matching the current search terms. This is less convenient IMO.

I've been thinking about this also, I think this would be a good idea.

Implementing a second fixed search bar for tags wouldn't be good in my opinion, but we could add a command to the command palette #338 for this instead, that would solve the issue for power users without making the UI more complicated for those who don't need this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.