zsh-users
 help / color / mirror / code / Atom feed
* Formatting issues with completion grouping.. help?
@ 2011-05-18 16:19 Jay 'Whip' Grizzard
  2011-05-18 16:28 ` Mikael Magnusson
  0 siblings, 1 reply; 3+ messages in thread
From: Jay 'Whip' Grizzard @ 2011-05-18 16:19 UTC (permalink / raw)
  To: zsh-users

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


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

* Re: Formatting issues with completion grouping.. help?
  2011-05-18 16:19 Formatting issues with completion grouping.. help? Jay 'Whip' Grizzard
@ 2011-05-18 16:28 ` Mikael Magnusson
  2011-05-18 16:40   ` Jay 'Whip' Grizzard
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Magnusson @ 2011-05-18 16:28 UTC (permalink / raw)
  To: Jay 'Whip' Grizzard; +Cc: zsh-users

On 18 May 2011 18:19, Jay 'Whip' Grizzard <elfchief-zsh@lupine.org> wrote:
> 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.
[...]
> 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$ exec /bin/zsh

You can just use zsh -f instead.

> [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"
[...]
> So... guys... what am I missing? Help? Thanks! :)

zstyle ':completion:*' group-name ''

-- 
Mikael Magnusson


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

* Re: Formatting issues with completion grouping.. help?
  2011-05-18 16:28 ` Mikael Magnusson
@ 2011-05-18 16:40   ` Jay 'Whip' Grizzard
  0 siblings, 0 replies; 3+ messages in thread
From: Jay 'Whip' Grizzard @ 2011-05-18 16:40 UTC (permalink / raw)
  To: Mikael Magnusson; +Cc: zsh-users

> > [grizzard@zash]~% zstyle ':completion:*:matches' group 'yes'
> [...]
> > So... guys... what am I missing? Help? Thanks! :)
> 
> zstyle ':completion:*' group-name ''

And indeed, this fixes things.

Is this something that's changed in the last few years? The snippets
I was using were from a zshrc that I had been using (and was working)
probably 7 or 8 years ago...

Thanks!

-jay


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

end of thread, other threads:[~2011-05-18 16:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-18 16:19 Formatting issues with completion grouping.. help? Jay 'Whip' Grizzard
2011-05-18 16:28 ` Mikael Magnusson
2011-05-18 16:40   ` Jay 'Whip' Grizzard

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