Skip to content

Commit 0e8f458

Browse files
authored
fix(popup): add wdired hacks
Previously, wdired actions will not close popup windows, which is cumbersome to use. We've already added similar hacks to dired. Now it's time to add similar hacks to wdired.
1 parent af5add0 commit 0e8f458

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/ui/popup/+hacks.el

+6
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ Ugh, such an ugly hack."
372372
(letf! ((#'switch-to-buffer-other-window #'pop-to-buffer))
373373
(apply fn args))))
374374

375+
;;;###package wdired
376+
(progn
377+
;; close the popup after you're done with a wdired buffer
378+
(advice-add #'wdired-abort-changes :after #'+popup-close-a)
379+
(advice-add #'wdired-finish-edit :after #'+popup-close-a))
380+
375381
;;;###package wgrep
376382
(progn
377383
;; close the popup after you're done with a wgrep buffer

0 commit comments

Comments
 (0)