Enable full navigaton on hjkl
in magit buffers
This commit is contained in:
parent
1649479fd2
commit
d3a6b67a35
|
@ -1441,8 +1441,8 @@ To open a `status buffer`, type in a buffer of a Git repository:
|
|||
|
||||
<SPC> g s
|
||||
|
||||
The buffer is opened in `Emacs state` but you can sill navigate up and down
|
||||
with `k` and `j` respectively (should be like this in all `magit` buffers).
|
||||
`hjkl` navigation is enabled in all Magit buffers. The default Magit keys
|
||||
on `hjkl` are remapped on `HJKL`.
|
||||
|
||||
Here are the often used bindings inside a `status buffer`:
|
||||
|
||||
|
@ -1455,10 +1455,12 @@ Here are the often used bindings inside a `status buffer`:
|
|||
`b v` | open the `branch manager buffer`
|
||||
`f f` | fetch changes
|
||||
`F -r F` | pull and rebase
|
||||
`h` | go left
|
||||
`j` | go down
|
||||
`k` | go up
|
||||
`K` | discard changes
|
||||
`l l` | open `log buffer`
|
||||
`l` | go right
|
||||
`L l` | open `log buffer`
|
||||
`P P` | push
|
||||
`q` | quit
|
||||
`s` | on a file or hunk in a diff: stage the file or hunk
|
||||
|
|
|
@ -1493,6 +1493,7 @@ determine the state to enable when escaping from the insert state.")
|
|||
magit-commit-mode-map
|
||||
magit-diff-mode-map)))
|
||||
|
||||
;; hjkl key bindings
|
||||
(evil-add-hjkl-bindings magit-branch-manager-mode-map 'emacs
|
||||
"K" 'magit-discard-item
|
||||
"L" 'magit-key-mode-popup-logging)
|
||||
|
@ -1500,10 +1501,9 @@ determine the state to enable when escaping from the insert state.")
|
|||
(evil-add-hjkl-bindings magit-log-mode-map 'emacs)
|
||||
(evil-add-hjkl-bindings magit-process-mode-map 'emacs)
|
||||
(evil-add-hjkl-bindings magit-status-mode-map 'emacs
|
||||
"f" 'magit-key-mode-popup-fetching
|
||||
"K" 'magit-discard-item
|
||||
"l" 'magit-key-mode-popup-logging
|
||||
"h" 'magit-toggle-diff-refine-hunk)
|
||||
"L" 'magit-key-mode-popup-logging
|
||||
"H" 'magit-key-mode-popup-diff-options)
|
||||
|
||||
(defun magit-quit-session ()
|
||||
"Restores the previous window configuration and kills the magit buffer"
|
||||
|
|
Loading…
Reference in a new issue