[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy-hydra 7f88b67 345/395: counsel.el (counsel-highligh
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy-hydra 7f88b67 345/395: counsel.el (counsel-highlight-with-face): New action for counsel-faces |
Date: |
Thu, 25 Feb 2021 08:32:35 -0500 (EST) |
branch: externals/ivy-hydra
commit 7f88b67b3a220ce7dbabfe956ebe8a2b6d16573b
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
counsel.el (counsel-highlight-with-face): New action for counsel-faces
Fixes #2651
---
counsel.el | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/counsel.el b/counsel.el
index 484a5aa..6cfb652 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1188,6 +1188,15 @@ back to the face of the character after point, and
finally the
"Customize face with NAME in another window."
(customize-face-other-window (intern name)))
+(declare-function hi-lock-set-pattern "hi-lock")
+(defun counsel-highlight-with-face (face)
+ "Highlight thing-at-point with FACE."
+ (hi-lock-mode 1)
+ (let ((thing (ivy-thing-at-point)))
+ (when (use-region-p)
+ (deactivate-mark))
+ (hi-lock-set-pattern (regexp-quote thing) face)))
+
(ivy-set-actions
'counsel-describe-face
'(("c" counsel-customize-face "customize")
@@ -1232,7 +1241,8 @@ selected face."
(ivy-set-actions
'counsel-faces
'(("c" counsel-customize-face "customize")
- ("C" counsel-customize-face-other-window "customize other window")))
+ ("C" counsel-customize-face-other-window "customize other window")
+ ("h" counsel-highlight-with-face "highlight")))
;;* Git
;;** `counsel-git'
- [elpa] externals/ivy-hydra d951004 336/395: doc: Conflate installation description, (continued)
- [elpa] externals/ivy-hydra d951004 336/395: doc: Conflate installation description, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3a2c5b2 300/395: counsel.el: Mark obsolete the functions that can be replaced by complete-symbol, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3ecf828 344/395: ivy.el (ivy-switch-buffer): Don't lose the current index, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 01d9f55 343/395: ivy.el: Fix minibuffer highlighter selction, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra d4fd99f 316/395: Respect original default choice when deduplicating extra actions, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 62815d9 311/395: Makefile: Compile ivy-avy.el, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7c0796f 333/395: ivy.el (ivy-shrink-after-dispatching): Resize only when in minibuffer, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra a007ba6 334/395: Fix for counsel-grep-like-occur, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra eb53165 313/395: ivy.el (ivy--compute-extra-actions): Dedup on key, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 5d52d4b 352/395: Call isearch-filter-predicate instead of isearch-range-invisible, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 7f88b67 345/395: counsel.el (counsel-highlight-with-face): New action for counsel-faces,
Basil L. Contovounesios <=
- [elpa] externals/ivy-hydra d52ee0a 301/395: ivy.el (ivy-completion-in-region): Restrict new behavior to elisp code, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 3b1737c 361/395: * counsel.el (counsel-linux-app): Improve prompt., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 1723799 368/395: Fix M-o 'Wrong type argument: characterp' error, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra fc2801f 367/395: `counsel-find-file': open file in foreground, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ae9b121 366/395: Avoid face blending errors when loading swiper.el, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 796220b 357/395: ivy.el (ivy-alt-done): Extend to programmed completion, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 911a360 365/395: Consistently use modern face spec syntax, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 74f411d 355/395: Remove Emacs 28 workaround in counsel-descbinds, Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra 778d8bf 363/395: * counsel.el (counsel-org-files): Simplify regexp., Basil L. Contovounesios, 2021/02/25
- [elpa] externals/ivy-hydra ab36ccb 364/395: * counsel.el (counsel-org-files): Fix regexp., Basil L. Contovounesios, 2021/02/25