Disable highlighting in ccr/consult-history
This commit is contained in:
parent
b196807347
commit
c99617dc84
1 changed files with 9 additions and 7 deletions
16
init.el
16
init.el
|
@ -596,13 +596,15 @@
|
||||||
(let* ((history (delete-dups (when (> (ring-size eshell-history-ring) 0)
|
(let* ((history (delete-dups (when (> (ring-size eshell-history-ring) 0)
|
||||||
(ring-elements eshell-history-ring))))
|
(ring-elements eshell-history-ring))))
|
||||||
(history-highlighted (mapcar #'(lambda (cmd)
|
(history-highlighted (mapcar #'(lambda (cmd)
|
||||||
(with-temp-buffer
|
(with-temp-buffer
|
||||||
(insert cmd)
|
(text-mode)
|
||||||
(forward-line 0)
|
(insert cmd)
|
||||||
(eshell-syntax-highlighting--parse-and-highlight 'command (point-max))
|
(forward-line 0)
|
||||||
(add-face-text-property (point-min) (point-max) '(:background nil))
|
;; FIXME it breaks trying to highlight commands like `cd /ssh:host:~'
|
||||||
(buffer-string)))
|
;; (eshell-syntax-highlighting--parse-and-highlight 'command (point-max))
|
||||||
history))
|
(add-face-text-property (point-min) (point-max) '(:background nil))
|
||||||
|
(buffer-string)))
|
||||||
|
history))
|
||||||
(command (completing-read
|
(command (completing-read
|
||||||
"Command: "
|
"Command: "
|
||||||
history-highlighted
|
history-highlighted
|
||||||
|
|
Reference in a new issue