evcxr / evcxr

Other
5.59k stars 216 forks source link

Caret key (`^`) does not work as expected in evcxr_repl in vi edit mode #239

Closed TonalidadeHidrica closed 2 years ago

TonalidadeHidrica commented 2 years ago

Caret key should jump the cursor to the first non-empty character in the current line. But it is implemented that it instead jumps ...

❯ evcxr --edit-mode=vi
Welcome to evcxr. For help, type :help
>> abc def
       ^ here.

Seems that it instead moves the cursor to the character right after the first whitespace instead.

davidlattimore commented 2 years ago

Thanks for the report @TonalidadeHidrica. Evcxr uses rustyline. Looks like it exhibits the same behaviour. Would you like to raise an issue there?

davidlattimore commented 2 years ago

The relevant code, in case you wanted to have a look at changing it, appears to be here.

TonalidadeHidrica commented 2 years ago

Thank you very much for investigating! I will open an issue in rustyline.