Re: psql and readline

Поиск
Список
Период
Сортировка
От Rod Taylor
Тема Re: psql and readline
Дата
Msg-id 1042125929.52087.7.camel@jester
обсуждение исходный текст
Ответ на Re: psql and readline  (Justin Clift <justin@postgresql.org>)
Ответы Re: psql and readline  (Peter Mount <peter@retep.org.uk>)
Список pgsql-hackers
On Thu, 2003-01-09 at 10:12, Justin Clift wrote:
> Bruce Momjian wrote:
> <snip>
> > Let's suppose I am writing a query, and then I do \e to edit the query,
> > and I exit the editor and return to psql.  Suppose I decide I want to
> > reedit, so I up arrow.  I would expect to get \e, not the query I just
> > edited, no?
>
> Wouldn't it depend on how this gets implemented?
>
> Maybe least negative impact approach (suggested already): If the "large
> command that was edited" is put in the command history before the \e,
> then both are available and there is no big change from "expected
> behaviour".

We could always create a new command that edits a query buffer rather
than file

\e FILENAME

\E QUERY BUFFER


So, history of:
\E SELECT .......

Selecting this would fire off an editor based on the query to the right
of the command, much as \e FILENAME opens an editor based on the file to
the right of the command.
--
Rod Taylor <rbt@rbt.ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

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

Предыдущее
От: Lee Kindness
Дата:
Сообщение: Re: [PATCHES] PostgreSQL libraries - PThread Support, but not use...
Следующее
От: cbbrowne@cbbrowne.com
Дата:
Сообщение: Re: psql and readline