Re: [PATCH] Add support to psql for edit-and-execute-command

Поиск
Список
Период
Сортировка
От Oleksandr Shulgin
Тема Re: [PATCH] Add support to psql for edit-and-execute-command
Дата
Msg-id CACACo5TU2X9WokpuBvrd7b27jbdXrTTASxb6Pb_-fakJqokmRg@mail.gmail.com
обсуждение исходный текст
Ответ на [PATCH] Add support to psql for edit-and-execute-command  ("Joe Wildish" <joe@lateraljoin.com>)
Ответы Re: [PATCH] Add support to psql for edit-and-execute-command  ("Joe Wildish" <joe@lateraljoin.com>)
Список pgsql-hackers
On Mon, May 18, 2020 at 1:30 AM Joe Wildish <joe@lateraljoin.com> wrote:

Attached is a small patch for adding "edit-and-execute-command" readline
support to psql. Bash has this concept and I miss it when using psql. It
allows you to amend the current line in an editor by pressing "v" (when
in vi mode) or "C-x C-e" (when in emacs mode). Those are the default
bindings from bash although of course they can be amended in inputrc.

The only difference from \e is that you don't need to jump to the end of input first, I guess?

--
Alex

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

Предыдущее
От: Amit Kapila
Дата:
Сообщение: Re: Fix a typo in slot.c
Следующее
От: Greg Nancarrow
Дата:
Сообщение: Re: Libpq support to connect to standby server as priority