[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape c80afe7335 099/133: Handle minibuffer in emacs
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-escape c80afe7335 099/133: Handle minibuffer in emacs-state as well |
Date: |
Wed, 3 Jan 2024 21:59:56 -0500 (EST) |
branch: elpa/evil-escape
commit c80afe73355b511ab1e449296776ad8f1bbc9ae0
Author: sbenner <sylvain.benner@ubisoft.com>
Commit: sbenner <sylvain.benner@ubisoft.com>
Handle minibuffer in emacs-state as well
---
evil-escape.el | 18 ++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)
diff --git a/evil-escape.el b/evil-escape.el
index a9b8fa7342..27f9a04a0a 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -5,7 +5,7 @@
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; Keywords: convenience editing evil
;; Created: 22 Oct 2014
-;; Version: 3.10
+;; Version: 3.11
;; Package-Requires: ((emacs "24") (evil "1.0.9") (cl-lib "0.5"))
;; URL: https://github.com/syl20bnr/evil-escape
@@ -230,13 +230,15 @@ with a key sequence."
(defun evil-escape--escape-emacs-state ()
"Return the function to escape from emacs state."
- (cond ((string-match "magit" (symbol-name major-mode))
- 'evil-escape--escape-with-q)
- ((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
- ((eq 'emoji-cheat-sheet-plus-buffer-mode major-mode) 'kill-this-buffer)
- ((eq 'paradox-menu-mode major-mode) 'evil-escape--escape-with-q)
- ((eq 'gist-list-menu-mode major-mode) 'quit-window)
- (t 'evil-normal-state)))
+ (cond
+ ((bound-and-true-p isearch-mode) 'isearch-abort)
+ ((window-minibuffer-p) 'abort-recursive-edit)
+ ((string-match "magit" (symbol-name major-mode))
'evil-escape--escape-with-q)
+ ((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
+ ((eq 'emoji-cheat-sheet-plus-buffer-mode major-mode) 'kill-this-buffer)
+ ((eq 'paradox-menu-mode major-mode) 'evil-escape--escape-with-q)
+ ((eq 'gist-list-menu-mode major-mode) 'quit-window)
+ (t 'evil-normal-state)))
(defun evil-escape--first-key ()
"Return the first key string in the key sequence."
- [nongnu] elpa/evil-escape fd633a9ffb 093/133: Attempt 2 at fixing evil-repeat, (continued)
- [nongnu] elpa/evil-escape fd633a9ffb 093/133: Attempt 2 at fixing evil-repeat, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 3c335a5709 119/133: Bump version to 3.16, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape c23a84de99 085/133: Handle error in evil-escape-pre-command-hook, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 84e3166473 105/133: Add support for excluding evil states, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape aa3e64af5d 097/133: Add support for ibuffer, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 32fec964f8 090/133: Fix evil-repeat problem, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape d7f9940227 078/133: Fallback to evil-escape--escape-normal-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 88b2cfbb38 128/133: Update url in commentary, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 7966f4b1be 084/133: Add cl-lib dependency and provide a initial value to reduce., ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape d53c8930e8 091/133: Improve evil-repeat-info support but not quite right, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape c80afe7335 099/133: Handle minibuffer in emacs-state as well,
ELPA Syncer <=
- [nongnu] elpa/evil-escape 533e8a5649 095/133: Update README and bump to 3.10, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 5e7a4c873e 107/133: Add support for nil evil-escape-key-sequence, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 58ec625a94 104/133: custom handling for deft causes duplicate inserts, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape 73b30bfd91 116/133: Use string-match-p over string-match, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape ddb2348b40 073/133: Bump version to 3.02, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape ce6982f7ce 125/133: Fix indentation, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape f71394b38a 132/133: Add support for treemacs (#4), ELPA Syncer, 2024/01/03