psql tab completion patch

Started by Liam Stewartalmost 25 years ago4 messagespatches
Jump to latest
#1Liam Stewart
liams@redhat.com

Here is a small patch for the psql's tab-completion mechanism. For
INSERTs, one can now tab complete DEFAULT VALUES.

Liam

--
Liam Stewart :: Red Hat Canada, Ltd. :: liams@redhat.com

Attachments:

tab-complete.patchtext/plain; charset=us-asciiDownload+9-6
#2Peter Eisentraut
peter_e@gmx.net
In reply to: Liam Stewart (#1)
Re: psql tab completion patch

Liam Stewart writes:

Here is a small patch for the psql's tab-completion mechanism. For
INSERTs, one can now tab complete DEFAULT VALUES.

Couldn't you just append "DEFAULT VALUES" in one run, rather than having
to tab twice?

--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter

#3Liam Stewart
liams@redhat.com
In reply to: Peter Eisentraut (#2)
Re: psql tab completion patch

On Wed, Aug 29, 2001 at 11:32:20PM +0200, Peter Eisentraut wrote:

Liam Stewart writes:

Couldn't you just append "DEFAULT VALUES" in one run, rather than having
to tab twice?

That's a good idea. I like it, but the only drawback is is that the
output when you tab twice to get the possible completions could be a bit
confusing. Doesn't really matter though.. Here's the updated patch.

Liam

--
Liam Stewart :: Red Hat Canada, Ltd. :: liams@redhat.com

Attachments:

tab-complete.patchtext/plain; charset=us-asciiDownload+6-6
#4Peter Eisentraut
peter_e@gmx.net
In reply to: Liam Stewart (#3)
Re: psql tab completion patch

Liam Stewart writes:

On Wed, Aug 29, 2001 at 11:32:20PM +0200, Peter Eisentraut wrote:

Liam Stewart writes:

Couldn't you just append "DEFAULT VALUES" in one run, rather than having
to tab twice?

That's a good idea. I like it, but the only drawback is is that the
output when you tab twice to get the possible completions could be a bit
confusing. Doesn't really matter though.. Here's the updated patch.

Installed.

--
Peter Eisentraut peter_e@gmx.net http://funkturm.homeip.net/~peter