janet-lang / janet

A dynamic language and bytecode vm
https://janet-lang.org
MIT License
3.43k stars 221 forks source link

Janet REPL forward-word keybinding (Alt-f) incorrectly moves to the beginning of a word #1309

Closed Andriamanitra closed 10 months ago

Andriamanitra commented 10 months ago

From man readline:

forward-word (M-f)     Move forward to the end of the next word. Words are composed of alphanumeric characters (letters and digits).

In the Janet shell M-f instead moves to the beginning of the next word. All other terminal apps I know of that implement the M-f keybinding follow the readline behavior. It's easy to work around this issue by using readline wrapper (rlwrap --always-readline janet) but it would still be nice to be consistent with other terminal software.

sogaiu commented 10 months ago

I agree it would be nice.