From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-users@sunsite.auc.dk
Cc: "David R. Favor" <dfavor@austin.ibm.com>
Subject: Re: Completion Guru needed (next/prev)
Date: Mon, 22 Feb 1999 16:05:03 +0100 (MET) [thread overview]
Message-ID: <199902221505.QAA22338@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: "David R. Favor"'s message of Mon, 22 Feb 1999 08:38:45 -0600
David R. Favor wrote:
> I'm trying to create a next/prev completion facility to quickly
> traverse complicated directory hierarchies.
>
> Here is an example hierarchy:
>
> ...
>
> Typing cd-SPACE-TAB begins completion of the directories [src doc info]. Here's
> what I'm trying to do.
>
> NEXT completion:
>
> If src is currently seleted, normally it requires hitting BACKSPACE-TAB-TAB to
> begin selecting directories [client lib server tools]. I would like to be able
> to do this by hitting the shortcut SHIFT-TAB.
>
> PREVIOUS completion:
>
> If src/server/ is currently selected, I would like to be able to hit CNTL-TAB
> to go back to selecting [client lib server tools]
>
> Suggestions would be appreciated.
No official version allows to do this in the completion code. But you
can probably use some bindkey-trickery:
bindkey -s <SHIFT-TAB> '^H^I^I'
bindkey -s <CTRL-TAB> '^W^I'
This will only work if there is no `/' in your WORDCHARS parameter and
if Control-W is bound to bachward-kill-word or backword-delete-word
(it's normally bound to backward-kill-word). Maybe I understood you
wrong and in the second case '^W^W^I' does what you want.
Bye
Sven
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next prev reply other threads:[~1999-02-22 15:07 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-02-22 14:38 David R. Favor
1999-02-22 15:05 ` Sven Wischnowsky [this message]
1999-02-28 3:39 ` 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=199902221505.QAA22338@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=dfavor@austin.ibm.com \
--cc=zsh-users@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).