zsh-workers
 help / color / mirror / code / Atom feed
From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.dk
Subject: Re: Slash after directory number in cd completion?
Date: Tue, 17 Apr 2001 10:52:57 +0200 (MET DST)	[thread overview]
Message-ID: <200104170852.KAA05138@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: <20010412113428.86398.qmail@web9307.mail.yahoo.com>

[ Hello, everyone.  I'm back. ]

Oliver Kiddle wrote:

> ...
> 
> I actually think the correct patch would be to remove the whole if,
> then else because it is done in _tilde and isn't otherwise needed. I've
> left it for the time being though.

I agree.

Bye
  Sven

Index: Completion/Zsh/Type/_directory_stack
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Type/_directory_stack,v
retrieving revision 1.3
diff -u -r1.3 _directory_stack
--- Completion/Zsh/Type/_directory_stack	2001/04/12 11:42:02	1.3
+++ Completion/Zsh/Type/_directory_stack	2001/04/17 08:51:53
@@ -7,16 +7,8 @@
 
 setopt localoptions nonomatch
 
-local expl list lines revlines disp suf
+local expl list lines revlines disp
 
-if [[ "$SUFFIX" = */* ]]; then
-  ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
-  SUFFIX="${SUFFIX%%/*}"
-  suf=(-S '')
-else
-  suf=()
-fi
-
 ### we decided against this, for now...
 #! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
 
@@ -48,4 +40,4 @@
 fi
 
 _wanted -V directory-stack expl 'directory stack' \
-    compadd "$@" "$suf[@]" "$disp[@]" -Q -a list
+    compadd "$@" "$disp[@]" -Q -a list

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


  parent reply	other threads:[~2001-04-17  8:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 20:10 PATCH: completion for a couple more builtins Oliver Kiddle
2001-04-11 21:30 ` Slash after directory number in cd completion? Andrej Borsenkow
2001-04-11 22:06   ` Bart Schaefer
2001-04-12 11:34     ` Oliver Kiddle
2001-04-12 18:08       ` Bart Schaefer
2001-04-17  8:52       ` Sven Wischnowsky [this message]
2001-04-11 22:15 ` PATCH: completion for a couple more builtins 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=200104170852.KAA05138@beta.informatik.hu-berlin.de \
    --to=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@sunsite.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).