Why don't all readline shortcuts work in psql (or IRB or Rails console)?

In bash and zsh, you can use convenient readline combinations, such as these , to move between words, delete from the middle of a line, etc.

However, only a couple of them (Ctrl-A and Ctrl-E and several others) work in psql, IRB and the Rails console, and possibly others.

Why is it and how hard was it to fix it? Of course, it would be convenient to be able to quickly move between words in a long SQL query.

+4
source share
1 answer

Are your psql & c copies embedded with readline?

Because of its sound, yours can be built with an alternative editing library such as libedit . To get all the readline functions, create them using it.

+1
source

Source: https://habr.com/ru/post/1402732/


All Articles