Re: [PATCH] Add support to psql for edit-and-execute-command - Mailing list pgsql-hackers

From Oleksandr Shulgin
Subject Re: [PATCH] Add support to psql for edit-and-execute-command
Date
Msg-id CACACo5TU2X9WokpuBvrd7b27jbdXrTTASxb6Pb_-fakJqokmRg@mail.gmail.com
Whole thread Raw
In response to [PATCH] Add support to psql for edit-and-execute-command  ("Joe Wildish" <joe@lateraljoin.com>)
Responses Re: [PATCH] Add support to psql for edit-and-execute-command
List 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 by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Fix a typo in slot.c
Next
From: Greg Nancarrow
Date:
Subject: Re: Libpq support to connect to standby server as priority