zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: <zsh-workers@sunsite.auc.dk>
Subject: Re: More intellegent suffix removing?
Date: Thu, 10 Jun 1999 16:31:39 +0000	[thread overview]
Message-ID: <990610163140.ZM1627@candle.brasslantern.com> (raw)
In-Reply-To: <001e01beb348$debda3e0$21c9ca95@mow.siemens.ru>
In-Reply-To: <199906101402.QAA24565@beta.informatik.hu-berlin.de>

On Jun 10,  5:55pm, Andrej Borsenkow wrote:
} Subject: RE: More intellegent suffix removing?
}
} > The patch would be the thing below (are there any other characters
} > where this would be the right thing?). It looks a bit ugly when this
} > happens after typing a `<' or `>', though.
} 
} Hmm ... as I found recently, at least `<' can quite legitimately be part of
} word (<m-n> globbing).

On Jun 10,  4:02pm, Sven Wischnowsky wrote:
} Subject: RE: More intellegent suffix removing?
}
} But only if there is also a `>' and the stuff them forms a valid
} number range (and, of course, you must have the right options set).

Yes ... so what?  You can't determine that at the time a suffix is to
be autoremoved.

} I wasn't very happy with the space-removal on redirection operators
} anyway, though. But to make this right, we would need to leave a space 
} if that was added and to replace a slash (if one was added) with a
} space. There is no way to do this easily for now.

I don't want zsh to replace a slash if one was added.  What if what I
intend is to complete a directory and then glob files in that directory
whose names begin with a digit?

I think Andrej's point -- and it's my point, if not his -- is that '<'
should be left out of the list of characters that do suffix autoremoval.
(And therefore probably '>' should be too ... and come to think of it,
even '|' can be part of a glob pattern.)

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


  reply	other threads:[~1999-06-10 16:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-07 11:41 Sven Wischnowsky
1999-06-07 12:09 ` Andrej Borsenkow
1999-06-10 13:55 ` Andrej Borsenkow
1999-06-10 14:02   ` Sven Wischnowsky
1999-06-10 16:31     ` Bart Schaefer [this message]
1999-06-10 16:40       ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
1999-06-11  8:18 Sven Wischnowsky
1999-06-11  7:03 Sven Wischnowsky
1999-06-07 12:44 Sven Wischnowsky
1999-06-07 11:21 Andrej Borsenkow

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=990610163140.ZM1627@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --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).