github/workflows: use a virtualenv for setuptools
[git-cola.git] / share / doc / git-cola / hotkeys.html
blobc2d7780c40adb86c49598943393721e4986b53ae
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 + Shift + Return</td>
59 <td>:</td>
60 <td>Prepare commit message hook</td>
61 </tr>
62 <tr>
63 <td class="shortcut">Ctrl + S</td>
64 <td>:</td>
65 <td>Stage / unstage selected files</td>
66 </tr>
67 <tr>
68 <td class="shortcut">Ctrl + Shift + S</td>
69 <td>:</td>
70 <td>Stage / unstage all files</td>
71 </tr>
72 <tr>
73 <td class="shortcut">Alt + A</td>
74 <td>:</td>
75 <td>Stage modified files</td>
76 </tr>
77 <tr>
78 <td class="shortcut">Alt + U</td>
79 <td>:</td>
80 <td>Stage untracked files</td>
81 </tr>
82 <tr>
83 <td class="shortcut">Ctrl + U</td>
84 <td>:</td>
85 <td>Revert unstaged edits</td>
86 </tr>
87 <tr>
88 <td class="shortcut">Ctrl + Z</td>
89 <td>:</td>
90 <td>Revert uncommitted changes</td>
91 </tr>
92 <tr>
93 <td class="shortcut">Ctrl + Shift + M</td>
94 <td>:</td>
95 <td>Merge branches</td>
96 </tr>
97 <tr>
98 <td class="shortcut">Ctrl + m</td>
99 <td>:</td>
100 <td>Amend last commit</td>
101 </tr>
102 <tr>
103 <td class="shortcut">Ctrl + Shift + C</td>
104 <td>:</td>
105 <td>Cherry pick</td>
106 </tr>
107 </table>
109 <!-- Actions -->
110 <table class="center">
111 <tr>
112 <td width="35%">&nbsp;</td>
113 <td>&nbsp;</td>
114 <td class="title">Actions</td>
115 </tr>
116 <tr>
117 <td class="shortcut">Ctrl + B</td>
118 <td>:</td>
119 <td>Create branch</td>
120 </tr>
121 <tr>
122 <td class="shortcut">Alt + B</td>
123 <td>:</td>
124 <td>Checkout branch</td>
125 </tr>
126 <tr>
127 <td class="shortcut">T / Ctrl + T</td>
128 <td>:</td>
129 <td>Find files</td>
130 </tr>
131 <tr>
132 <td class="shortcut">Ctrl + G</td>
133 <td>:</td>
134 <td>Grep</td>
135 </tr>
136 <tr>
137 <td class="shortcut">Alt + D</td>
138 <td>:</td>
139 <td>Show diffstat</td>
140 </tr>
141 <tr>
142 <td class="shortcut">Alt + E</td>
143 <td>:</td>
144 <td>Export patches</td>
145 </tr>
146 <tr>
147 <td class="shortcut">Alt + Shift + S</td>
148 <td>:</td>
149 <td>Stash</td>
150 </tr>
151 <tr>
152 <td class="shortcut">Ctrl + Enter</td>
153 <td>:</td>
154 <td>Apply Stash</td>
155 </tr>
156 <tr>
157 <td class="shortcut">Ctrl + Backspace</td>
158 <td>:</td>
159 <td>Pop Stash</td>
160 </tr>
161 <tr>
162 <td class="shortcut">Ctrl + Shift + Backspace</td>
163 <td>:</td>
164 <td>Drop Stash</td>
165 </tr>
166 <tr>
167 <td class="shortcut">Ctrl + Backspace</td>
168 <td>:</td>
169 <td>Delete untracked files</td>
170 </tr>
171 <tr>
172 <td class="shortcut">Ctrl + Shift + F</td>
173 <td>:</td>
174 <td>Toggle paths filter</td>
175 </tr>
176 <tr>
177 <td class="shortcut">Alt + R</td>
178 <td>:</td>
179 <td>Start/continue interactive rebase</td>
180 </tr>
181 <tr>
182 <td class="shortcut">Ctrl + R</td>
183 <td>:</td>
184 <td>Refresh</td>
185 </tr>
186 <tr>
187 <td class="shortcut">?</td>
188 <td>:</td>
189 <td>Keyboard shortcuts</td>
190 </tr>
191 </table>
193 <!-- Editing -->
194 <table class="center">
195 <tr>
196 <td width="35%">&nbsp;</td>
197 <td>&nbsp;</td>
198 <td class="title">Editing</td>
199 </tr>
200 <tr>
201 <td class="shortcut">Enter / Ctrl + E</td>
202 <td>:</td>
203 <td>Launch editor</td>
204 </tr>
205 <tr>
206 <td class="shortcut">Space</td>
207 <td>:</td>
208 <td>Open using default application</td>
209 </tr>
210 <tr>
211 <td class="shortcut">Shift + Space</td>
212 <td>:</td>
213 <td>Open parent directory</td>
214 </tr>
215 <tr>
216 <td class="shortcut">Ctrl + Shift + E</td>
217 <td>:</td>
218 <td>View / edit recently modified files</td>
219 </tr>
220 <tr>
221 <td class="shortcut">Ctrl + #</td>
222 <td>:</td>
223 <td>Focus tools</td>
224 </tr>
225 <tr>
226 <td class="shortcut">Ctrl + Shift + #</td>
227 <td>:</td>
228 <td>Show and hide tools<br>
229 # is 1 for commit, 2 for status, 3 for diff, etc.</td>
230 </tr>
231 </table>
233 <!-- Remotes -->
234 <table class="center">
235 <tr>
236 <td width="35%">&nbsp;</td>
237 <td>&nbsp;</td>
238 <td class="title">Remotes</td>
239 </tr>
240 <tr>
241 <td class="shortcut">Ctrl + P</td>
242 <td>:</td>
243 <td>Launch the Push dialog</td>
244 </tr>
245 <tr>
246 <td class="shortcut">Ctrl + Shift + P</td>
247 <td>:</td>
248 <td>Launch the Pull dialog</td>
249 </tr>
250 </table>
252 <!-- Diff -->
253 <table class="center">
254 <tr>
255 <td width="35%">&nbsp;</td>
256 <td>&nbsp;</td>
257 <td class="title">Diff</td>
258 </tr>
259 <tr>
260 <td class="shortcut">S</td>
261 <td>:</td>
262 <td>Stage the selected lines, or the diff hunk beneath the text cursor
263 when nothing is selected</td>
264 </tr>
265 <tr>
266 <td class="shortcut">Ctrl + D</td>
267 <td>:</td>
268 <td>View diff using `git difftool`</td>
269 </tr>
270 <tr>
271 <td class="shortcut">Ctrl + Shift + D</td>
272 <td>:</td>
273 <td>View directory diff using `git difftool --dir-diff`</td>
274 </tr>
275 </table>
277 <!-- Browser actions -->
278 <table class="center">
279 <tr>
280 <td width="35%">&nbsp;</td>
281 <td>&nbsp;</td>
282 <td class="title">Browser actions</td>
283 </tr>
284 <tr>
285 <td class="shortcut">Ctrl + Shift + H</td>
286 <td>:</td>
287 <td>View history</td>
288 </tr>
289 <tr>
290 <td class="shortcut">Ctrl + Shift + D</td>
291 <td>:</td>
292 <td>View diff against predecessor</td>
293 </tr>
294 <tr>
295 <td class="shortcut">Ctrl + Alt + C</td>
296 <td>:</td>
297 <td>Copy SHA-1</td>
298 </tr>
299 </table>
301 <!-- Tree navigation -->
302 <table class="center">
303 <tr>
304 <td width="35%">&nbsp;</td>
305 <td>&nbsp;</td>
306 <td class="title">Navigation</td>
307 </tr>
308 <tr>
309 <td class="shortcut">H</td>
310 <td>:</td>
311 <td>Move left/collapse</td>
312 </tr>
313 <tr>
314 <td class="shortcut">J / Alt + J</td>
315 <td>:</td>
316 <td>Move down</td>
317 </tr>
318 <tr>
319 <td class="shortcut">K / Alt + K</td>
320 <td>:</td>
321 <td>Move up</td>
322 </tr>
323 <tr>
324 <td class="shortcut">L</td>
325 <td>:</td>
326 <td>Move right/expand</td>
327 </tr>
328 <tr>
329 <td class="shortcut">Ctrl + J</td>
330 <td>:</td>
331 <td>Focus the Diff Editor</td>
332 </tr>
333 <tr>
334 <td class="shortcut">Ctrl + K</td>
335 <td>:</td>
336 <td>Focus the Status tool</td>
337 </tr>
338 <tr title="Ctrl+L also focuses the DAG revspec, grep query, ...">
339 <td class="shortcut">Ctrl + L</td>
340 <td>:</td>
341 <td>Focus the Commit tool</td>
342 </tr>
343 </table>
345 </body>