ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Vitaly Ostanin <vyt@vzljot.ru>
To: community@altlinux.ru
Subject: [Comm] Re: [SUMMARY] zsh: coloured menu selection
Date: Mon, 11 Jul 2005 14:30:36 +0400
Message-ID: <42D24A4C.4050200@vzljot.ru> (raw)
In-Reply-To: <20050711100941.GF2909@immo.ru>

[-- Attachment #1: Type: text/plain, Size: 1599 bytes --]

Alexey I. Froloff пишет:
> * Vitaly Ostanin <vyt@> [050708 18:05]:
> 
>>Пытаюсь получить выбор вариантов автодополнения в zsh в виде меню
>>с подсветкой текущего варианта. Возможность такая в zsh вроде бы
>>есть:
>>http://zsh.sunsite.dk/Doc/Release/zsh_21.html#SEC146
> 
> Там есть такой апзац:
> 
> When using the completion system based on shell functions, the
> ( Ну прям как у нас --raorn)
> MENUSELECT parameter should not be used (like the ZLS_COLORS and
> ZLS_COLOURS parameters described above).  Instead, the menu style
> should be used with the select=... keyword.
> 
> 
>>Попробовал завести своими силами - чувствую, уже едет...
>>Кто-нибудь осилил?
> 
> Осилил.
> 
> Погуглил по "zsh menu selection example", нашёл:
> 
> http://grml.org/zsh/zsh-lovers.html
> 
> 
>>Добавил в ~/.zshrc
> 
> zmodload zsh/complist
> setopt menucomplete
> zstyle ':completion:*' menu yes select

Работает :) Это просто праздник какой-то :) Жаль только, что
недоступный пониманию простых смертных. Кстати, почему бы не
включить это в /etc/zshrc по умолчанию?

Продолжаем сказку о рыбаке и золотой рыбке :) При выбирании
пунктов меню некоторые варианты не умещаются в одну строку, и
выводятся в две строки. Меню при этом сдвигается на строку вниз.
При выбирании варианта, который умещается в одну строку, меню
сдвигается обратно на строку вверх. Скачет, короче, вверх-вниз -
неаккуратненько :)

А так всё классно, mc действительно отдыхает :) Пойду цвета
настраивать :) Спасибо!

<skipped/>

-- 
Regards, Vyt
mailto:  vyt@vzljot.ru
JID:     vyt@vzljot.ru


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 256 bytes --]

  reply	other threads:[~2005-07-11 10:30 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-08 14:04 [Comm] " Vitaly Ostanin
2005-07-08 14:22 ` [Comm] " Vitaly Ostanin
2005-07-11 10:09 ` [Comm] [SUMMARY] " Alexey I. Froloff
2005-07-11 10:30   ` Vitaly Ostanin [this message]
2005-07-11 10:46     ` [Comm] " Alexey I. Froloff
2005-07-11 12:56     ` Alexey I. Froloff
2005-07-11 14:51       ` [Comm] " Michael Shigorin
2005-07-11 14:55         ` Алексей Синицын
2005-07-11 10:34   ` [Comm] Re: [SUMMARY] " Vitaly Ostanin
2005-07-11 10:47     ` Alexey I. Froloff
2005-07-11 11:43       ` Vitaly Ostanin
2005-07-11 12:04         ` Alexey I. Froloff
2005-07-11 13:53           ` Vitaly Ostanin
2005-07-11 15:00             ` Alexey I. Froloff
2005-07-11 16:00               ` Vitaly Ostanin
2005-07-11 16:12                 ` Vitaly Ostanin
2005-07-12  9:59               ` Alexey I. Froloff
2005-07-12 10:40                 ` Vitaly Ostanin
2005-07-12 11:39                   ` Alexey I. Froloff
2005-07-12 12:42                     ` Vitaly Ostanin
2005-07-12 13:09                       ` Alexey I. Froloff
2005-07-12 13:31                         ` Vitaly Ostanin
2005-07-13  5:24                           ` Alexey I. Froloff
2005-07-13  9:04                             ` Vitaly Ostanin
2005-07-13  9:14                               ` Alexey I. Froloff
2005-07-13 10:34                                 ` Vitaly Ostanin
2005-07-13 10:47                                   ` Alexey I. Froloff
2005-07-13 10:56                                     ` Vitaly Ostanin
2005-07-13 11:18                                       ` Alexey I. Froloff
2005-07-13 12:05                                         ` Vitaly Ostanin
2005-07-12 12:45                     ` Grigory Fateyev
2005-07-11 12:53   ` [Comm] " Andrey Rahmatullin
2005-07-11 13:29     ` Alexey I. Froloff
2005-07-11 13:38       ` Andrey Rahmatullin
2005-07-11 13:56     ` Andrey Rahmatullin
2005-07-11 14:47   ` [Comm] [wiki] " Michael Shigorin
2005-07-12 14:26     ` Andrey Rahmatullin
2005-07-12 18:12       ` [Comm] Re: [wiki] zsh Michael Shigorin
2005-07-13  3:49         ` Andrey Rahmatullin
2005-07-13  5:30           ` Michael Shigorin
2005-07-12  4:18   ` [Comm] [SUMMARY] zsh: coloured menu selection Andrey Rahmatullin
2005-07-12  7:59     ` Alexey I. Froloff
2005-07-12  8:16       ` [Comm] " Vitaly Ostanin
2005-07-12  9:01         ` [Comm] " Michael Shigorin
2005-07-12  9:30         ` [Comm] Re: [SUMMARY] " Pavel N. Solovyov
2005-07-12  9:34           ` Alexey I. Froloff
2005-07-12 12:28             ` [Comm] " Michael Shigorin
2005-07-12 13:13               ` Alexey I. Froloff
2005-07-12 15:04                 ` Pavel N. Solovyov
2005-07-12 15:32                   ` Vitaly Ostanin
2005-07-13  1:59                     ` Pavel N. Solovyov
2005-07-13  5:29                       ` Michael Shigorin
2005-07-13  5:30                       ` Alexey I. Froloff
2005-07-13  5:34                         ` Michael Shigorin
2005-07-13  5:44                           ` Alexey I. Froloff
2005-07-13 16:23                             ` Pavel N. Solovyov
2005-07-13  5:22                   ` Alexey I. Froloff
2005-07-13  5:29                     ` Michael Shigorin
2005-07-12 14:04               ` Maxim Tyurin
2005-07-12 18:10                 ` Michael Shigorin
2005-07-12 18:55                   ` Maxim Tyurin
2005-07-12 19:01                     ` Michael Shigorin

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=42D24A4C.4050200@vzljot.ru \
    --to=vyt@vzljot.ru \
    --cc=community@altlinux.ru \
    /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

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git