From: "joel w. reed" <jreed@ddiworld.com>
To: zsh-workers@sunsite.dk
Subject: [PATCH]always show complete list
Date: Thu, 2 May 2002 14:42:57 -0400 [thread overview]
Message-ID: <20020502184257.GA29797@ddiworld.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 655 bytes --]
this patch adds a config option LISTALWAYS that if set, makes
zsh-4.0.4 always show the complete list if the completion
resulted in only a partial completion (to help the user decide
what to type next w/o the need for another TAB).
lets say i have a directory with 2 entries:
opal-3.0.4
opal-4.0
my patched zsh will show the following after i type 'cd oTAB'
(%:~/src) cd opal-
opal-3.0.4/ opal-4.0/
zsh is great. thanks.
jr
--
------------------------------------------------------------
Joel W. Reed 412-257-3881
--------All the simple programs have been written.----------
[-- Attachment #1.2: LISTALWAYS.patch --]
[-- Type: text/plain, Size: 1396 bytes --]
--- Src/options.c.orig Mon Jun 25 12:31:19 2001
+++ Src/options.c Tue Apr 30 15:16:15 2002
@@ -146,6 +146,7 @@ static struct optname optns[] = {
{NULL, "kshglob", OPT_EMULATE|OPT_KSH, KSHGLOB},
{NULL, "kshoptionprint", OPT_EMULATE|OPT_KSH, KSHOPTIONPRINT},
{NULL, "kshtypeset", OPT_EMULATE|OPT_KSH, KSHTYPESET},
+{NULL, "listalways", OPT_ALL, LISTALWAYS},
{NULL, "listambiguous", OPT_ALL, LISTAMBIGUOUS},
{NULL, "listbeep", OPT_ALL, LISTBEEP},
{NULL, "listpacked", 0, LISTPACKED},
--- Src/Zle/compresult.c.orig Mon May 28 07:42:00 2001
+++ Src/Zle/compresult.c Tue Apr 30 15:17:48 2002
@@ -806,9 +806,9 @@ do_ambiguous(void)
* prefix was inserted, return now, bypassing the list-displaying *
* code. On the way, invalidate the list and note that we don't *
* want to enter an AUTO_MENU imediately. */
- if ((uselist == 3 ||
+ if (!isset(LISTALWAYS) && ((uselist == 3 ||
(!uselist && isset(BASHAUTOLIST) && isset(LISTAMBIGUOUS))) &&
- la) {
+ la)) {
int fc = fromcomp;
invalidatelist();
--- Src/zsh.h.orig Tue Apr 30 15:34:12 2002
+++ Src/zsh.h Tue Apr 30 15:15:29 2002
@@ -1384,6 +1384,7 @@ enum {
KSHGLOB,
KSHOPTIONPRINT,
KSHTYPESET,
+ LISTALWAYS,
LISTAMBIGUOUS,
LISTBEEP,
LISTPACKED,
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
next reply other threads:[~2002-05-02 18:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-02 18:42 joel w. reed [this message]
2002-05-02 21:48 ` Hans Dieter Pearcey
2002-05-02 23:20 ` Bart Schaefer
2002-05-03 3:08 ` Hans Dieter Pearcey
2002-05-03 4:07 ` Bart Schaefer
2002-05-03 0:52 ` joel w. reed
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=20020502184257.GA29797@ddiworld.com \
--to=jreed@ddiworld.com \
--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).