generated from ellisonleao/nvim-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 7
⌨️ Usage and Keymap
SuperBo edited this page May 14, 2024
·
1 revision
Trigger this view by ":Fugit2" command or by any shortcut that you assigned to.
![fugit2_status](https://private-user-images.githubusercontent.com/2666479/330293315-3e3b34ca-0194-4267-a7c5-6e9af8c4641c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjAyOTYwNTYsIm5iZiI6MTcyMDI5NTc1NiwicGF0aCI6Ii8yNjY2NDc5LzMzMDI5MzMxNS0zZTNiMzRjYS0wMTk0LTQyNjctYTdjNS02ZTlhZjhjNDY0MWMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcwNiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MDZUMTk1NTU2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmY4MTAxMDM1MTViMzkxOGY0OWFlODhiNjIwMTE1YzZjMmNjYjk3OGI2YWQ0MzEyZjE5OWU4ZmRlNzEzODIzMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.3LLwm0__Gn9ntrvTIqRe-iKXfbWIFf7CMBwxzpp-j8U)
Hot keys and usages:
-
Enter
: Open current file for editting. -
Space
: Toggle staged/unstaged of current entry. -
-
: Toggle staged/unstaged of current entry. -
s
: Stage current entry. -
u
: Unstage current entry. -
=
: Toggle patch view of current entry. -
x
: Discard current entry. -
D
: Discard current entry. -
j
: Move cursor to next entry. -
k
: Move cursor to previous entry. -
l
: Move cursor to patch view if visible. -
q
: Quit view. -
Esc
: Quite view. -
c
: Open Commit menu. -
b
: Open Branch menu. -
d
: Open Diffing menu. -
f
: Open Fetching menu. -
p
: Open Pull menu. -
P
: Open Push menu. -
N
: Open Github integration menu.
Input your commit message.
Hot keys and usages:
-
Esc
: Quit current commit action. -
q
: Quit current commit action. -
Enter
: Finish commit message and complete current commit action. -
Ctrl-c
: Quit current commit action while in insert mode. -
Ctrl-Enter
: Finish commit message and complete current commit action while in insert mode.
Trigger Patch view by pressing "=" in main status view, then use "h", "l" to navigate between them.
Hot keys and usages:
-
=
: Toggle Patch pane view. -
l
: Move cursor to right pane. -
h
: Move cursor to left pane. -
s
: Stage hunk or visual selection. -
u
: Unstage hunk or visual selection. -
-
: Stage if you are in Unstaged pane, Unstage if you are in Staged pane. -
zc
: Fold current hunk. -
zo
: Unfold current folded hunk. -
J
: Move to next hunk. -
K
: Move to previous hunk.
Keys and usages:
-
k
,j
: move up and down. -
yy
: copy commit id. -
yc
: copy commit id to clipboard.