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