Add: feature/version-control: make git-gutter hydra prettier
This commit is contained in:
parent
8479e1c8b9
commit
3ffe496f79
1 changed files with 13 additions and 10 deletions
|
@ -38,24 +38,27 @@
|
||||||
(require 'hydra)
|
(require 'hydra)
|
||||||
(defhydra +hydra-git-gutter (:body-pre (git-gutter-mode 1)
|
(defhydra +hydra-git-gutter (:body-pre (git-gutter-mode 1)
|
||||||
:hint nil)
|
:hint nil)
|
||||||
"
|
"
|
||||||
Git gutter:
|
╭─────────────────┐
|
||||||
_j_: next hunk _s_tage hunk _q_uit
|
Movement Hunk Actions Misc. │ gg: +%-4s(car (git-gutter:statistic))/ -%-3s(cdr (git-gutter:statistic)) │
|
||||||
_k_: previous hunk _r_evert hunk _Q_uit and deactivate git-gutter
|
╭──────────────────────────────────┴─────────────────╯
|
||||||
^ ^ _p_opup hunk
|
^_g_^ [_s_] stage [_R_] set start Rev
|
||||||
_h_: first hunk
|
^_k_^ [_r_] revert
|
||||||
_l_: last hunk set start _R_evision
|
^↑ ^ [_m_] mark
|
||||||
"
|
^↓ ^ [_p_] popup ╭──────────────────────
|
||||||
|
^_j_^ │[_q_] quit
|
||||||
|
^_G_^ │[_Q_] Quit and disable"
|
||||||
("j" (progn (git-gutter:next-hunk 1)
|
("j" (progn (git-gutter:next-hunk 1)
|
||||||
(recenter)))
|
(recenter)))
|
||||||
("k" (progn (git-gutter:previous-hunk 1)
|
("k" (progn (git-gutter:previous-hunk 1)
|
||||||
(recenter)))
|
(recenter)))
|
||||||
("h" (progn (goto-char (point-min))
|
("g" (progn (goto-char (point-min))
|
||||||
(git-gutter:next-hunk 1)))
|
(git-gutter:next-hunk 1)))
|
||||||
("l" (progn (goto-char (point-min))
|
("G" (progn (goto-char (point-min))
|
||||||
(git-gutter:previous-hunk 1)))
|
(git-gutter:previous-hunk 1)))
|
||||||
("s" git-gutter:stage-hunk)
|
("s" git-gutter:stage-hunk)
|
||||||
("r" git-gutter:revert-hunk)
|
("r" git-gutter:revert-hunk)
|
||||||
|
("m" git-gutter:mark-hunk)
|
||||||
("p" git-gutter:popup-hunk)
|
("p" git-gutter:popup-hunk)
|
||||||
("R" git-gutter:set-start-revision)
|
("R" git-gutter:set-start-revision)
|
||||||
("q" nil :color blue)
|
("q" nil :color blue)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue