File: hotkeys_zh_CN.html

package info (click to toggle)
git-cola 4.13.0-1
  • links: PTS
  • area: main
  • in suites: sid
  • size: 6,480 kB
  • sloc: python: 36,938; sh: 304; makefile: 223; xml: 100; tcl: 62
file content (395 lines) | stat: -rw-r--r-- 8,091 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<style type="text/css">
body {
    font-family: Helvetica, Ubuntu, sans;
    background-color: #303030;
    color: #fff;
}

table.center {
    width: 50%;
    float: left;
    padding-bottom: 20px;
}

td {
    vertical-align: top;
}

td.title {
    color: #ff6;
    font-weight: bold;
}

td.shortcut {
    font-family: Monaco, "Ubuntu Mono", monospace;
    color: #ff6;
    text-align: right;
    font-size: 0.8em;
}

span.title {
    font-size: 1.3em;
    font-weight: bold;
}
	</style>
</head>

<body>
<span class="title">键盘快捷键</span>
<hr />

<!-- Preparing Commits -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">提交</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Return</td>
    <td>:</td>
    <td>提交已缓存变更</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + Return</td>
    <td>:</td>
    <td>Prepare commit message hook</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + S</td>
    <td>:</td>
    <td>缓存所选项目</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + S</td>
    <td>:</td>
    <!-- TODO -->
    <td>Stage / unstage all files</td>
</tr>
<tr>
    <td class="shortcut">Alt + A</td>
    <td>:</td>
    <td>缓存已更改项目</td>
</tr>
<tr>
    <td class="shortcut">Alt + U</td>
    <td>:</td>
    <td>缓存未追踪项目</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + U / Alt + Shift + R</td>
    <td>:</td>
    <td>还原缓存改动</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + U</td>
    <td>:</td>
    <!-- TODO -->
    <td>Launch an external editor to edit the selected lines, or the diff hunk beneath
        the text cursor when nothing is selected, and then revert unstaged changes
        using the edited diff</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Z</td>
    <td>:</td>
    <td>撤销未缓存变更</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + M</td>
    <td>:</td>
    <!-- TODO -->
    <td>Merge branches</td>
</tr>
<tr>
    <td class="shortcut">Alt + M</td>
    <td>:</td>
    <td>修正前一次提交</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + C</td>
    <td>:</td>
    <!-- TODO -->
    <td>Cherry pick</td>
</tr>
</table>

<!-- Actions -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">操作</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + B</td>
    <td>:</td>
    <td>建立新分支</td>
</tr>
<tr>
    <td class="shortcut">Alt + B</td>
    <td>:</td>
    <td>取出分支內容</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + T</td>
    <td>:</td>
    <td>Find files</td>
</tr>
<tr>
    <td class="shortcut">Alt + G</td>
    <td>:</td>
    <td>搜索</td>
</tr>
<tr>
    <td class="shortcut">Alt + D</td>
    <td>:</td>
    <td>显示内容差异</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + E</td>
    <td>:</td>
    <td>导出差异</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + S</td>
    <td>:</td>
    <td>缓存</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Enter</td>
    <td>:</td>
    <td>Apply Stash</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Backspace</td>
    <td>:</td>
    <td>Pop Stash</td>
</tr>
<tr>
<td class="shortcut">Ctrl + Shift + Backspace</td>
    <td>:</td>
    <td>Drop Stash</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Backspace</td>
    <td>:</td>
    <td>Delete untracked files</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + F</td>
    <td>:</td>
    <td>Toggle paths filter</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + R</td>
    <td>:</td>
    <td>重新整理</td>
</tr>
<tr>
    <td class="shortcut">?</td>
    <td>:</td>
    <td>显示键盘快捷键列表</td>
</tr>
</table>

<!-- Editing -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">编辑</td>
</tr>
<tr>
    <td class="shortcut">Enter / Ctrl + E</td>
    <td>:</td>
    <td>启动文本编辑器</td>
</tr>
<tr>
    <td class="shortcut">空白鍵</td>
    <td>:</td>
    <td>用默认程序打开</td>
