From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>,
<zsh-workers@sunsite.dk>
Subject: Re: Slash after directory number in cd completion?
Date: Wed, 11 Apr 2001 22:06:40 +0000 [thread overview]
Message-ID: <1010411220641.ZM20380@candle.brasslantern.com> (raw)
In-Reply-To: <Pine.SV4.4.33.0104120127300.8180-100000@itsrm2.mow.siemens.ru>
On Apr 12, 1:30am, Andrej Borsenkow wrote:
} Subject: Slash after directory number in cd completion?
}
} bor@itsrm2:/u3/Linux%> cd -TAB
} bor@itsrm2:/u3/Linux%> cd -1/
}
} Where this slash comes from?
It's _directory_stack calling `compadd -qS/ ...' via _wanted at line 50.
This is new as of Sven's patch in 13789 (before _popd was renamed).
I think the line
[[ $PREFIX = [-+]* ]] || return 1
needs to be something/somewhere else. Perhaps like this? This seems to
work as I expect, but Sven should confirm it when he's back next week.
Index: Completion/Zsh/Type/_directory_stack
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Zsh/Type/_directory_stack,v
retrieving revision 1.1
diff -u -r1.1 _directory_stack
--- Completion/Zsh/Type/_directory_stack 2001/04/02 11:20:31 1.1
+++ Completion/Zsh/Type/_directory_stack 2001/04/11 22:04:39
@@ -13,14 +13,15 @@
ISUFFIX="/${SUFFIX#*/}$ISUFFIX"
SUFFIX="${SUFFIX%%/*}"
suf=(-S '')
-else
+elif [[ $PREFIX != [-+]* ]]; then
suf=(-qS/)
+else
+ suf=()
fi
### we decided against this, for now...
#! zstyle -T ":completion:${curcontext}:directory-stack" prefix-needed ||
-
-[[ $PREFIX = [-+]* ]] || return 1
+# [[ $PREFIX = [-+]* ]] || return 1
if zstyle -T ":completion:${curcontext}:directory-stack" verbose; then
# get the list of directories with their canonical number
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
next prev parent reply other threads:[~2001-04-11 22:07 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 [this message]
2001-04-12 11:34 ` Oliver Kiddle
2001-04-12 18:08 ` Bart Schaefer
2001-04-17 8:52 ` Sven Wischnowsky
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=1010411220641.ZM20380@candle.brasslantern.com \
--to=schaefer@candle.brasslantern.com \
--cc=Andrej.Borsenkow@mow.siemens.ru \
--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).