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] allow user multi choosing few tags at same time to filter out the expecting note. #3206

Open
intelcoreamdryzen opened this issue Jan 10, 2025 · 3 comments

Comments

@intelcoreamdryzen
Copy link

intelcoreamdryzen commented Jan 10, 2025

Is your feature request related to a problem? Please describe.

Usually, a note contains several tags. Now left clicking on a tag will automatically filter out notes containing that tag. But you can only choosing one tag everytime.
How can I choose multi tags at same time so that could filter my expecting notes in output?

Describe the solution you'd like

method 1 : Add multi checkbox.

method 2 : When mouse left clicking on different tags consecutively, it means selecting multiple tags at the same time. The program filters notes that containing multiple tags that match "and" conditions;
Left click on the same tag to toggle the selected or canceled status.

method 3 : users can enter multiple tag keywords in the input box, with each keyword separated by a space.

For now, tag that assigned to currunt note will be bolded auto, but it is not prominent enough.
Though user can assign tags any bg-colors anytime, but I prefer to let it auto heighlighted with color on its font. And for method 1 and 2, when user multi choosing tags, the tags be chosen will be auto heighlighted.

eg. note [mynote] contains 3 tags , user could be able to multi choosing tags and , then note [mynote] will be filtered out as result which user expecting for.

sc

Expand
@pbek
Copy link
Owner

pbek commented Jan 10, 2025

I'm not sure if I understand your feature request. You can already Ctrl+click multiple tags to show the notes of all those tags...

@intelcoreamdryzen
Copy link
Author

intelcoreamdryzen commented Jan 11, 2025

Sorry for my poor English.

As you said "Ctrl+click multiple tags to show the notes of all those tags" - by this way, tags such as 'aa' 'bb' 'cc'... will be processed as meeting the filter query's condicton "OR" - any notes that assigned tag 'aa' or tag 'bb' or tag 'cc', that will be showed.

What I want is tags meet the filter query's condicton "AND", so only if the notes assigned tag 'aa' and tag 'bb' and tag 'cc', both 2 or more tags be assigned to the same note that will be showed.

For example:
note1 is assigned tags 'aa' 'bb' 'cc'
note2 is assigned tags 'aa' 'ff' 'ee'

NOW: when I click multiple tags 'aa' and 'bb', both note1 and note2 will be showed as results since these 2 tags satisfy the query filtering of "OR";

REQUEST: when I click multiple tags 'aa' and 'bb', thers is only 1 result be showed - note1,since only note1 was assigned both tag 'aa' AND 'bb'.

And "Ctrl+click" seems not so convenient to simultaneously press Ctrl and mouse clicking,so I suggest method 1 or method 2 or method 3 that mentioned above. You can keep "Ctrl+click" as original's function.

By this improvement, users can efficiently and quickly find their target notes from a large number of tags and do not need to select target notes from numerous filtering results.

I'm not sure if I understand your feature request. You can already Ctrl+click multiple tags to show the notes of all those tags...

@pbek
Copy link
Owner

pbek commented Jan 11, 2025

I don't think any AND search will come. The note search is very complex already in the background and also there is no good way of doing it in the interface.

Method 1 would no one understand and clicking a tag already does filter regardless of any checkbox
Method 2 is already implemented.
Method 3 already searches for tags itself and will never do any filtering.

You can always play around with the script engine, since you have access to all notes and tags there!
See https://www.qownnotes.org/scripting/classes.html#tag.

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

No branches or pull requests

2 participants