Re: Not so happy with psql's new multiline behavior

Поиск
Список
Период
Сортировка
От Jim C. Nasby
Тема Re: Not so happy with psql's new multiline behavior
Дата
Msg-id 20060305233424.GG80721@pervasive.com
обсуждение исходный текст
Ответ на Re: Not so happy with psql's new multiline behavior  (mark@mark.mielke.cc)
Список pgsql-hackers
On Sat, Mar 04, 2006 at 01:07:15PM -0500, mark@mark.mielke.cc wrote:
> For me, I prefer the interactive behaviour of ZSH. Multiline
> statements remain as multiline statements, as they were typed.
> One can navigate up and down through the multiline statement
> to make alterations. The real beauty of this approach comes up
> when doing something such as defining a function. Would you
> LOVE the ability to edit the function, in the original form,
> as originally typed, allowing you to insert text, and even
> newlines into the middle? Effectively you have have a full
> text editor, for the last complete series of lines.
<snip>
> Oh no. We typed the wrong command in. It isn't 'a' we want. We want 'ls'.
> 
> Hit up-arrow twice, and we get (_ = cursor)
> 
>     $ f()
>     {
>         a
>     }_

ISTM this is much more useful than the way psql used to work. Don't know
about what's happening in -tip...
-- 
Jim C. Nasby, Sr. Engineering Consultant      jnasby@pervasive.com
Pervasive Software      http://pervasive.com    work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf       cell: 512-569-9461


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

Предыдущее
От: "Jim C. Nasby"
Дата:
Сообщение: Re: ACCESS EXCLUSIVE LOCK
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Uninstall script errors