Re: psql command line editing

Поиск
Список
Период
Сортировка
От Rich Shepard
Тема Re: psql command line editing
Дата
Msg-id 40bef2b1-62a1-ed-63c0-6487bbcdd133@appl-ecosys.com
обсуждение исходный текст
Ответ на Re: psql command line editing  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: psql command line editing
Re: psql command line editing
Список pgsql-general
On Wed, 12 Feb 2025, Tom Lane wrote:

> On my machine, Ctrl-Left/Right don't seem to do anything, but the usual
> Emacs combinations Ctrl-A, Ctrl-E, Escape-B, Escape-F and so on work in
> psql. I don't believe I did anything special to configure that. Check your
> local readline documentation.

Tom,

I run psql from a urxvt virtual console, not emacs (which is where I write
scripts.)

> As Adrian notes, there's also \e, which is good for entering
> or editing multi-line queries.

Often when updating table rows I'll modify one string and the row ID so I'll
learn to use \e to move around the string.

Many thanks,

Rich



В списке pgsql-general по дате отправления: