9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rob Pike <rob@mightycheese.com>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] bug in libcomplete?
Date: Sat, 14 Feb 2004 11:09:13 -0800	[thread overview]
Message-ID: <47248F67-5F21-11D8-A6FF-000A95B984D8@mightycheese.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0402141053490.13032-100000@fbsd.cpsc.ucalgary.ca>

> Next question (please bear with me): Has anyone thought of making
> libcomplete suggest binaries when there's a match? It's more trivial
> to look
> in /bin then to parse $PATH the way bash is doing. On the other hand
> the
> semantics need to be thought of right -- does it show executable files
> when
> none of the local files match? does it put preference on executables
> than
> files in the current dir (when no partial match exists) and so on?
>
> Maybe it isn't worth it and just typing /bin before hitting Ins is the
> way
> to go?

sure.

> Lastly: what would it take to make libcomplete work in directories
> served by
> things like ftpfs, dossrv (9fat:) or 9fs (9fs sources)?

i put in file name completion because the file names i see have grown
long
and because working with people who have file name completion kinda
forces you into it because they name things given that ability.

however, i still hate it.  like history in the shell that doesn't work
in other
commands, completion becomes this thing that only works some times in
some contexts.  for instance, it doesn't work on the rhs of a cp command
and it certainly doesn't work in scp.  it doesn't work in the address
bar of
the browser.  and so on and so on.  at least here it's in the window
system,
which makes it a little more general than it is in other systems, but
it's
fundamentally not a universally available thing, nor can it be.

so i vote strongly against hacks to make it work more broadly.  that way
lie layers of hideous goo that i don't need to name explicitly because
we've all seen linux's readline.  if it's not universal by design,
don't make
it semi-universal by hackery.

-rob



  parent reply	other threads:[~2004-02-14 19:09 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-14 15:15 andrey mirtchovski
2004-02-14 16:35 ` Rob Pike
2004-02-14 16:49   ` David Presotto
2004-02-14 18:18     ` andrey mirtchovski
2004-02-14 17:56       ` andrey mirtchovski
2004-02-14 19:09       ` Rob Pike [this message]
2004-02-14 21:57         ` boyd, rounin
2004-02-14 19:01 Rob 'Commander' Pike

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47248F67-5F21-11D8-A6FF-000A95B984D8@mightycheese.com \
    --to=rob@mightycheese.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).