zsh-users
 help / color / mirror / code / Atom feed
From: Vincent Bernat <bernat@luffy.cx>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: Limiting height of completion menu
Date: Mon, 21 Dec 2020 13:22:40 +0100	[thread overview]
Message-ID: <m3y2hr8i27.fsf@luffy.cx> (raw)
In-Reply-To: <CAH+w=7bbCm+gG+unfnVtMonhdLSfbEQqjkr=sSRtXBzgqYq6vw@mail.gmail.com> (Bart Schaefer's message of "Sun, 20 Dec 2020 13:55:45 -0800")

 ❦ 20 décembre 2020 13:55 -08, Bart Schaefer:

>> > half-lines () {
>> >         print -n $(tput sc)
>>
>> Or if tput is to cover the cases where zsh/terminfo is not
>> included:
>>
>>   tput sc
>
> That doesn't actually work as expected; for some reason running "tput"
> directly from the current shell causes a zle reset and the bug
> returns, probably due to some sort of handling of the forked job.
> Hiding it in a $(...) subshell prevents that (but the whole
> formulation still has other problems).

Some completions also reset the state. File completion is working but
for example, apt completion is resetting the state (maybe because there
is some fork involved to grab the information).

I may have better luck proposing a patch to Zsh to be able to have a
maximum height for the completion menu.
-- 
The lunatic, the lover, and the poet,
Are of imagination all compact...
		-- Wm. Shakespeare, "A Midsummer Night's Dream"


      reply	other threads:[~2020-12-21 12:23 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-19 18:53 Vincent Bernat
2020-12-19 20:30 ` Bart Schaefer
2020-12-19 21:05   ` Vincent Bernat
2020-12-19 21:38   ` Vincent Bernat
2020-12-19 22:03     ` Bart Schaefer
2020-12-19 22:12       ` Vincent Bernat
2020-12-19 22:15         ` Bart Schaefer
2020-12-19 22:24           ` Vincent Bernat
2020-12-19 23:26             ` Bart Schaefer
2020-12-19 23:30               ` Vincent Bernat
2020-12-20 14:41           ` Stephane Chazelas
2020-12-20 21:55             ` Bart Schaefer
2020-12-21 12:22               ` Vincent Bernat [this message]

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=m3y2hr8i27.fsf@luffy.cx \
    --to=bernat@luffy.cx \
    --cc=schaefer@brasslantern.com \
    --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).