From: Bart Schaefer <schaefer@brasslantern.com>
To: "zsh-users@zsh.org" <zsh-users@zsh.org>
Subject: Re: Having a tough time setting up completion.
Date: Thu, 15 Dec 2011 19:46:49 -0800 [thread overview]
Message-ID: <111215194649.ZM7261@torch.brasslantern.com> (raw)
In-Reply-To: <CB0FCCE7.2D41%larrys@fb.com>
On Dec 16, 12:17am, Larry Schrof wrote:
}
} When we try adding a hyphenated string into the mix, things break:
}
} $ foo -<TAB> # completes incorrectly to
} $ foo add-property # This should have offered -x and --longword as
} completions
}
} Any suggestions?
I think you must have subtly misplaced a quote mark, or have an unexpected
value in matcher-list, or some other zstyle we don't know about.
Here's what I get starting from "zsh -f" plus "compinit -D" plus Mikael's
compdef with add-property/delete/create appended to the array:
torch% foo <TAB>
add-property create fifty one three
and delete forth so two
torch% foo --<TAB>
torch% foo --longword
torch% foo -<TAB>
--longword -x -- something
I even tried "setopt completeinword" without the above changing. BUT:
If I both use my full configuration AND place the cursor BEFORE the
hyphen:
schaefer<504> foo <TAB>-
schaefer<504> foo add-property
There, matcher-list has kicked in and completed things where the part
before the hyphen is not empty. Are you sure that's not what is
happening to you?
prev parent reply other threads:[~2011-12-16 3:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-15 22:06 Larry Schrof
2011-12-15 22:54 ` Mikael Magnusson
2011-12-16 0:17 ` Larry Schrof
2011-12-16 3:46 ` Bart Schaefer [this message]
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=111215194649.ZM7261@torch.brasslantern.com \
--to=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/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).