Move relative date formatting to separate function
[tig.git] / test / help / all-keybindings-test
blob8ec54a8b089a4bd3a0e690609cf4f8aa7a0384ae
1 #!/bin/sh
3 . libtest.sh
5 export COLUMNS=90
6 export LINES=110
8 steps '
9 :view-help
10 :save-display help-default.screen
13 stdin <<EOF
14 test
15 EOF
17 test_tig
19 assert_equals 'help-default.screen' <<EOF
20 Quick reference for tig keybindings:
22 [-] generic bindings
23 View switching
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
37 View manipulation
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
48 Cursor navigation
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
55 Scrolling
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
63 Searching
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
68 Misc
69 e edit Open in editor
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
75 Option toggling:
76 I :toggle sort-order
77 i :toggle sort-field
78 # :toggle line-number
79 D :toggle date
80 A :toggle author
81 ~ :toggle line-graphics
82 F :toggle file-name
83 W :toggle ignore-space
84 X :toggle id
85 $ :toggle commit-title-overflow
86 % :toggle file-filter
87 [-] search bindings
88 Searching
89 <Down>, <Ctrl-N>, <Ctrl-J> find-next Find next search match
90 <Up>, <Ctrl-P>, <Ctrl-K> find-prev Find previous search match
91 [-] main bindings
92 Option toggling:
93 G :toggle commit-title-graph
94 F :toggle commit-title-refs
95 External commands:
96 C ?git cherry-pick %(commit)
97 [-] diff bindings
98 Option toggling:
99 [ :toggle diff-context -1
100 ] :toggle diff-context +1
101 Internal commands:
102 @ :/^@@
103 [-] refs bindings
104 External commands:
105 C ?git checkout %(branch)
106 ! ?git branch -D %(branch)
107 [-] status bindings
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
112 External commands:
113 C !git commit
114 [-] stage bindings
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
120 Option toggling:
121 [ :toggle diff-context -1
122 ] :toggle diff-context +1
123 Internal commands:
124 @ :/^@@
125 [-] stash bindings
126 External commands:
127 P ?git stash pop %(stash)
128 [help] - line 1 of 109 99%