[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inline completion preview

From: Dmitry Gutov
Subject: Re: Inline completion preview
Date: Tue, 31 Oct 2023 00:49:59 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0

On 30/10/2023 19:43, Alexander Adolf wrote:
Dmitry Gutov <dmitry@gutov.dev> writes:

On 30/10/2023 14:42, Alexander Adolf wrote:
Also company works on TTY Emacs out of the box, and I think Corfu
doesn't.  More stuff to add in.
Corfu works with TTY Emacs of of the box, too.

Are you sure you don't have corfu-terminal installed?

Quoting from the corfu readme [1]:
---------------------------- Begin Quote -----------------------------
NOTE: Corfu uses child frames to show the popup and falls back to the
default setting of the completion-in-region-function on non-graphical
displays. If you want to use Corfu in the terminal, install the package
corfu-terminal, which provides an alternative overlay-based display.
----------------------------- End Quote ------------------------------

Thus, there is a fallback behaviour of corfu on TTYs, and you ar enot
loosing any completion _semantics_ in such a case.

This is clearly not comparable behavior for terminal users.

Result with company:

         The quick brown fox jum
                                | candidate 1 |
         * BIG FONT HEADING      | CANDIDATE 2    |
           BIG FONT HEADING      | CANDIDATE 2    |
                                | candidate 3 |
                                | candidate 4 |

You can try out this branch:

Or you could adopt the child frame technique from corfu to avoid the
problem occurring in the first place?

The GUI-only users are free to install company-posframe, with similar benefits. It's not in GNU ELPA, though: still collecting the last copyright assignment signature.

But the aforementioned branch (PR) should also improve behavior for terminal users, though, where the characters can also be more than 1 column wide (usually 2, in such case).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]