I am trying to get rid of the background in candidates that are not selected. Currently my Org buffers have code blocks highlighted with a background set on the org-block
face. When listing candidates for instance with consult-line
, the background for lines in Org blocks also appears in the result buffer.
Selecting a line with no background set:
Selecting a line with background set (org-block
)
I've tried adding a custom highlight function but the returned candidate string doesn't seem to use properties to render colors in the candidate buffer.
(use-package selectrum :custom (selectrum-extend-current-candidate-highlight t) (selectrum-fix-vertical-window-height t) (selectrum-highlight-candidates-function 'me/selectrum-candidates-identity-no-background)) (defun me/selectrum-candidates-identity-no-background (_input candidates) "Return CANDIDATES stripped of their background." (mapcar (lambda (candidate) (let* ((properties (get-text-property 0 'face candidate)) (face (plist-put properties :background 'unspecified))) (put-text-property 0 (length candidate) 'face face candidate) candidate))
What am I missing?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4