zsh-users
 help / color / mirror / code / Atom feed
From: Jay 'Whip' Grizzard <elfchief-zsh@lupine.org>
To: zsh-users@zsh.org
Subject: Formatting issues with completion grouping.. help?
Date: Wed, 18 May 2011 09:19:38 -0700	[thread overview]
Message-ID: <20110518161938.GB10668@zash.lupine.org> (raw)

Hi zsh users. I have a problem... I've consulted google, I've consulted
the mailing list archives, I've consulted the docs, and I'm stumped. I
haven't seen anyone else mention this, so I'm assuming I'm doing
something wrong, but I can't figure out what it is.

The really short version is that when I turn on grouping of completion
results, the response puts the headers for the groups all together at
the top of the result, and then the results intermingled below that. e.g:

[grizzard@zash]~% sh u<tab>
---- external command
---- builtin command
---- reserved word
ucd5820stat                until
udev                       unwrapdiff
udev.static                unzip
udev_volume_id             unzipsfx
udevd                      up2date
[etc]


I narrowed this down to the most straightforward test case I could, using
an empty home directory (so no zsh config) on a pretty bare system and
a fresh environment-cleansing su:

bash$ su - grizzard

bash$ pwd
/home/grizzard

bash$ ls -al                     
total 8
drwxr-xr-x  2 grizzard root 4096 May 18 09:11 .
drwxr-xr-x  7 root     root 4096 May 18 07:34 ..

bash$ exec /bin/zsh

[grizzard@zash]~% autoload -U compinit
[grizzard@zash]~% compinit
[grizzard@zash]~% setopt auto_list bash_auto_list complete_aliases complete_in_word list_types
[grizzard@zash]~% zstyle ':completion:*:matches' group 'yes'
[grizzard@zash]~% zstyle ':completion:*:descriptions' format "%B---- %d%b"

[grizzard@zash]~% sh u<tab>
---- external command
---- builtin command
---- reserved word
ucd5820stat                until
udev                       unwrapdiff
udev.static                unzip
udev_volume_id             unzipsfx
udevd                      up2date
[etc]


This happens on several different systems with several different zsh
builds, but here's the vitals from one of them:

[grizzard@zash]~% zsh --version
zsh 4.2.0 (x86_64-redhat-linux-gnu)

[grizzard@zash]~% cat /etc/redhat-release 
Red Hat Enterprise Linux AS release 4 (Nahant Update 8)

[grizzard@zash]~% echo $TERM
xterm

(also happens with TERM=vt100 and TERM=dumb)



And another system it happens on:

[grizzard@wherever]~% zsh --version
zsh 4.3.10 (i386-redhat-linux-gnu)

[grizzard@wherever]~% cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.0 (Santiago)



So... guys... what am I missing? Help? Thanks! :)

-jay


             reply	other threads:[~2011-05-18 16:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-18 16:19 Jay 'Whip' Grizzard [this message]
2011-05-18 16:28 ` Mikael Magnusson
2011-05-18 16:40   ` Jay 'Whip' Grizzard

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=20110518161938.GB10668@zash.lupine.org \
    --to=elfchief-zsh@lupine.org \
    --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).