[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-escape aa3e64af5d 097/133: Add support for ibuffer
|
From: |
ELPA Syncer |
|
Subject: |
[nongnu] elpa/evil-escape aa3e64af5d 097/133: Add support for ibuffer |
|
Date: |
Wed, 3 Jan 2024 21:59:56 -0500 (EST) |
branch: elpa/evil-escape
commit aa3e64af5d7f495872a9fad8ceb4cd1fedfe4e2a
Author: syl20bnr <sylvain.benner@gmail.com>
Commit: syl20bnr <sylvain.benner@gmail.com>
Add support for ibuffer
---
README.md | 1 +
evil-escape.el | 22 ++++++++++------------
2 files changed, 11 insertions(+), 12 deletions(-)
diff --git a/README.md b/README.md
index 6cf765343c..cf4fdb62a9 100644
--- a/README.md
+++ b/README.md
@@ -34,6 +34,7 @@ Press quickly `fd` (or the 2-keys sequence of your choice) to:
- abort evil ex command
- quit minibuffer
- abort isearch
+- quit ibuffer
- quit magit buffers
- quit help buffers
- quit apropos buffers
diff --git a/evil-escape.el b/evil-escape.el
index e89c094ee2..2c8e31a7b6 100644
--- a/evil-escape.el
+++ b/evil-escape.el
@@ -35,6 +35,7 @@
;; - abort evil ex command
;; - quit minibuffer
;; - abort isearch
+;; - quit ibuffer
;; - quit magit buffers
;; - quit help buffers
;; - quit apropos buffers
@@ -193,6 +194,7 @@ with a key sequence."
(and (not evil-escape-inhibit)
(or (window-minibuffer-p)
(bound-and-true-p isearch-mode)
+ (eq 'ibuffer-mode major-mode)
(and (fboundp 'helm-alive-p) (helm-alive-p))
(not (eq evil-state 'normal)))
(not (memq major-mode evil-escape-excluded-major-modes))
@@ -208,8 +210,8 @@ with a key sequence."
(defun evil-escape--escape-normal-state ()
"Return the function to escape from normal state."
(cond
- ((and (fboundp 'helm-alive-p) (helm-alive-p))
- 'helm-keyboard-quit)
+ ((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)))
@@ -219,13 +221,10 @@ with a key sequence."
((or (eq 'apropos-mode major-mode)
(eq 'help-mode major-mode)
(eq 'ert-results-mode major-mode)
- (eq 'ert-simple-view-mode major-mode))
- 'quit-window)
- ((eq 'undo-tree-visualizer-mode major-mode)
- 'undo-tree-visualizer-quit)
+ (eq 'ert-simple-view-mode major-mode)) 'quit-window)
+ ((eq 'undo-tree-visualizer-mode major-mode) 'undo-tree-visualizer-quit)
((and (fboundp 'helm-ag--edit-abort)
- (string-equal "*helm-ag-edit*" (buffer-name)))
- 'helm-ag--edit-abort)
+ (string-equal "*helm-ag-edit*" (buffer-name))) 'helm-ag--edit-abort)
((eq 'neotree-mode major-mode) 'neotree-hide)
(t 'evil-normal-state)))
@@ -233,10 +232,9 @@ with a key sequence."
"Return the function to escape from emacs state."
(cond ((string-match "magit" (symbol-name major-mode))
'evil-escape--escape-with-q)
- ((eq 'paradox-menu-mode major-mode)
- 'evil-escape--escape-with-q)
- ((eq 'gist-list-menu-mode major-mode)
- 'quit-window)
+ ((eq 'ibuffer-mode major-mode) 'ibuffer-quit)
+ ((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 ()
- [nongnu] elpa/evil-escape 0039182e81 103/133: v3.13: use new funtion evil-lisp-state/quit, (continued)
- [nongnu] elpa/evil-escape 0039182e81 103/133: v3.13: use new funtion evil-lisp-state/quit, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape d9737a9075 096/133: Execute helm-keyboard-quit in helm buffers, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape aac5bc3206 115/133: Exit multiedit-insert-state into multiedit-state, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape a14fb7a538 106/133: Change predicate to characterp in pre-command-hook, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape befb07d03c 101/133: Bump version to 3.12, ELPA Syncer, 2024/01/03
- [nongnu] elpa/evil-escape b548e84505 118/133: remove leading space in package header, ELPA Syncer, 2024/01/03
- [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 <=
- [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, 2024/01/03
- [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