zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@math.gatech.edu
Subject: Re: experimental new style completion
Date: Fri, 22 Jan 1999 15:50:11 +0100 (MET)	[thread overview]
Message-ID: <199901221450.PAA28628@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Sven Wischnowsky's message of Fri, 22 Jan 1999 14:15:26 +0100 (MET)


I wrote:

> ...
>
> Most importantly it contains a
> function showing the use of `compadd': with this function it is easy
> to get partial-path completion for almost anything (including what was 
> previously `-g' patterns).
>
> ...

I forgot to handle fignore inside this function.

Bye
 Sven

*** Src/example.old	Fri Jan 22 15:47:54 1999
--- Src/example	Fri Jan 22 15:48:18 1999
***************
*** 238,243 ****
--- 238,244 ----
        s=( "${(@)s:gs.**.*.}" )
        for i in $a; do
          b=( $~i/(#l)$~s )
+         eval b\=\( \$\{b:/\*\(${(j:|:)fignore}\)\} \)
          [[ $#b -ne 0 ]] && c=( $c $i )
        done
        if [[ $#c -eq 0 ]] then
***************
*** 245,250 ****
--- 246,252 ----
        elif [[ $#c -ne 1 ]] then
          a="$epre$pa"
          c=( $~c/(#l)$~s )
+         eval c\=\( \$\{c:/\*\(${(j:|:)fignore}\)\} \)
  	c=( ${c#$a} )
          for i in $c; do
            compadd -p "$pre$pa" -W "$a" -s "/${i#*/}" -f "${i%%/*}"
***************
*** 261,266 ****
--- 263,269 ----
    s=( $str$@ )
    s=( "${(@)s:gs.**.*.}" )
    b=( $~a(#l)$~s )
+   eval b\=\( \$\{b:/\*\(${(j:|:)fignore}\)\} \)
    compadd -p "$pre$pa" -W "$epre$pa" -f ${b#$a}
  }
  

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


             reply	other threads:[~1999-01-22 14:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-22 14:50 Sven Wischnowsky [this message]
1999-01-22 16:18 ` Phil Pennock
1999-01-22 17:09   ` Bart Schaefer
  -- strict thread matches above, loose matches on Subject: below --
1999-01-22 16:30 Sven Wischnowsky
1999-01-22 13:15 Sven Wischnowsky
1999-01-21 16:07 Sven Wischnowsky
1999-01-21 12:02 Sven Wischnowsky
1999-01-21 10:53 Sven Wischnowsky
1999-01-21 10:36 Sven Wischnowsky
1999-01-07  8:02 Sven Wischnowsky
1999-01-05 15:43 Sven Wischnowsky
1999-01-07  7:36 ` Bart Schaefer
1998-12-18 15:59 Sven Wischnowsky

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=199901221450.PAA28628@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@math.gatech.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.
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).