-
-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mode and position off after Atuin history recall with tab #547
Comments
It seems like this recall behavior should follow the |
Thanks for the report. OK, I'll fix it. I was expecting the plugins such as Atuin to properly place the cursor position based on the current mode, but Atuin seems to try to put the cursor at the end of the string. However, Readline seems to automatically adjust the cursor position when a plugin places the cursor at an unallowed position.
Atuin's selection of the history entry is unrelated to the history movement in the line editor. Atuin picks up the command from its own database and inserts the string into the line editor. From the line-editor side (such as Readline and ble.sh), there is no way to tell whether a string inserted by a random plugin would be considered the history movement. If you want to change the cursor position that Atuin sets, you should find or request the corresponding setting in Atuin. Also, this behavior seems to be the same in plain Bash plus Atuin. Even without ble.sh, the cursor position after the insertion by Atuin is at the end of the text. It's unrelated to ble.sh. |
Atuin doesn't seem to support the option for the cursor position. It's hardcoded to be at the end of the string. Issue atuinsh/atuin#893 discusses a related extension. |
Thanks! |
I adjusted the behavior in commit 36ab934. |
~/.blerc
(@akinomyoga Not sure if this is related to changes performed in #537)
The text was updated successfully, but these errors were encountered: