Thread: psql tab completion patch

psql tab completion patch

From
Liam Stewart
Date:
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

Attachment

Re: psql tab completion patch

From
Peter Eisentraut
Date:
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


Re: psql tab completion patch

From
Liam Stewart
Date:
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

Attachment

Re: psql tab completion patch

From
Peter Eisentraut
Date:
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