Re: Not so happy with psql's new multiline behavior - Mailing list pgsql-hackers

From Jim C. Nasby
Subject Re: Not so happy with psql's new multiline behavior
Date
Msg-id 20060305233424.GG80721@pervasive.com
Whole thread Raw
In response to Re: Not so happy with psql's new multiline behavior  (mark@mark.mielke.cc)
List 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 by date:

Previous
From: "Jim C. Nasby"
Date:
Subject: Re: ACCESS EXCLUSIVE LOCK
Next
From: Bruce Momjian
Date:
Subject: Re: Uninstall script errors