cmds: provide $DIRNAME in the environment for guitool commands
[git-cola.git] / share / doc / git-cola / hotkeys.html
blobafff68b98184a4ce8b40f9f137dbc316fd90820c
1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <style type="text/css">
6 body {
7 font-family: Helvetica, Ubuntu, sans;
8 background-color: #303030;
9 color: #fff;
12 table.center {
13 width: 50%;
14 float: left;
15 padding-bottom: 20px;
18 td {
19 vertical-align: top;
22 td.title {
23 color: #ff6;
24 font-weight: bold;
27 td.shortcut {
28 font-family: Monaco, "Ubuntu Mono", monospace;
29 color: #ff6;
30 text-align: right;
31 font-size: 0.8em;
34 span.title {
35 font-size: 1.3em;
36 font-weight: bold;
38 </style>
39 </head>
41 <body>
42 <span class="title">Keyboard shortcuts</span>
43 <hr />
45 <!-- Preparing Commits -->
46 <table class="center">
47 <tr>
48 <td width="35%">&nbsp;</td>
49 <td>&nbsp;</td>
50 <td class="title">Commit</td>
51 </tr>
52 <tr>
53 <td class="shortcut">Ctrl + Return</td>
54 <td>:</td>
55 <td>Commit staged changes</td>
56 </tr>
57 <tr>
58 <td class="shortcut">Ctrl + S</td>
59 <td>:</td>
60 <td>Stage / unstage selected files</td>
61 </tr>
62 <tr>
63 <td class="shortcut">Alt + A</td>
64 <td>:</td>
65 <td>Stage modified files</td>
66 </tr>
67 <tr>
68 <td class="shortcut">Alt + U</td>
69 <td>:</td>
70 <td>Stage untracked files</td>
71 </tr>
72 <tr>
73 <td class="shortcut">Ctrl + U</td>
74 <td>:</td>
75 <td>Revert unstaged edits</td>
76 </tr>
77 <tr>
78 <td class="shortcut">Ctrl + Z</td>
79 <td>:</td>
80 <td>Revert uncommitted changes</td>
81 </tr>
82 <tr>
83 <td class="shortcut">Ctrl + Shift + M</td>
84 <td>:</td>
85 <td>Merge branches</td>
86 </tr>
87 <tr>
88 <td class="shortcut">Ctrl + m</td>
89 <td>:</td>
90 <td>Amend last commit</td>
91 </tr>
92 <tr>
93 <td class="shortcut">Ctrl + Shift + C</td>
94 <td>:</td>
95 <td>Cherry pick</td>
96 </tr>
97 </table>
99 <!-- Actions -->
100 <table class="center">
101 <tr>
102 <td width="35%">&nbsp;</td>
103 <td>&nbsp;</td>
104 <td class="title">Actions</td>
105 </tr>
106 <tr>
107 <td class="shortcut">Ctrl + B</td>
108 <td>:</td>
109 <td>Create branch</td>
110 </tr>
111 <tr>
112 <td class="shortcut">Alt + B</td>
113 <td>:</td>
114 <td>Checkout branch</td>
115 </tr>
116 <tr>
117 <td class="shortcut">T / Ctrl + T</td>
118 <td>:</td>
119 <td>Find files</td>
120 </tr>
121 <tr>
122 <td class="shortcut">Ctrl + G</td>
123 <td>:</td>
124 <td>Grep</td>
125 </tr>
126 <tr>
127 <td class="shortcut">Alt + D</td>
128 <td>:</td>
129 <td>Show diffstat</td>
130 </tr>
131 <tr>
132 <td class="shortcut">Alt + E</td>
133 <td>:</td>
134 <td>Export patches</td>
135 </tr>
136 <tr>
137 <td class="shortcut">Alt + Shift + S</td>
138 <td>:</td>
139 <td>Stash</td>
140 </tr>
141 <tr>
142 <td class="shortcut">Ctrl + Backspace</td>
143 <td>:</td>
144 <td>Delete untracked files</td>
145 </tr>
146 <tr>
147 <td class="shortcut">Ctrl + Shift + F</td>
148 <td>:</td>
149 <td>Toggle paths filter</td>
150 </tr>
151 <tr>
152 <td class="shortcut">Ctrl + R</td>
153 <td>:</td>
154 <td>Refresh</td>
155 </tr>
156 <tr>
157 <td class="shortcut">?</td>
158 <td>:</td>
159 <td>Keyboard shortcuts</td>
160 </tr>
161 </table>
163 <!-- Editing -->
164 <table class="center">
165 <tr>
166 <td width="35%">&nbsp;</td>
167 <td>&nbsp;</td>
168 <td class="title">Editing</td>
169 </tr>
170 <tr>
171 <td class="shortcut">Enter / Ctrl + E</td>
172 <td>:</td>
173 <td>Launch editor</td>
174 </tr>
175 <tr>
176 <td class="shortcut">Space</td>
177 <td>:</td>
178 <td>Open using default application</td>
179 </tr>
180 <tr>
181 <td class="shortcut">Shift + Space</td>
182 <td>:</td>
183 <td>Open parent directory</td>
184 </tr>
185 <tr>
186 <td class="shortcut">Ctrl + Shift + E</td>
187 <td>:</td>
188 <td>View / edit recently modified files</td>
189 </tr>
190 <tr>
191 <td class="shortcut">Ctrl + #</td>
192 <td>:</td>
193 <td>Focus tools</td>
194 </tr>
195 <tr>
196 <td class="shortcut">Ctrl + Shift + #</td>
197 <td>:</td>
198 <td>Show and hide tools<br>
199 # is 1 for commit, 2 for status, 3 for diff, etc.</td>
200 </tr>
201 </table>
203 <!-- Remotes -->
204 <table class="center">
205 <tr>
206 <td width="35%">&nbsp;</td>
207 <td>&nbsp;</td>
208 <td class="title">Remotes</td>
209 </tr>
210 <tr>
211 <td class="shortcut">Ctrl + P</td>
212 <td>:</td>
213 <td>Launch the Push dialog</td>
214 </tr>
215 <tr>
216 <td class="shortcut">Ctrl + Shift + P</td>
217 <td>:</td>
218 <td>Launch the Pull dialog</td>
219 </tr>
220 </table>
222 <!-- Diff -->
223 <table class="center">
224 <tr>
225 <td width="35%">&nbsp;</td>
226 <td>&nbsp;</td>
227 <td class="title">Diff</td>
228 </tr>
229 <tr>
230 <td class="shortcut">S</td>
231 <td>:</td>
232 <td>Stage the selected lines, or the diff hunk beneath the text cursor
233 when nothing is selected</td>
234 </tr>
235 <tr>
236 <td class="shortcut">Ctrl + D</td>
237 <td>:</td>
238 <td>View diff using `git difftool`</td>
239 </tr>
240 <tr>
241 <td class="shortcut">Ctrl + Shift + D</td>
242 <td>:</td>
243 <td>View directory diff using `git difftool --dir-diff`</td>
244 </tr>
245 </table>
247 <!-- Browser actions -->
248 <table class="center">
249 <tr>
250 <td width="35%">&nbsp;</td>
251 <td>&nbsp;</td>
252 <td class="title">Browser actions</td>
253 </tr>
254 <tr>
255 <td class="shortcut">Ctrl + Shift + H</td>
256 <td>:</td>
257 <td>View history</td>
258 </tr>
259 <tr>
260 <td class="shortcut">Ctrl + Shift + D</td>
261 <td>:</td>
262 <td>View diff against predecessor</td>
263 </tr>
264 </table>
266 <!-- Tree navigation -->
267 <table class="center">
268 <tr>
269 <td width="35%">&nbsp;</td>
270 <td>&nbsp;</td>
271 <td class="title">Navigation</td>
272 </tr>
273 <tr>
274 <td class="shortcut">H</td>
275 <td>:</td>
276 <td>Move left/collapse</td>
277 </tr>
278 <tr>
279 <td class="shortcut">J / Alt + J</td>
280 <td>:</td>
281 <td>Move down</td>
282 </tr>
283 <tr>
284 <td class="shortcut">K / Alt + K</td>
285 <td>:</td>
286 <td>Move up</td>
287 </tr>
288 <tr>
289 <td class="shortcut">L</td>
290 <td>:</td>
291 <td>Move right/expand</td>
292 </tr>
293 <tr>
294 <td class="shortcut">Ctrl + L</td>
295 <td>:</td>
296 <td>Focus the DAG input field</td>
297 </tr>
298 </table>
300 </body>