zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: Re: Clearcase and filename completion
Date: Wed, 9 Feb 2000 09:27:00 +0100 (MET)	[thread overview]
Message-ID: <200002090827.JAA03378@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Felix Rosencrantz's message of Tue, 8 Feb 2000 23:33:34 -0800 (PST)


Felix Rosencrantz wrote:

> ...
> 
> Is there anyway to tell path_files to use the existing head of the filename,
> if the head already exists.  So if I type "vi foo.c@@/" and then
> attempt completion, zsh would check to see if foo.c@@/ exists, and if
> it does, accept it, and complete files in that directory.  
> It seems that the code seems to test for existence using globbing, which
> fails in this case.
> 
> I looked at the man page, and looked at trace output to see what styles
> are being checked, and none seemed to be what I wanted.

Currently there is now way to do that except by modifying _path_files
(one of the reasons for how the new completion system looks was that
we wanted to give users the chance to do that).

In this case it should be enough to add another one of those `if's
around line 278 to skip over components that match `[^/]##@@/' and then 
handle them like we handle `(.|..)/' now (line 265).

Hm, I've no idea how widely used Clearcase is -- or other filesystems
that give special semantics to certain names, making globbing fail. If 
there is a cheap way to detect the use of Clearcase I could probably
be convinced to put that into the core. And if there are other uses
for a style that gives a pattern to match pathname components that
should be accepted immediatly, I could easily be convinced to add that 
(somehow that sounds useful, but I can't think of an example).

Bye
 Sven


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


             reply	other threads:[~2000-02-09  8:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-02-09  8:27 Sven Wischnowsky [this message]
2000-02-10 12:26 ` Andrej Borsenkow
  -- strict thread matches above, loose matches on Subject: below --
2000-02-09  7:33 Felix Rosencrantz

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=200002090827.JAA03378@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).