zsh-autocomplete icon indicating copy to clipboard operation
zsh-autocomplete copied to clipboard

Usual cursor shortcuts don't work in history/completion menu

Open marlonrichert opened this issue 2 years ago • 1 comments

Discussed in https://github.com/marlonrichert/zsh-autocomplete/discussions/409

Originally posted by saul January 21, 2022 Hi

When in the history prompt, when I try to use Home/End, they do nothing. Similarly using Ctrl-Left/Ctrl-Right does not move backward/forward a word - they act as PgUp and PgDown and navigate the history menu instead.

I noticed in the README that:

most other keys | Accept selection, then perform usual action

Do I need to manually setup these keybindings? What am I doing wrong?

marlonrichert avatar Jan 21 '22 12:01 marlonrichert

@saul You are not doing anything wrong! That is, in fact, a bug. Thank you for reporting. I will fix it. 🙂

marlonrichert avatar Jan 21 '22 12:01 marlonrichert

Turns out this is a bit more work than I initially anticipated. What needs to be done is to find all keys bound to widgets that are special to zsh/complist (except the ones we actually want to be special) and then rebind them to the same widget, but prefixed with a .. This is not complex; it just requires some manual labor and testing (for which I personally haven't the time yet). Pull requests welcome! 🙂

marlonrichert avatar Sep 27 '22 12:09 marlonrichert