zsh-workers
 help / color / mirror / code / Atom feed
From: Julius Plenz <julius@plenz.com>
To: zsh-workers@zsh.org
Subject: Issue with insert-sections style
Date: Thu, 9 Sep 2010 16:50:15 +0200	[thread overview]
Message-ID: <20100909145014.GL2506@plenz.com> (raw)

Hi there,

I discovered an issue with the insert-sections style for manual
pages (which, by the way, is not documented anywhere).

If you use the _oldlist completer together with the no_list_ambiguous
option the following bug occurs: When you have entered a man page name
with a prefix that can only be expanded to man pages from one section,
that section number gets inserted when drawing the listing, and then
*again* when the user enters menu completion.

Provided below is a minimal zshrc to reproduce the bug. An example
which will work on most systems might be "man pam_li<Tab><Tab>":

  # minimal setup
  autoload -U compinit && compinit
  zmodload -i zsh/complist
  bindkey '^i' complete-word
  zstyle ':completion:*' menu select # if you like
  zstyle ':completion:*' group-name ''
  zstyle ':completion:*:descriptions' format 'completing %B%d%b'
  zstyle ':completion:*:manuals' separate-sections true

  # make insertion possible
  setopt extendedglob
  zstyle ':completion:*:manuals.(^1*)' insert-sections true

  # cause double-insertion
  zstyle ':completion:*' completer _oldlist _complete
  setopt nolistambiguous

Cheers,
Julius


             reply	other threads:[~2010-09-09 14:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-09 14:50 Julius Plenz [this message]
2010-09-09 16:34 ` Bart Schaefer
2010-09-09 18:04 ` Greg Klanderman
2010-09-09 19:00   ` Peter Stephenson
2010-09-10 13:50     ` Greg Klanderman

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=20100909145014.GL2506@plenz.com \
    --to=julius@plenz.com \
    --cc=zsh-workers@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).