diff: add a "Search in diff" feature
[git-cola.git] / docs / hotkeys_zh_CN.html
blobc6926d643820a551982e393d2464c52c6ec589af
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">Alt + 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">Ctrl + F</td>
269 <td>:</td>
270 <td>Search diff for matching text</td>
271 </tr>
272 <tr>
273 <td class="shortcut">Ctrl + G</td>
274 <td>:</td>
275 <td>Search diff for the next text match</td>
276 </tr>
277 <tr>
278 <td class="shortcut">Ctrl + Shift + G</td>
279 <td>:</td>
280 <td>Search diff for the previous text match</td>
281 </tr>
282 <tr>
283 <td class="shortcut">Alt + Shift + C</td>
284 <td>:</td>
285 <td>Copy Diff to clipboard (strips diff +/- prefixes)</td>
286 </tr>
287 <tr>
288 <td class="shortcut">Ctrl + Shift + D</td>
289 <td>:</td>
290 <td>View directory diff using `git difftool --dir-diff`</td>
291 </tr>
292 <!-- TODO -->
293 <tr>
294 <td class="shortcut">Shift</td>
295 <td>:</td>
296 <td>Hold Shift to select text when moving the cursor with H, J, K, L
297 and Arrow keys</td>
298 </tr>
299 <tr>
300 <td class="shortcut">Space / Shift + Space</td>
301 <td>:</td>
302 <td>Page Down / Page Up</td>
303 </tr>
304 <tr>
305 <td class="shortcut">0 (Zero)</td>
306 <td>:</td>
307 <td>Move cursor to the start of the line</td>
308 </tr>
309 <tr>
310 <td class="shortcut">$ (Shift + 4)</td>
311 <td>:</td>
312 <td>Move cursor to the end of the line</td>
313 </tr>
314 <tr>
315 <td class="shortcut">G G</td>
316 <td>:</td>
317 <td>Move cursor to the start of the diff</td>
318 </tr>
319 <tr>
320 <td class="shortcut">Shift + G</td>
321 <td>:</td>
322 <td>Move cursor to the end of the diff</td>
323 </tr>
324 </table>
326 <!-- Browser actions -->
327 <table class="center">
328 <tr>
329 <td width="35%">&nbsp;</td>
330 <td>&nbsp;</td>
331 <td class="title">「浏览器」窗口操作</td>
332 </tr>
333 <tr>
334 <td class="shortcut">Ctrl + Shift + H</td>
335 <td>:</td>
336 <td>查看变更历史</td>
337 </tr>
338 <tr>
339 <td class="shortcut">Ctrl + Shift + D</td>
340 <td>:</td>
341 <td>与之前版本比较差异</td>
342 </tr>
343 </table>
345 <!-- Tree navigation -->
346 <table class="center">
347 <tr>
348 <td width="35%">&nbsp;</td>
349 <td>&nbsp;</td>
350 <td class="title">导航键</td>
351 </tr>
352 <tr>
353 <td class="shortcut">H</td>
354 <td>:</td>
355 <td>左移/折叠</td>
356 </tr>
357 <tr>
358 <td class="shortcut">J / Alt + J</td>
359 <td>:</td>
360 <td>下移</td>
361 </tr>
362 <tr>
363 <td class="shortcut">K / Alt + K</td>
364 <td>:</td>
365 <td>上移</td>
366 </tr>
367 <tr>
368 <td class="shortcut">L</td>
369 <td>:</td>
370 <td>右移/展开</td>
371 </tr>
372 <!-- TODO -->
373 <tr>
374 <td class="shortcut">Ctrl + J</td>
375 <td>:</td>
376 <td>Focus the Diff Editor</td>
377 </tr>
378 <tr>
379 <td class="shortcut">Ctrl + K</td>
380 <td>:</td>
381 <td>Focus the Status tool</td>
382 </tr>
383 <tr>
384 <td class="shortcut">Ctrl + L</td>
385 <td>:</td>
386 <!-- TODO: Focus the Commit summary, Grep query, DAG query, ...-->
387 <td>聚焦在 DAG 输入框</td>
388 </tr>
389 </table>
390 </body>