Skip to content

Cursor control in complete suggestion? #128

@emicklei

Description

@emicklei

Hi,

I am looking for a way to move the cursor into a completed suggestion.
For example, if I type p and it completes to play(""), I would like the cursor to be positioned right after the first ".

I tried adding an ANSI escape sequence \033[2D (move cursor back 2x) but it is not being interpreted. An alternative could be to have a post complete func and a way to tell the *State that a cursor move is requested (programmatic CtrlB).

Before working on such a feature, I would like to have some feedback on this.

Thx,
Ernest

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions