Skip to content

Commit

Permalink
Add support for treemacs (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander-Miller authored and tarsius committed Nov 22, 2023
1 parent fd1f59d commit f71394b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ Press quickly `fd` (or the 2-keys sequence of your choice) to:
- quit gist-list menu
- quit helm-ag-edit
- hide neotree buffer
- hide treemacs buffer
- quit evil-multiedit

And more to come !
Expand Down
2 changes: 2 additions & 0 deletions evil-escape.el
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
;; - quit gist-list menu
;; - quit helm-ag-edit
;; - hide neotree buffer
;; - hide treemacs buffer
;; - quit evil-multiedit
;; And more to come !

Expand Down Expand Up @@ -262,6 +263,7 @@ If any of these functions return non nil, evil escape will be inhibited."
(string-equal "*helm-ag-edit*" (buffer-name)))
'helm-ag--edit-abort)
((eq 'neotree-mode major-mode) 'neotree-hide)
((eq 'treemacs-mode major-mode) 'treemacs-quit)
(t 'evil-normal-state)))

(defun evil-escape--escape-emacs-state ()
Expand Down

0 comments on commit f71394b

Please sign in to comment.