hotkeys: document the new diff editor hotkeys
[git-cola.git] / docs / hotkeys_zh_CN.html
blob6f98d2f5f9dd8e646f94f4d357285691300ac107
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">键盘快捷键</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">提交</td>
51 </tr>
52 <tr>
53 <td class="shortcut">Ctrl + Return</td>
54 <td>:</td>
55 <td>提交已缓存变更</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>缓存所选项目</td>
66 </tr>
67 <tr>
68 <td class="shortcut">Ctrl + Shift + S</td>
69 <td>:</td>
70 <!-- TODO -->
71 <td>Stage / unstage all files</td>
72 </tr>
73 <tr>
74 <td class="shortcut">Alt + A</td>
75 <td>:</td>
76 <td>缓存已更改项目</td>
77 </tr>
78 <tr>
79 <td class="shortcut">Alt + U</td>
80 <td>:</td>
81 <td>缓存未追踪项目</td>
82 </tr>
83 <tr>
84 <td class="shortcut">Ctrl + U</td>
85 <td>:</td>
86 <td>还原缓存改动</td>
87 </tr>
88 <tr>
89 <td class="shortcut">Ctrl + Shift + U</td>
90 <td>:</td>
91 <!-- TODO -->
92 <td>Launch an external editor to edit the selected lines, or the diff hunk beneath
93 the text cursor when nothing is selected, and then revert unstaged changes
94 using the edited diff</td>
95 </tr>
96 <tr>
97 <td class="shortcut">Ctrl + Z</td>
98 <td>:</td>
99 <td>撤销未缓存变更</td>
100 </tr>
101 <tr>
102 <td class="shortcut">Ctrl + Shift + M</td>
103 <td>:</td>
104 <!-- TODO -->
105 <td>Merge branches</td>
106 </tr>
107 <tr>
108 <td class="shortcut">Ctrl + M</td>
109 <td>:</td>
110 <td>修正前一次提交</td>
111 </tr>
112 <tr>
113 <td class="shortcut">Ctrl + Shift + C</td>
114 <td>:</td>
115 <!-- TODO -->
116 <td>Cherry pick</td>
117 </tr>
118 </table>
120 <!-- Actions -->
121 <table class="center">
122 <tr>
123 <td width="35%">&nbsp;</td>
124 <td>&nbsp;</td>
125 <td class="title">操作</td>
126 </tr>
127 <tr>
128 <td class="shortcut">Ctrl + B</td>
129 <td>:</td>
130 <td>建立新分支</td>
131 </tr>
132 <tr>
133 <td class="shortcut">Alt + B</td>
134 <td>:</td>
135 <td>取出分支內容</td>
136 </tr>
137 <tr>
138 <td class="shortcut">Ctrl + T</td>
139 <td>:</td>
140 <td>Find files</td>
141 </tr>
142 <tr>
143 <td class="shortcut">Ctrl + G</td>
144 <td>:</td>
145 <td>搜索</td>
146 </tr>
147 <tr>
148 <td class="shortcut">Alt + D</td>
149 <td>:</td>
150 <td>显示内容差异</td>
151 </tr>
152 <tr>
153 <td class="shortcut">Alt + Shift + E</td>
154 <td>:</td>
155 <td>导出差异</td>
156 </tr>
157 <tr>
158 <td class="shortcut">Alt + Shift + S</td>
159 <td>:</td>
160 <td>缓存</td>
161 </tr>
162 <tr>
163 <td class="shortcut">Ctrl + Enter</td>
164 <td>:</td>
165 <td>Apply Stash</td>
166 </tr>
167 <tr>
168 <td class="shortcut">Ctrl + Backspace</td>
169 <td>:</td>
170 <td>Pop Stash</td>
171 </tr>
172 <tr>
173 <td class="shortcut">Ctrl + Shift + Backspace</td>
174 <td>:</td>
175 <td>Drop Stash</td>
176 </tr>
177 <tr>
178 <td class="shortcut">Ctrl + Backspace</td>
179 <td>:</td>
180 <td>Delete untracked files</td>
181 </tr>
182 <tr>
183 <td class="shortcut">Ctrl + Shift + f</td>
184 <td>:</td>
185 <td>Toggle paths filter</td>
186 </tr>
187 <tr>
188 <td class="shortcut">Ctrl + R</td>
189 <td>:</td>
190 <td>重新整理</td>
191 </tr>
192 <tr>
193 <td class="shortcut">?</td>
194 <td>:</td>
195 <td>显示键盘快捷键列表</td>
196 </tr>
197 </table>
199 <!-- Editing -->
200 <table class="center">
201 <tr>
202 <td width="35%">&nbsp;</td>
203 <td>&nbsp;</td>
204 <td class="title">编辑</td>
205 </tr>
206 <tr>
207 <td class="shortcut">Enter / Ctrl + E</td>
208 <td>:</td>
209 <td>启动文本编辑器</td>
210 </tr>
211 <tr>
212 <td class="shortcut">空白鍵</td>
213 <td>:</td>
214 <td>用默认程序打开</td>
215 </tr>
216 <tr>
217 <td class="shortcut">Shift + 空白鍵</td>
218 <td>:</td>
219 <td>打开上级目录</td>
220 </tr>
221 <tr>
222 <td class="shortcut">Ctrl + Alt + C</td>
223 <td>:</td>
224 <td>Copy Commit ID</td>
225 </tr>
226 <tr>
227 <td class="shortcut">Ctrl + Shift + E</td>
228 <td>:</td>
229 <td>查看 / 编辑最近修改的文件</td>
230 </tr>
231 <tr>
232 <td class="shortcut">Ctrl + #</td>
233 <td>:</td>
234 <td>聚焦于工具</td>
235 </tr>
236 <tr>
237 <td class="shortcut">Ctrl + Shift + #</td>
238 <td>:</td>
239 <td>显示/隐藏工具</td>
240 </tr>
241 </table>
243 <!-- Diff -->
244 <table class="center">
245 <tr>
246 <td width="35%">&nbsp;</td>
247 <td>&nbsp;</td>
248 <td class="title">差异查看器</td>
249 </tr>
250 <tr>
251 <td class="shortcut">S</td>
252 <td>:</td>
253 <td>缓存所选项目,未选择项目时与<strong><em>H</em></strong>作用相同
254 </td>
255 </tr>
256 <tr>
257 <td class="shortcut">Ctrl + Shift + S</td>
258 <td>:</td>
259 <td>Launch an external editor to edit the selected lines, or the diff hunk benath the
260 text cursor when nothing is selected, and then stage the edited diff</td>
261 </tr>
262 <tr>
263 <td class="shortcut">Ctrl + D</td>
264 <td>:</td>
265 <td>使用「git difftool」命令查看内容差异</td>
266 </tr>
267 <tr>
268 <td class="shortcut">Alt + Shift + C</td>
269 <td>:</td>
270 <td>Copy Diff to clipboard (strips diff +/- prefixes)</td>
271 </tr>
272 <tr>
273 <td class="shortcut">Ctrl + Shift + D</td>
274 <td>:</td>
275 <td>View directory diff using `git difftool --dir-diff`</td>
276 </tr>
277 <!-- TODO -->
278 <tr>
279 <td class="shortcut">Shift</td>
280 <td>:</td>
281 <td>Hold Shift to select text when moving the cursor with H, J, K, L
282 and Arrow keys</td>
283 </tr>
284 <tr>
285 <td class="shortcut">Space / Shift + Space</td>
286 <td>:</td>
287 <td>Page Down / Page Up</td>
288 </tr>
289 <tr>
290 <td class="shortcut">0 (Zero)</td>
291 <td>:</td>
292 <td>Move cursor to the start of the line</td>
293 </tr>
294 <tr>
295 <td class="shortcut">$ (Shift + 4)</td>
296 <td>:</td>
297 <td>Move cursor to the end of the line</td>
298 </tr>
299 <tr>
300 <td class="shortcut">G G</td>
301 <td>:</td>
302 <td>Move cursor to the start of the diff</td>
303 </tr>
304 <tr>
305 <td class="shortcut">Shift + G</td>
306 <td>:</td>
307 <td>Move cursor to the end of the diff</td>
308 </tr>
309 </table>
311 <!-- Browser actions -->
312 <table class="center">
313 <tr>
314 <td width="35%">&nbsp;</td>
315 <td>&nbsp;</td>
316 <td class="title">「浏览器」窗口操作</td>
317 </tr>
318 <tr>
319 <td class="shortcut">Ctrl + Shift + H</td>
320 <td>:</td>
321 <td>查看变更历史</td>
322 </tr>
323 <tr>
324 <td class="shortcut">Ctrl + Shift + D</td>
325 <td>:</td>
326 <td>与之前版本比较差异</td>
327 </tr>
328 </table>
330 <!-- Tree navigation -->
331 <table class="center">
332 <tr>
333 <td width="35%">&nbsp;</td>
334 <td>&nbsp;</td>
335 <td class="title">导航键</td>
336 </tr>
337 <tr>
338 <td class="shortcut">H</td>
339 <td>:</td>
340 <td>左移/折叠</td>
341 </tr>
342 <tr>
343 <td class="shortcut">J / Alt + J</td>
344 <td>:</td>
345 <td>下移</td>
346 </tr>
347 <tr>
348 <td class="shortcut">K / Alt + K</td>
349 <td>:</td>
350 <td>上移</td>
351 </tr>
352 <tr>
353 <td class="shortcut">L</td>
354 <td>:</td>
355 <td>右移/展开</td>
356 </tr>
357 <!-- TODO -->
358 <tr>
359 <td class="shortcut">Ctrl + J</td>
360 <td>:</td>
361 <td>Focus the Diff Editor</td>
362 </tr>
363 <tr>
364 <td class="shortcut">Ctrl + K</td>
365 <td>:</td>
366 <td>Focus the Status tool</td>
367 </tr>
368 <tr>
369 <td class="shortcut">Ctrl + L</td>
370 <td>:</td>
371 <!-- TODO: Focus the Commit summary, Grep query, DAG query, ...-->
372 <td>聚焦在 DAG 输入框</td>
373 </tr>
374 </table>
375 </body>