7 :save-display help-default.screen
10 :save-display help-search.screen
16 :save-display help-collapsed.screen
25 assert_equals
'help-default.screen' <<EOF
26 Quick reference for tig keybindings:
30 m view-main Show main view
31 d view-diff Show diff view
32 l view-log Show log view
33 t view-tree Show tree view
34 f view-blob Show blob view
35 b view-blame Show blame view
36 r view-refs Show refs view
37 s, S view-status Show status view
38 c view-stage Show stage view
39 y view-stash Show stash view
40 g view-grep Show grep view
41 p view-pager Show pager view
42 h view-help Show help view
44 <Enter> enter Enter and open selected line
45 < back Go back to the previous view s
46 <Down>, <Ctrl-N>, J next Move to next
47 <Up>, <Ctrl-P>, K previous Move to previous
48 ',' parent Move to parent
49 <Tab> view-next Move focus to the next view
50 R, <F5> refresh Reload and refresh view
51 O maximize Maximize the current view
52 q view-close Close the current view
53 Q quit Close all views and quit
54 [help] - line 1 of 109 25%
57 assert_equals
'help-search.screen' <<EOF
58 Quick reference for tig keybindings:
62 m view-main Show main view
63 d view-diff Show diff view
64 l view-log Show log view
65 t view-tree Show tree view
66 f view-blob Show blob view
67 b view-blame Show blame view
68 r view-refs Show refs view
69 s, S view-status Show status view
70 c view-stage Show stage view
71 y view-stash Show stash view
72 g view-grep Show grep view
73 p view-pager Show pager view
74 h view-help Show help view
76 <Enter> enter Enter and open selected line
77 < back Go back to the previous view s
78 <Down>, <Ctrl-N>, J next Move to next
79 <Up>, <Ctrl-P>, K previous Move to previous
80 ',' parent Move to parent
81 <Tab> view-next Move focus to the next view
82 R, <F5> refresh Reload and refresh view
83 O maximize Maximize the current view
84 q view-close Close the current view
85 Q quit Close all views and quit
86 [help] - line 18 of 109 25%
89 assert_equals
'help-collapsed.screen' <<EOF
90 Quick reference for tig keybindings:
96 G :toggle commit-title-graph
97 F :toggle commit-title-refs
99 C ?git cherry-pick %(commit)
102 [ :toggle diff-context -1
103 ] :toggle diff-context +1
108 C ?git checkout %(branch)
109 ! ?git branch -D %(branch)
111 View specific actions
112 u status-update Stage/unstage chunk or file changes
113 ! status-revert Revert chunk or file changes
114 M status-merge Merge file using external tool
118 [help] - line 4 of 42 66%