[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-goggles 87722a5b46 210/225: Add hint for `D`
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-goggles 87722a5b46 210/225: Add hint for `D` |
Date: |
Wed, 12 Jan 2022 08:59:09 -0500 (EST) |
branch: elpa/evil-goggles
commit 87722a5b467714531dc3e2177d76beb326dfcf21
Author: Evgeni Kolev <evgenysw@gmail.com>
Commit: Evgeni Kolev <evgenysw@gmail.com>
Add hint for `D`
---
evil-goggles.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/evil-goggles.el b/evil-goggles.el
index 8741cc2e20..cd5b09a64c 100644
--- a/evil-goggles.el
+++ b/evil-goggles.el
@@ -369,6 +369,16 @@ which take BEG and END as their second and third
arguments."
evil-goggles-enable-delete "If non-nil, enable delete support"
evil-goggles-delete-face "Face for delete action")
+(defun evil-goggles--delete-line-advice (beg end &rest _)
+ "Advice for `evil-delete-line'.
+
+BEG and END are the argumenets to the original functions."
+ (let ((beg (or beg (point)))
+ (end (or end (line-end-position))))
+ (when (and (called-interactively-p 'interactive)
+ (evil-goggles--show-p beg end))
+ (evil-goggles--show-blocking-hint beg end))))
+
;;; yank
(evil-goggles--define-switch-and-face
@@ -516,6 +526,7 @@ Argument YANK-HANDLER is the yank hanler."
(defvar evil-goggles--commands
'((evil-delete :face evil-goggles-delete-face
:switch evil-goggles-enable-delete :advice
evil-goggles--generic-blocking-advice)
+ (evil-delete-line :face evil-goggles-delete-face
:switch evil-goggles-enable-delete :advice
evil-goggles--delete-line-advice)
(evil-yank :face evil-goggles-yank-face
:switch evil-goggles-enable-yank :advice
evil-goggles--generic-async-advice)
(evil-change :face evil-goggles-change-face
:switch evil-goggles-enable-change :advice
evil-goggles--generic-blocking-advice)
(evil-change-line :face evil-goggles-change-face
:switch evil-goggles-enable-change :advice
evil-goggles--generic-blocking-advice)
- [nongnu] elpa/evil-goggles ea0102bcf5 133/225: Use "post" hint when commenting, (continued)
- [nongnu] elpa/evil-goggles ea0102bcf5 133/225: Use "post" hint when commenting, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 3f6dd85657 151/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 5bd77428e3 142/225: Cleanup internal API for showing a vertical hint once, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles c515477fd4 160/225: Clarify docs for evil-goggles-async-duration and evil-goggles-blocking-duration, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 674a1be5aa 188/225: Merge branch 'hint-only-when-command-is-interactive'. Close #18, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 946598059f 204/225: Fix compilation warnings, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles b756edf31e 182/225: Show hint on u/redo after inserting text with "O", ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 6d2ce52faa 200/225: Add hint for `m`, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 8aa26e9671 205/225: CI: run package-lint, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 77a8bb1785 207/225: Update README, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 87722a5b46 210/225: Add hint for `D`,
ELPA Syncer <=
- [nongnu] elpa/evil-goggles d7876e6566 218/225: Drop unnecessary helper macro, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 636b263361 215/225: Make async overlay cleanup more robust, without using pre-command-hook, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 12cfb80230 104/225: Use separate config, face and advice for nerd-commenter and commentary. Refs #13, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 75d124851f 156/225: Update README.md, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d4b3d873dc 155/225: Update CI setup to run evil's tests unaltered, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 761abb7b2f 145/225: Hint duration should be configured via three variables, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles f282263af4 120/225: Show visual hint after shift left/right, not before #7, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 2932d91a6c 129/225: Remove deprecated functions, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles d3802c500f 141/225: Rename function with-no-hint => with-disabled-hint, ELPA Syncer, 2022/01/12
- [nongnu] elpa/evil-goggles 888f064624 130/225: Add docstrings, ELPA Syncer, 2022/01/12