* Reverse menu-complete?
@ 1996-06-12 19:51 Hrvoje Niksic
1996-06-12 20:27 ` Zefram
1996-06-12 20:35 ` Barton E. Schaefer
0 siblings, 2 replies; 4+ messages in thread
From: Hrvoje Niksic @ 1996-06-12 19:51 UTC (permalink / raw)
To: ZSH Workers Mailing List
Is there a way to go one menu-completion backward? E.g. if I set
automenu (or menucomplete), pressing TAB once expands as much as
possible, whereas each TAB afterwards will cycle through the possible
completions. I would like to have a binding (e.g. bound to M-TAB,
which is now unused) to cycle backwards. Is there such a binding
already?
jagor$ cat
^ pressing TAB here I cycle through the directory one-way
only. Can I get the other way?
I know this can also be achieved by pressing C-_ (undo), but it
doesn't work well when I press TAB again, since it will no longer
cycle, it just accepts the completion at point.
jagor$ cat watch.c
^ After pressing TAB a couple of times, I have
reached watch.c. I can cycle backwards using
C-_, but cycling forward again doesn't work.
--
hniksic@srce.hr | Student of electrical engineering
hniksic@fly.cc.fer.hr | University of Zagreb, Croatia
------------------------------------------------------------------
`VI' - An editor used by those heretics that don't subscribe to
the Emacs religion.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reverse menu-complete?
1996-06-12 19:51 Reverse menu-complete? Hrvoje Niksic
@ 1996-06-12 20:27 ` Zefram
1996-06-13 8:08 ` Hrvoje Niksic
1996-06-12 20:35 ` Barton E. Schaefer
1 sibling, 1 reply; 4+ messages in thread
From: Zefram @ 1996-06-12 20:27 UTC (permalink / raw)
To: Hrvoje Niksic; +Cc: zsh-workers
>Is there a way to go one menu-completion backward? E.g. if I set
>automenu (or menucomplete), pressing TAB once expands as much as
>possible, whereas each TAB afterwards will cycle through the possible
>completions. I would like to have a binding (e.g. bound to M-TAB,
>which is now unused) to cycle backwards. Is there such a binding
>already?
There's reverse-menu-complete.
-zefram
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reverse menu-complete?
1996-06-12 20:27 ` Zefram
@ 1996-06-13 8:08 ` Hrvoje Niksic
0 siblings, 0 replies; 4+ messages in thread
From: Hrvoje Niksic @ 1996-06-13 8:08 UTC (permalink / raw)
To: ZSH Workers Mailing List
Zefram (A.Main@dcs.warwick.ac.uk) wrote:
> There's reverse-menu-complete.
Thanks. It works perfectly. Why isn't it bound by default, e.g. to
\e\t?
--
hniksic@srce.hr | Student of electrical engineering
hniksic@fly.cc.fer.hr | University of Zagreb, Croatia
------------------------------------------------------------------
The IDIOT. Usually a cretin, morpohodite, or old COBOL programmer
selected to be the system administrator by a committee of cretins,
morphodites, and old COBOL programmers.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reverse menu-complete?
1996-06-12 19:51 Reverse menu-complete? Hrvoje Niksic
1996-06-12 20:27 ` Zefram
@ 1996-06-12 20:35 ` Barton E. Schaefer
1 sibling, 0 replies; 4+ messages in thread
From: Barton E. Schaefer @ 1996-06-12 20:35 UTC (permalink / raw)
To: Hrvoje Niksic, ZSH Workers Mailing List
On Jun 12, 9:51pm, Hrvoje Niksic wrote:
} Subject: Reverse menu-complete?
}
} Is there a way to go one menu-completion backward?
Yeah; I use this:
setopt automenu
bindkey '^X\t' accept-and-menu-complete
bindkey '\e\t' reverse-menu-complete
TAB goes forward; if I accidentally tab too often, ESC TAB backs up
without screwing up the cycle, and then I can C-x TAB to grab that
completion and continue the cycle where I left off.
--
Bart Schaefer Vice President, Technology, Z-Code Software
schaefer@z-code.com Division of NetManage Corporation
http://www.well.com/www/barts http://www.ncdsoft.com/ZMail/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1996-06-13 8:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-12 19:51 Reverse menu-complete? Hrvoje Niksic
1996-06-12 20:27 ` Zefram
1996-06-13 8:08 ` Hrvoje Niksic
1996-06-12 20:35 ` Barton E. Schaefer
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).