zsh-workers
 help / color / mirror / code / Atom feed
* proposal: GDBM completion
@ 1995-06-26 11:23 Felix von Leitner
  1995-06-26 18:58 ` Richard Coleman
  1995-06-27 14:10 ` Zoltan Hidvegi
  0 siblings, 2 replies; 3+ messages in thread
From: Felix von Leitner @ 1995-06-26 11:23 UTC (permalink / raw)
  To: Z-Shell Liste

Hi folks !

I wonder whether we could implement some data base completion.  What I
want to have is man page completion, but reading all the man pages from
an NFS server is very slow, and we have so many man pages installed that
I don't want zsh to keep the list in memory.

The newer Berkeley db library has a B-tree database type, which can be
searched the way we need to implement completion.  Wouldn't it be
possible to implement some database lookup completion ?  I'd like to
write a new man(1) which uses the database to find the man pages, and
I'd like to have zsh complete my man pages ;)

Felix

-- 
(------------------------------------------------------------------)
Good programmers write good code; great programmers 'borrow' good code.
"Who is General Failure and why is he reading my hard disk ?"
PGP public key available (mail me with the subject "send key")
PGP public key fingerprint 05 B9 C9 43 3C 96 C5 1E  FD E4 EF 45 E1 A0 09 4D


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: proposal: GDBM completion
  1995-06-26 11:23 proposal: GDBM completion Felix von Leitner
@ 1995-06-26 18:58 ` Richard Coleman
  1995-06-27 14:10 ` Zoltan Hidvegi
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Coleman @ 1995-06-26 18:58 UTC (permalink / raw)
  To: zsh-workers

> I wonder whether we could implement some data base completion.  What I
> want to have is man page completion, but reading all the man pages from
> an NFS server is very slow, and we have so many man pages installed that
> I don't want zsh to keep the list in memory.
> 
> The newer Berkeley db library has a B-tree database type, which can be
> searched the way we need to implement completion.  Wouldn't it be
> possible to implement some database lookup completion ?  I'd like to
> write a new man(1) which uses the database to find the man pages, and
> I'd like to have zsh complete my man pages ;)

I believe Tom Christiansen has written a version of man in perl that uses
ndbm for indexing.  Also tkman can use the database glimpse for similar
things.

As to building in completion support for this in zsh, I'm not sure.  I would
have to be convinced that it would be generally useful.   A possibility is
that I could put patches for such features in a Contrib subdirectory.  But I'm
tied up in other zsh work right now.

rc


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: proposal: GDBM completion
  1995-06-26 11:23 proposal: GDBM completion Felix von Leitner
  1995-06-26 18:58 ` Richard Coleman
@ 1995-06-27 14:10 ` Zoltan Hidvegi
  1 sibling, 0 replies; 3+ messages in thread
From: Zoltan Hidvegi @ 1995-06-27 14:10 UTC (permalink / raw)
  To: Felix von Leitner; +Cc: zsh-workers

leitner@inf.fu-berlin.de (Felix von Leitner) wrote:
> 
> Hi folks !
> 
> I wonder whether we could implement some data base completion.  What I
> want to have is man page completion, but reading all the man pages from
> an NFS server is very slow, and we have so many man pages installed that
> I don't want zsh to keep the list in memory.

One solution is to write an external program, and use it to generate the
possible completions (e.g. with compctl -K). I think this would be fast
enough. A built-in gdbm code would increase zsh size too much if there is no
shared libraries for gdbm.

> 
> The newer Berkeley db library has a B-tree database type, which can be
> searched the way we need to implement completion.  Wouldn't it be
> possible to implement some database lookup completion ?  I'd like to
> write a new man(1) which uses the database to find the man pages, and
> I'd like to have zsh complete my man pages ;)

G.Wilford@ee.surrey.ac.uk has already written a very good man program, which
use databases. It can use gdbm/Berkley db/ndbm, whatever you want. It updates
the databases on the fly (no need to periodically run an update). It can be
installed setuid man when it creates only man-writable databases and cat
pages. It can compres cat pages, and can handle compressed nroff sources. It
can handle stray cats (cap pages without nroff source). It can even extract
whatis information from complessed (or uncompressed) stray cats. Try it, and
if you miss a feature, implement it, and send it to Wilf. This program uses
GNU autoconf so it should compile on most systems out of the box. It comes
with English and German manual pages and it uses locale etc.

The latest public release can be found on
ftp://sunsite.unc.edu/pub/Linux/system/Manual-pagers/man_db-2.3.5.tgz
or on any sunsite Linux mirror site.

The Linux directory does not mean that it is Linux specific. There are also
development releases avaible (as I remember, the latest is 2.3.9). If you
would like to join the development, contact Wilf.

Cheers,
   Zoltan


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1995-06-27 13:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-06-26 11:23 proposal: GDBM completion Felix von Leitner
1995-06-26 18:58 ` Richard Coleman
1995-06-27 14:10 ` Zoltan Hidvegi

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).