On Sat, 2003-02-15 at 19:49, Ross J. Reedstrom wrote:
> On Sun, Feb 16, 2003 at 01:34:34AM +0100, Ian Barwick wrote:
> > On Sunday 16 February 2003 01:10, Rod Taylor wrote:
> > > I've been debating a mechanism which could build tab completion tables
> > > based on the documentation for a while now -- and was going to give it a
> > > try next week. If it works, that file would essentially disappear.
>
> Hmm, from slash commands, or from SQL grammar? Or both? How impossible would
> it be to generate the tab-completion from the _grammar_ (for the SQL)
> rather than from docs? Something I was musing about when adding cases to this
> a month or so ago.
Grammer would certainly be nicer but vastly more complicated. Parsing
the SGML shouldn't be overly difficult.
Perhaps I'll just clean up what I've done -- move describe.c to the
backend -- and see how to approach tab completion later.
> > > Feel
> > > free to send in patches for ones that have been missed.
> >
> > ..what I meant is that after entering \d, TAB will produce a list of tables,
> > but \di does not produce a list of indexes, same for \dv etc. I see
> > no particular reason why this is so and can provide patches
> > if relevant.
>
> Send in the patches: won't hurt, even if they get overridden by alter work -
> who knows, Rod may get distracted and not complete the grand plan above.
Wouldn't be the first time ;)
--
Rod Taylor <rbt@rbt.ca>
PGP Key: http://www.rbt.ca/rbtpub.asc