Skip to content

The cursor position is at the start of the field instead of the end of the field after a call to Context.API.ChangeQuery("...") from inside a plugin #1078

@gissehel

Description

@gissehel

Describe the bug/issue
I'm developing a plugin (which target both Flow Launcher and Wox using an abstraction layer for both).

At a certain point in parsing the command, I decide to rewrite the current query from "vol +" to "vol change +".
To do that I use PluginInitContext.API.ChangeQuery("vol change +")

(Note: I happen to use the same API for both Wox and Flow Launcher)

Expected result:

  • The new query is "vol change +" and the cursor is at the end of the query so any new char typed is inserted at the end of the string

Actual result:

  • The new query is "vol change +" but the cursor is at the start of the query so any new char typed is inserted at the start of the string

Notes:

Your System:

Microsoft Windows [version 10.0.19043.1586]
Flow Launcher version: 1.9.3

Flow Launcher Error Log:
No log is generated during this sequence.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions