[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape 1c4b0efc06 100/133: Allow evil-escape in norma
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/evil-escape 1c4b0efc06 100/133: Allow evil-escape in normal state if it makes sense |
|
Date: |
Wed, 3 Jan 2024 21:59:56 -0500 (EST) |
branch: elpa/evil-escape
commit 1c4b0efc067c0dd3e48102e3028d8bca15ef3fc9
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Allow evil-escape in normal state if it makes sense
i.e. when ESC is not bound to evil-force-normal-state
It is now possible to go back to evilified state from normal state with
fd.
---
evil-escape.el | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/evil-escape.el b/evil-escape.el
index 27f9a04a0a..47485b3568 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -180,7 +180,7 @@ with a key sequence."
(equal (this-command-keys) (evil-escape--second-key))
(char-equal evt fkey))))
(evil-repeat-stop)
- (setq this-command (evil-escape-func)))
+ (when (evil-escape-func) (setq this-command (evil-escape-func))))
((null evt))
(t (setq unread-command-events
(append unread-command-events (list evt)))))))))
@@ -196,7 +196,9 @@ with a key sequence."
(bound-and-true-p isearch-mode)
(eq 'ibuffer-mode major-mode)
(and (fboundp 'helm-alive-p) (helm-alive-p))
- (not (eq evil-state 'normal)))
+ (or (not (eq 'normal evil-state))
+ (not (eq 'evil-force-normal-state
+ (lookup-key evil-normal-state-map [escape])))))
(not (memq major-mode evil-escape-excluded-major-modes))
(or (not evil-escape-enable-only-for-major-modes)
(memq major-mode evil-escape-enable-only-for-major-modes))
@@ -213,7 +215,8 @@ with a key sequence."
((and (fboundp 'helm-alive-p) (helm-alive-p)) 'helm-keyboard-quit)
((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
((bound-and-true-p isearch-mode) 'isearch-abort)
- ((window-minibuffer-p) 'abort-recursive-edit)))
+ ((window-minibuffer-p) 'abort-recursive-edit)
+ (t (lookup-key evil-normal-state-map [escape]))))
(defun evil-escape--escape-motion-state ()
"Return the function to escape from motion state."
- [nongnu] elpa/evil-escape 67843e9dd4 041/133: Fix recursive `f` input during isearch in certain buffers, (continued)
- [nongnu] elpa/evil-escape 67843e9dd4 041/133: Fix recursive `f` input during isearch in certain buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e78ffcdbeb 036/133: Explicitly disable any running transient map, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape e556c7a6b6 057/133: Fix line highlight flicker on escape, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 05d9e5fc80 052/133: Don't break deft-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 457386c7bc 043/133: Generalize passthrough, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6c6379c19b 065/133: Update README for 3.0, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bc054dbe1e 059/133: Add documentation to generated wrapper functions, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1488a2c9c3 037/133: When replaying macro, pass shadow func, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape f8fe5c98d2 083/133: Add `evil-escape-inhibit-functions`, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b0d033794c 089/133: Fix typo in docstring of evil-escape-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 1c4b0efc06 100/133: Allow evil-escape in normal state if it makes sense,
ELPA Syncer <=
- [nongnu] elpa/evil-escape bb6f6c254a 069/133: Fix isearch support, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape bf41c9e797 068/133: Fix typo in docstring (thanks to person808), ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6790f87d87 081/133: Fix unexpected escape when unordered-key-sequence is non nil, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 5c5b1a655c 076/133: Add new defcustom evil-escape-enable-only-for-major-modes, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 17023f4ce4 072/133: Correctly revert modified status of the buffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fbf7e6ee35 113/133: Add support for evil-multiedit, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 6a9d60c733 087/133: Update README TOC, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape fccebfe601 098/133: Add support for emoji-cheat-sheet-plus-buffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 09e0622e16 109/133: Add support for image-mode, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape af1a6eb532 110/133: Fix display flickering when using 'global-hl-line-mode', ELPA Syncer, 2024/01/03