10 :save-display help-default.screen
19 assert_equals
'help-default.screen' <<EOF
20 Quick reference for tig keybindings:
24 m view-main Show main view
25 d view-diff Show diff view
26 l view-log Show log view
27 t view-tree Show tree view
28 f view-blob Show blob view
29 b view-blame Show blame view
30 r view-refs Show refs view
31 s, S view-status Show status view
32 c view-stage Show stage view
33 y view-stash Show stash view
34 g view-grep Show grep view
35 p view-pager Show pager view
36 h view-help Show help view
38 <Enter> enter Enter and open selected line
39 < back Go back to the previous view state
40 <Down>, <Ctrl-N>, J next Move to next
41 <Up>, <Ctrl-P>, K previous Move to previous
42 ',' parent Move to parent
43 <Tab> view-next Move focus to the next view
44 R, <F5> refresh Reload and refresh view
45 O maximize Maximize the current view
46 q view-close Close the current view
47 Q quit Close all views and quit
49 k move-up Move cursor one line up
50 j move-down Move cursor one line down
51 <PageDown>, <Ctrl-D>, <Space> move-page-down Move cursor one page down
52 <PageUp>, <Ctrl-U>, - move-page-up Move cursor half a page up
53 <Home> move-first-line Move cursor to first line
54 <End> move-last-line Move cursor to last line
56 <Insert>, <Ctrl-Y> scroll-line-up Scroll one line up
57 <Delete>, <Ctrl-E> scroll-line-down Scroll one line down
58 <ScrollBack> scroll-page-up Scroll one page up
59 <ScrollFwd> scroll-page-down Scroll one page down
60 | scroll-first-col Scroll to the first line columns
61 <Left> scroll-left Scroll two columns left
62 <Right> scroll-right Scroll two columns right
64 / search Search the view
65 ? search-back Search backwards in the view
66 n find-next Find next search match
67 N find-prev Find previous search match
70 : prompt Open the prompt
71 o options Open the options menu
72 <Ctrl-L> screen-redraw Redraw the screen
73 z stop-loading Stop all loading views
74 v show-version Show version information
81 ~ :toggle line-graphics
83 W :toggle ignore-space
85 $ :toggle commit-title-overflow
89 <Down>, <Ctrl-N>, <Ctrl-J> find-next Find next search match
90 <Up>, <Ctrl-P>, <Ctrl-K> find-prev Find previous search match
93 G :toggle commit-title-graph
94 F :toggle commit-title-refs
96 C ?git cherry-pick %(commit)
99 [ :toggle diff-context -1
100 ] :toggle diff-context +1
105 C ?git checkout %(branch)
106 ! ?git branch -D %(branch)
108 View specific actions
109 u status-update Stage/unstage chunk or file changes
110 ! status-revert Revert chunk or file changes
111 M status-merge Merge file using external tool
115 View specific actions
116 u status-update Stage/unstage chunk or file changes
117 ! status-revert Revert chunk or file changes
118 1 stage-update-line Stage/unstage single line
119 \ stage-split-chunk Split current diff chunk
121 [ :toggle diff-context -1
122 ] :toggle diff-context +1
127 P ?git stash pop %(stash)
128 [help] - line 1 of 109 99%