Skip to content

Suggest only existing tags when autocompleting deletions #654

@uis246

Description

@uis246

Advanced version of #382.
When user wants to remove a tag from image, there is no point in suggesting tags image does not already have. Neither is any point in server-side autocompletion.
Doing ac this way helps when removing obscure tags that currently require server-side autocomplete, which will have additional benefits of (slightly) lower server load and reduced latency for user.

Bonus points for doing it in a way that would allow bulk tag editor suggest all tags that are present only at least on one image. I imagine input.parentElement.querySelectorAll("span.tag") or input.parentElement.querySelector(":scope > span.tag") would be an option here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions