3 ms·
Many interpreters don’t use Readline (e.g. IPython and Zsh), and enabling inconsistent Vi keybinsings in each one can be a bit annoying. From that perspective,
by drbaba 3y ago
Many interpreters don’t use Readline (e.g. IPython and Zsh), and enabling inconsistent Vi keybinsings in each one can be a bit annoying. From that perspective, adding it to the terminal seems a possibly easier way to get it “everywhere”?
- mhitza 3y agoPossibly more universal, but there are also tools like rlwrap [1] that adds readline support to programs that don't have it. From the docs apparently the readline library ships a similar tool ootb nowadays but I haven't tried that and just noticed now when I wanted to share the rlwrap link. [1] https://github.com/hanslub42/rlwrap https://github.com/hanslub42/rlwrap
- williadc 3y agoIPython absolutely uses readline
- drbaba 3y agoNot anymore. Since IPython v5 (5+ years ago?), readline was replaced with prompt_toolkit. EDIT: Here’s an official source: https://ipython.readthedocs.io/en/stable/whatsnew/version5.html#ipython-5-0 https://ipython.readthedocs.io/en/stable/whatsnew/version5.h...