Re: [HACKERS] psql: recall previous command?

2005-02-24 Thread Thomas F.O'Connell
One interesting artifact of using \e to edit a multi-line command is that the same command is then treated as a single-line command in subsequent up-arrow or Ctrl-P attempts. I use this frequently to achieve a similar effect to what you're after. The one downside is that if you leave the psql

Re: [HACKERS] psql: recall previous command?

2005-02-24 Thread Neil Conway
Bruce Momjian wrote: Is there a TODO here? Probably -- I think there is definitely room for improving psql's handling of multi-line queries. However, \e works well enough for me, and I don't think I'll get around to looking at this for 8.1. So feel free to add a TODO item. -Neil

Re: [HACKERS] psql: recall previous command?

2005-02-24 Thread Bruce Momjian
Neil Conway wrote: Bruce Momjian wrote: Is there a TODO here? Probably -- I think there is definitely room for improving psql's handling of multi-line queries. However, \e works well enough for me, and I don't think I'll get around to looking at this for 8.1. So feel free to add a TODO

Re: [HACKERS] psql: recall previous command?

2005-02-24 Thread Neil Conway
Bruce Momjian wrote: And what would the TODO item be? Improve psql's handling of multi-line queries is too vague. If you can include a link to the archives or the text of the relevant mails, it seems fine to me. I'm not sure specifically _how_ we want to improve the handling of multi-line

Re: [HACKERS] psql: recall previous command?

2005-02-24 Thread Bruce Momjian
Neil Conway wrote: Bruce Momjian wrote: And what would the TODO item be? Improve psql's handling of multi-line queries is too vague. If you can include a link to the archives or the text of the relevant mails, it seems fine to me. I'm not sure specifically _how_ we want to improve the

Re: [HACKERS] psql: recall previous command?

2005-02-23 Thread Bruce Momjian
Is there a TODO here? --- Neil Conway wrote: Is there a way to recall the previous command in psql? Obviously, up arrow or Ctrl-P using readline and the default readline bindings is close, but it recalls the previous

Re: [HACKERS] psql: recall previous command?

2005-02-22 Thread Darcy Buskermolen
On February 21, 2005 08:26 pm, Neil Conway wrote: Is there a way to recall the previous command in psql? Obviously, up arrow or Ctrl-P using readline and the default readline bindings is close, but it recalls the previous _line_ of input. That is not at all the same thing in the case of a

Re: [HACKERS] psql: recall previous command?

2005-02-21 Thread lsunley
In [EMAIL PROTECTED], on 02/22/05 at 03:26 PM, Neil Conway [EMAIL PROTECTED] said: Is there a way to recall the previous command in psql? Obviously, up arrow or Ctrl-P using readline and the default readline bindings is close, but it recalls the previous _line_ of input. That is not at all

Re: [HACKERS] psql: recall previous command?

2005-02-21 Thread Alvaro Herrera
On Tue, Feb 22, 2005 at 03:26:52PM +1100, Neil Conway wrote: Is there a way to recall the previous command in psql? Obviously, up arrow or Ctrl-P using readline and the default readline bindings is close, but it recalls the previous _line_ of input. That is not at all the same thing in the

Re: [HACKERS] psql: recall previous command?

2005-02-21 Thread Ian Barwick
On Tue, 22 Feb 2005 15:26:52 +1100, Neil Conway [EMAIL PROTECTED] wrote: Is there a way to recall the previous command in psql? Obviously, up arrow or Ctrl-P using readline and the default readline bindings is close, but it recalls the previous _line_ of input. That is not at all the same

Re: [HACKERS] psql: recall previous command?

2005-02-21 Thread Tom Lane
Neil Conway [EMAIL PROTECTED] writes: - when a multiple-line command is recalled, how should it be presented in the psql input buffer? Perhaps we could strip newlines from recalled command text, so that the recalled command would fit on a single line. That fails on at least three cases: --