Function: hmouse-dired-display-here-mode
hmouse-dired-display-here-mode is an interactive and byte-compiled
function defined in hui-window.el.
Signature
(hmouse-dired-display-here-mode &optional ARG)
Documentation
Display item here on key press after Dired item drag.
Once a Dired buffer item has been dragged, make next Action Key press on an item display it in the current Dired window.
By default an Action Key press on a Dired item displays it in another
window. But once a Dired item is dragged to another window, the next
Action Key press should display it in the current Dired window so that
the behavior matches that of Buffer Menu and allows for setting what is
displayed in all windows on screen, including the Dired window.
If the directory is re-read into the Dired buffer with {g}, then Action Key behavior reverts to as though no items have been dragged.
This is a minor mode. If called interactively, toggle the
Hmouse-Dired-Display-Here mode mode. If the prefix argument is
positive, enable the mode, and if it is zero or negative, disable
the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate hmouse-dired-display-here-mode(var)/hmouse-dired-display-here-mode(fun).
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-window.el
(define-minor-mode hmouse-dired-display-here-mode
"Display item here on key press after Dired item drag.
Once a Dired buffer item has been dragged, make next Action Key
press on an item display it in the current Dired window.
By default an Action Key press on a Dired item displays it in another
window. But once a Dired item is dragged to another window, the next
Action Key press should display it in the current Dired window so that
the behavior matches that of Buffer Menu and allows for setting what is
displayed in all windows on screen, including the Dired window.
If the directory is re-read into the Dired buffer with {g}, then Action
Key behavior reverts to as though no items have been dragged."
:lighter " DisplayHere"
(if hmouse-dired-display-here-mode
(progn (set (make-local-variable 'hpath:display-where) 'this-window)
(add-hook 'dired-after-readin-hook 'hmouse-dired-readin-hook nil t))
(kill-local-variable 'hpath:display-where)
(remove-hook 'dired-after-readin-hook 'hmouse-dired-readin-hook t)))