zsh-workers
 help / color / mirror / code / Atom feed
* Issue with insert-sections style
@ 2010-09-09 14:50 Julius Plenz
  2010-09-09 16:34 ` Bart Schaefer
  2010-09-09 18:04 ` Greg Klanderman
  0 siblings, 2 replies; 5+ messages in thread
From: Julius Plenz @ 2010-09-09 14:50 UTC (permalink / raw)
  To: zsh-workers

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-09-10 13:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-09 14:50 Issue with insert-sections style Julius Plenz
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

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).