The feature request came from xonsh shell - https://github.com/xonsh/xonsh/discussions/6044 When we [call prompt() method](https://github.com/xonsh/xonsh/blob/8a04bad17ad38848e75c7b7f320111e9399c6c28/xonsh/shells/ptk_shell/__init__.py#L381) we can't set [default buffer suggestion](https://github.com/prompt-toolkit/python-prompt-toolkit/blob/c7c629c38b22b5f22a0a5e80a1ae7e758ac595bb/src/prompt_toolkit/buffer.py#L344). But it would be very helpful for AI suggesters or extracting next command from history, etc. The minimal example of use case: ```xsh 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**