Function: smart-magit-assist
smart-magit-assist is an interactive and byte-compiled function
defined in hui-mouse.el.
Signature
(smart-magit-assist)
Documentation
Use an assist key or mouse key to jump to source and to hide/show changes.
Invoked via an assist key press when in a magit mode and not on a button. It assumes that its caller has already checked that the assist key was pressed in an appropriate buffer and has moved the cursor to the selected buffer.
If assist key is pressed:
(1) on the last line, quit from the magit mode ("q" key binding);
(2) at the end of a line, scroll down a windowful;
(3) on an initial read-only header line, cycle visibility of all sections;
(4) anywhere else, jump to the thing at point ("RET" key binding)
but display based on the value of hpath:display-where.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mouse.el
(defun smart-magit-assist ()
"Use an assist key or mouse key to jump to source and to hide/show changes.
Invoked via an assist key press when in a magit mode and not on a
button. It assumes that its caller has already checked that the
assist key was pressed in an appropriate buffer and has moved the
cursor to the selected buffer.
If assist key is pressed:
(1) on the last line, quit from the magit mode (\"q\" key binding);
(2) at the end of a line, scroll down a windowful;
(3) on an initial read-only header line, cycle visibility of all sections;
(4) anywhere else, jump to the thing at point (\"RET\" key binding)
but display based on the value of `hpath:display-where'."
(interactive)
(cond ((last-line-p)
(call-interactively (key-binding "q")))
((eolp)
(smart-scroll-down))
(t
(let ((magit-display-buffer-function #'hpath:display-buffer)
(current-prefix-arg)
(non-text-area-p (and (eventp action-key-depress-args)
(posn-area (event-start action-key-depress-args)))))
(if non-text-area-p
(magit-section-cycle-global)
(smart-magit-display-file (key-binding (kbd "RET"))))))))