</tr>
<tr>
    <td class="shortcut">Shift + 空白鍵</td>
    <td>:</td>
    <td>打开上级目录</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Alt + C</td>
    <td>:</td>
    <td>Copy Commit ID</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + E</td>
    <td>:</td>
    <td>查看 / 编辑最近修改的文件</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + #</td>
    <td>:</td>
    <td>聚焦于工具</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + #</td>
    <td>:</td>
    <td>显示/隐藏工具</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Space</td>
    <td>:</td>
    <td>Display autocomplete options</td>
</tr>
</table>

<!-- Diff -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">差异查看器</td>
</tr>
<tr>
    <td class="shortcut">S</td>
    <td>:</td>
    <td>缓存所选项目,未选择项目时与<strong><em>H</em></strong>作用相同
    </td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + S</td>
    <td>:</td>
    <td>Launch an external editor to edit the selected lines, or the diff hunk benath the
        text cursor when nothing is selected, and then stage the edited diff</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + D</td>
    <td>:</td>
    <td>使用「git difftool」命令查看内容差异</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + F</td>
    <td>:</td>
    <td>Search diff for matching text</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + G</td>
    <td>:</td>
    <td>Search diff for the next text match</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + G</td>
    <td>:</td>
    <td>Search diff for the previous text match</td>
</tr>
<tr>
    <td class="shortcut">Alt + Shift + C</td>
    <td>:</td>
    <td>Copy Diff to clipboard (strips diff +/- prefixes)</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + D</td>
    <td>:</td>
    <td>View directory diff using `git difftool --dir-diff`</td>
</tr>
<!-- TODO -->
<tr>
    <td class="shortcut">Shift</td>
    <td>:</td>
    <td>Hold Shift to select text when moving the cursor with H, J, K, L
        and Arrow keys</td>
</tr>
<tr>
    <td class="shortcut">Space / Shift + Space</td>
    <td>:</td>
    <td>Page Down / Page Up</td>
</tr>
<tr>
    <td class="shortcut">0 (Zero)</td>
    <td>:</td>
    <td>Move cursor to the start of the line</td>
</tr>
<tr>
    <td class="shortcut">$ (Shift + 4)</td>
    <td>:</td>
    <td>Move cursor to the end of the line</td>
</tr>
<tr>
    <td class="shortcut">G G</td>
    <td>:</td>
    <td>Move cursor to the start of the diff</td>
</tr>
<tr>
    <td class="shortcut">Shift + G</td>
    <td>:</td>
    <td>Move cursor to the end of the diff</td>
</tr>
</table>

<!-- Browser actions -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">「浏览器」窗口操作</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + H</td>
    <td>:</td>
    <td>查看变更历史</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + Shift + D</td>
    <td>:</td>
    <td>与之前版本比较差异</td>
</tr>
</table>

<!-- Tree navigation -->
<table class="center">
<tr>
    <td width="35%">&nbsp;</td>
    <td>&nbsp;</td>
    <td class="title">导航键</td>
</tr>
<tr>
    <td class="shortcut">H</td>
    <td>:</td>
    <td>左移/折叠</td>
</tr>
<tr>
    <td class="shortcut">J / Alt + J</td>
    <td>:</td>
    <td>下移</td>
</tr>
<tr>
    <td class="shortcut">K / Alt + K</td>
    <td>:</td>
    <td>上移</td>
</tr>
<tr>
    <td class="shortcut">L</td>
    <td>:</td>
    <td>右移/展开</td>
</tr>
<!-- TODO -->
<tr>
    <td class="shortcut">Ctrl + J</td>
    <td>:</td>
    <td>Focus the Diff Editor</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + K</td>
    <td>:</td>
    <td>Focus the Status tool</td>
</tr>
<tr>
    <td class="shortcut">Ctrl + L</td>
    <td>:</td>
    <!-- TODO: Focus the Commit summary, Grep query, DAG query, ...-->
    <td>聚焦在 DAG 输入框</td>
</tr>
</table>
</body>