-
Notifications
You must be signed in to change notification settings - Fork 0
/
help.go
58 lines (54 loc) · 1.64 KB
/
help.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package ui
import "fmt"
var (
helpText = fmt.Sprintf(`
%s
%s
%s
%s
%s
%s
%s
%s
%s
%s
%s
`,
helpHeaderStyle.Render("commits Reference Manual"),
helpSectionStyle.Render(`
(scroll line by line with j/k/arrow keys or by half a page with <c-d>/<c-u>)
commits has 4 views:
- Commit List View
- Commit Details View
- Branch List View
- Help View (this one)
`),
helpHeaderStyle.Render("Keyboard Shortcuts"),
helpHeaderStyle.Render("General"),
helpSectionStyle.Render(`
<tab> Switch focus between Commit List View and Commit Details View
<ctrl+d> Open commit/revision range in your text editor (depends
on editor_command in your config file)
<ctrl+x> Clear revision range selection
<ctrl+b> Change branch
? Show help view
`),
helpHeaderStyle.Render("Commit List View"),
helpSectionStyle.Render(`
<enter> Show commit/revision range
<ctrl+t> Choose revision range start/end
<ctrl+p> Show git log
`),
helpHeaderStyle.Render("Commit Details View"),
helpSectionStyle.Render(`
<enter> Show commit/revision range
h/[ Go to previous commit
l/] Go to next commit
`),
helpHeaderStyle.Render("Branch List View"),
helpSectionStyle.Render(`
<enter> Pick branch
/ Start filtering
`),
)
)