Skip to content

API suggestion: add event.get_keyword_id() #284

@friday

Description

@friday

event.get_keyword() is very useful, since extensions may use multiple keywords, and in this case there's a need to distinguish between them in KeywordQueryEventListener.

However, it gets the user defined keyword, not the keyword id. Since users can change these it has to be converted back to the keyword id.

This is not hard by any means, but it feels like a hack having to do it.
https://github.com/brpaz/ulauncher-hash/pull/4/commits/be88b73b7cc14416893c3a417ecf67900b3d3577

Metadata

Metadata

Assignees

No one assigned

    Labels

    PythonThis issue requires Python knowledgefeatureCompletely new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions