KeePassDX icon indicating copy to clipboard operation
KeePassDX copied to clipboard

Validate the Tags edit field when validating the entry

Open DSMasterson opened this issue 4 months ago • 11 comments

Checks

  • [x] I have read the Wiki, searched the open issues, and still think this is a new bug.

Explain the problem clearly and succinctly:

I may not be seeing the answer to this question. If it's been answered, please say where.

I see that I can Tag entries in the database, but I do not see how to search for all entries having a particular Tag. Am I missing or misinterpreting the button for this? If it's not been implemented yet, that should be documented somewhere.

PS: how do you search all the Issues for any reference to Tag?

Describe what you expected to happen:

No response

KeePassDX version:

4.1.7

Build:

Free

Database version:

No response

File provider (content:// URI)

No response

Android version:

No response

Android device:

No response

Additional context:

No response

DSMasterson avatar Sep 04 '25 19:09 DSMasterson

Same issue, I tried tagging some entries, but don't see a clear way to search for them, as they don't appear when using the search bar.

Bugg4 avatar Sep 08 '25 10:09 Bugg4

When you are on the search bar, simply display the advanced options using the icon on the right. If there is no TAG in the database, the chip will be grayed out. Otherwise, simply select it.

J-Jamet avatar Sep 08 '25 10:09 J-Jamet

If there is no TAG in the database, the chip will be grayed out. Otherwise, simply select it.

It seems that tags actually don't get saved then. When I write a tag in the tag field, save, and then edit the same login again, the tag is not there, and the tag chip in advanced search is always grayed out.

I can arrange a video demo if you cannot reproduce this.

Bugg4 avatar Sep 08 '25 10:09 Bugg4

The Tags field is special and must be validated with a ',' or keyboard input.

J-Jamet avatar Sep 08 '25 10:09 J-Jamet

The Tags field is special and must be validated with a ',' or keyboard input.

Oooh alright, yes I was missing the comma, thank you.

What do you think about adding a placeholder text in the tag field, saying something along the line of "Insert tag(s) separated by commas", or directly an example, like "tag1, tag2, ...", if possible?

Bugg4 avatar Sep 08 '25 10:09 Bugg4

The view system should be improved to validate the last content even if it has not been terminated by a comma. I am looking into how to do this as it depends on an external library.

J-Jamet avatar Sep 08 '25 11:09 J-Jamet

When you are on the search bar, simply display the advanced options using the icon on the right. If there is no TAG in the database, the chip will be grayed out. Otherwise, simply select it.

I assume you mean the "List" button on the second line (which is kind of confusing because the Search button is on the first line). When I click on it, I see a Tags button that, when I click it, gets a checkmark. I assume you then turn off the other field buttons and then your search string will be just the tag to search for. Okay.

Is there a way to get a list of tags in the database?

DSMasterson avatar Sep 10 '25 01:09 DSMasterson

The view system should be improved to validate the last content even if it has not been terminated by a comma. I am looking into how to do this as it depends on an external library.

I entered tags by typing TAG1 <Enter> TAG2 <Enter> ...

That seems to work.

DSMasterson avatar Sep 10 '25 02:09 DSMasterson

Could we have a list of tags somewhere to just click on it to see the entries, like the groups list ? Maybe add them under the groups list (like KeePassXC on Desktop) or somewhere else ? Could be cool to have this instead searching for tags.

Dominic-t3ch avatar Oct 24 '25 23:10 Dominic-t3ch

Yes, that's a good idea, but before redesigning the user interface, I'll add it to the search bar.

J-Jamet avatar Oct 25 '25 07:10 J-Jamet

Yes, that's a good idea, but before redesigning the user interface, I'll add it to the search bar.

That's a good start! Many thanks.

For a future redesign, I see something like hashtags under the items / groups list. Only words or with a pill form.

Dominic-t3ch avatar Oct 25 '25 10:10 Dominic-t3ch