[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/corfu cf7c6c9 05/14: Do not show annotation in candidat
From: |
Protesilaos Stavrou |
Subject: |
[elpa] externals/corfu cf7c6c9 05/14: Do not show annotation in candidate preview (See #2) |
Date: |
Sat, 17 Apr 2021 10:25:42 -0400 (EDT) |
branch: externals/corfu
commit cf7c6c93220683bbdac9ae348349523da10fcd06
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Do not show annotation in candidate preview (See #2)
---
corfu.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/corfu.el b/corfu.el
index c667a32..f2db2ff 100644
--- a/corfu.el
+++ b/corfu.el
@@ -390,22 +390,20 @@
(last (min (+ start corfu-count) corfu--total))
(bar (ceiling (* corfu-count corfu-count) corfu--total))
(lo (min (- corfu-count bar 1) (floor (* corfu-count start)
corfu--total)))
- (candidates (thread-last (seq-subseq corfu--candidates start last)
- (funcall corfu--highlight)
- (corfu--annotate metadata)
- (mapcar #'corfu--format-candidate))))
+ (cands (funcall corfu--highlight (seq-subseq corfu--candidates
start last)))
+ (ann-cands (mapcar #'corfu--format-candidate (corfu--annotate
metadata cands))))
(when (>= curr 0)
(let ((ov (make-overlay beg end nil t t)))
(overlay-put ov 'priority 1000)
(overlay-put ov 'window (selected-window))
- (overlay-put ov 'display (nth curr candidates))
+ (overlay-put ov 'display (nth curr cands))
(push ov corfu--overlays)))
;; Nonlinearity at the end and the beginning
(when (/= start 0)
(setq lo (max 1 lo)))
(when (/= last corfu--total)
(setq lo (min (- corfu-count bar 2) lo)))
- (corfu--popup beg curr (and (> corfu--total corfu-count) lo) bar
candidates)))))
+ (corfu--popup beg curr (and (> corfu--total corfu-count) lo) bar
ann-cands)))))
(defun corfu--post-command-hook ()
"Refresh Corfu after last command."
- [elpa] externals/corfu 53ecf48 03/14: corfu-show-location/documentation: Add error messages, (continued)
- [elpa] externals/corfu 53ecf48 03/14: corfu-show-location/documentation: Add error messages, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 4e58a71 04/14: Minor optimizations, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu ff1579e 11/14: README: Add link to ELPA, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 2ebd35f 12/14: corfu-map: Bind M-n and M-p, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 4c2c997 14/14: Version 0.2, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 41eb724 02/14: Ignore corfu-abort if documentation/location window is shown, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 82474fb 01/14: Fix typo in corfu-minor-mode, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 7fcd09b 08/14: README: Update caveat, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 6e9b8ef 10/14: Add corfu-completion-styles, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 10660b4 07/14: corfu-first: Jump to the prompt if first candidate is selected, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu cf7c6c9 05/14: Do not show annotation in candidate preview (See #2),
Protesilaos Stavrou <=
- [elpa] externals/corfu cca1eaf 09/14: Extract corfu--move-prefix-candidates-to-front, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu 6e91059 06/14: Fix some face issues, add comment about face usage, Protesilaos Stavrou, 2021/04/17
- [elpa] externals/corfu a01d068 13/14: Do not colorize left border (See #6), Protesilaos Stavrou, 2021/04/17