Skip to content

Ability to set suggestion for empty prompt or an argument with suggestion to prompt() #2044

@anki-code

Description

@anki-code

The feature request came from xonsh shell - xonsh/xonsh#6044

When we call prompt() method we can't set default buffer suggestion. But it would be very helpful for AI suggesters or extracting next command from history, etc.

The minimal example of use case:

prompt> echo 1
prompt> echo 2
prompt> echo 3
prompt> echo 1
prompt> <cursor>echo 2  # Here `echo 2` is the suggestion (grey text).

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions