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

From: Oleksandr Shulgin <oleksandr(dot)shulgin(at)zalando(dot)de>
To: Joe Wildish <joe(at)lateraljoin(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [PATCH] Add support to psql for edit-and-execute-command
Date: 2020-05-18 06:08:46
Message-ID: CACACo5TU2X9WokpuBvrd7b27jbdXrTTASxb6Pb_-fakJqokmRg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, May 18, 2020 at 1:30 AM Joe Wildish <joe(at)lateraljoin(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Greg Nancarrow 2020-05-18 07:33:10 Re: Libpq support to connect to standby server as priority
Previous Message Amit Kapila 2020-05-18 04:59:34 Re: Fix a typo in slot.c