zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: completion features
Date: Mon, 15 Mar 1999 10:59:25 +0100 (MET)	[thread overview]
Message-ID: <199903150959.KAA22869@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Bart Schaefer's message of Fri, 12 Mar 1999 08:19:59 -0800 (PST)


Bart Schaefer wrote:

> X-Seq: 5778
> 
> Sven Wischnowsky writes:
>  > 
>  > One more question: we could make this user-configurable. E.g.
>  > `compconfig[...]=-1' would mean that `line_len - 1' errors would be
>  > accepted and so on. Should we...? Any suggestions for the `...'? ;-)
> 
> Pardon me if I've missed something, but you aren't really suggesting
> that the number of errors be based on the entire length of the input
> line, are you?  The length of the current _word_, surely?

Of course. What I meant was: the length of the word from the line.

> For file
> names, it should probably only be the length of the path segment that
> actually contains the cursor.

That's what the hunks in `_path_files' did.

> And why set it to a negative number?  What would a positive number mean?

A positive number would allow more erros than there are characters in
the word. Dunno if there are people who would like that, though.

In another message, answering the above, Bart wrote:

> That last sentence applies to completeinword only, of course.  If you're
> at the end of a /u/s/l/z/z/s/ path expecting it to expand all the way to
> /usr/src/local/zsh/zsh-3.1.5-pws-11/Src/, having the length of the word
> determine the number of errors makes sense.

Implementing this would actually be quite difficult because of the
splitting `_path_files' has to do in some places.

> Perhaps the length of the word minus the number of slashes?  Argh.  I'm
> thinking about this too hard.

Maybe we just let people play with it some more and then collect
suggestions how all this can be improved. What I'd like to hear about
is `unexpected' behavior (whatever that means ;-).

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


             reply	other threads:[~1999-03-15 10:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-03-15  9:59 Sven Wischnowsky [this message]
  -- strict thread matches above, loose matches on Subject: below --
1999-03-12 13:10 Sven Wischnowsky
1999-03-12 16:19 ` Bart Schaefer
1999-03-13 17:59   ` Bart Schaefer
1999-03-12  9:36 Sven Wischnowsky
1999-03-12  9:38 ` Peter Stephenson
1999-03-12  8:55 Sven Wischnowsky
1999-03-11 17:02 Peter Stephenson
1999-03-11 22:06 ` Bart Schaefer

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=199903150959.KAA22869@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.auc.dk \
    /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.
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).