zsh-users / zsh-autosuggestions

Fish-like autosuggestions for zsh
MIT License
30.33k stars 1.85k forks source link

How to accept the suggestion and keep cursor unmoved? #728

Open homoioi opened 1 year ago

homoioi commented 1 year ago

Currently if press the → key (forward-char widget) or End (end-of-line widget) with the cursor at the end of the buffer, it will accept the suggestion, replacing the contents of the command line buffer with the suggestion. Is there anyway to keep the cursor at the original position instead of at the end of the buffer?

Thanks