Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

fundamentals.docbook 14.6 KB
Newer Older
1 2 3 4
<chapter id="on-screen-fundamentals">
<title>Some Fundamentals</title>

<para>
5 6
&kwrite; and many other &katepart; users are very simple to use. Anyone that has
used a text editor should have no problems.
7 8 9 10 11 12
</para>

<sect1 id="drag-and-drop">
<title>Drag and Drop</title>

<para>
13 14 15
&katepart; uses the &kde; Drag and Drop protocol. Files may be dragged and
dropped onto &katepart; from the Desktop, the filemanager &dolphin;, or some
remote &FTP; site opened in one of &dolphin;'s windows.
16 17 18
</para>
</sect1>

19
<sect1 id="keybindings">
20 21 22
<title>Shortcuts</title>

<para>Many of the shortcuts are configurable by way of the <link
23
linkend="settings-help-menu">Settings</link> menu.  By default &katepart; honors the
24 25 26 27 28
following shortcuts:</para>
<informaltable>
<tgroup cols="2">
<tbody>

29 30 31
<row><entry><para>&Ins;</para></entry>
<entry><para>
Toggle between Insert and Overwrite mode. When in insert mode the
32 33 34 35 36 37
editor will add any typed characters to the text while pushing along any data to
the right of the text cursor. Overwrite mode causes the entry of each character
to eliminate the character immediately to the right of the text
cursor.</para></entry>
</row>
<row>
38
<entry><para>&Left;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
39
<entry><para>Move the cursor one character to the left</para></entry>
40 41
</row>
<row>
42
<entry><para>&Right;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
43
<entry><para>Move the cursor one character to the right</para></entry>
44 45
</row>
<row>
46
<entry><para>&Up;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
47
<entry><para>Move the cursor up one line</para></entry>
48 49
</row>
<row>
50
<entry><para>&Down;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
51
<entry><para>Move the cursor down one line</para></entry>
52 53
</row>
<row>
54 55
<entry><para><keycombo action="simul">&Ctrl;<keycap>E</keycap></keycombo></para></entry>
<entry><para>Go to previous editing line</para></entry>
56 57
</row>
<row>
58 59
<entry><para><keycombo action="simul">&Ctrl;&Shift;<keycap>E</keycap></keycombo></para></entry>
<entry><para>Go to next editing line</para></entry>
60 61
</row>
<row>
62 63
<entry><para><keycombo action="simul">&Alt;&Shift;&Up;</keycombo></para></entry>
<entry><para>Move cursor to previous matching indent</para></entry>
64 65
</row>
<row>
66 67
<entry><para><keycombo action="simul">&Alt;&Shift;&Down;</keycombo></para></entry>
<entry><para>Move cursor to previous matching indent</para></entry>
68 69
</row>
<row>
70
<entry><para><keycombo action="simul">&Ctrl;<keycap>6</keycap></keycombo></para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
71
<entry><para>Move to Matching Bracket</para></entry>
72 73
</row>
<row>
74
<entry><para>&PgUp;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
75
<entry><para>Move the cursor up one page</para></entry>
76 77 78
</row>
<row>
<entry><para>&PgDn;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
79
<entry><para>Move the cursor down one page</para></entry>
80 81 82
</row>
<row>
<entry><para>&Home;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
83
<entry><para>Move the cursor to the beginning of the line</para></entry>
84 85
</row>
<row>
86
<entry><para>&End;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
87
<entry><para>Move the cursor to the end of the line</para></entry>
88 89
</row>
<row>
90 91 92 93 94
<entry><para><keycombo action="simul">&Ctrl;&Home;</keycombo></para></entry>
<entry><para>Move to Beginning of Document</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&End;</keycombo></para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
95
<entry><para>Move to End of Document</para></entry>
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
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Up;</keycombo></para></entry>
<entry><para>Scroll Line Up</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Down;</keycombo></para></entry>
<entry><para>Scroll Line Down</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Right;</keycombo></para></entry>
<entry><para>Move Word Right</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Left;</keycombo></para></entry>
<entry><para>Move Word Left</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&Up;</keycombo></para></entry>
<entry><para>Move Lines Up</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&Down;</keycombo></para></entry>
<entry><para>Move Lines Down</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Alt;&Up;</keycombo></para></entry>
<entry><para>Duplicate Selected Lines Up</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Alt;&Down;</keycombo></para></entry>
<entry><para>Duplicate Selected Lines Down</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;<keycap>B</keycap></keycombo></para></entry>
<entry><para>Set a Bookmark</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Alt;&PgUp;</keycombo></para></entry>
<entry><para>Previous Bookmark</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Alt;&PgDn;</keycombo></para></entry>
<entry><para>Next Bookmark</para></entry>
</row>
<row>
<entry><para>&Del;</para></entry>
143 144 145 146
<entry><para>Delete the character to the right of the cursor (or any selected
text)</para></entry>
</row>
<row>
147
<entry><para>&Backspace;</para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
148
<entry><para>Delete the character to the left of the cursor</para></entry>
149 150 151 152 153 154 155 156 157 158 159 160 161 162
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Del;</keycombo></para></entry>
<entry><para>Delete Right Word</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Backspace;</keycombo></para></entry>
<entry><para>Delete Left Word</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;<keycap>K</keycap></keycombo></para></entry>
<entry><para>Delete Line</para></entry>
</row>
<row>
163 164 165 166 167 168 169
<entry><para><keycombo action="simul">&Shift;&Enter;</keycombo></para></entry>
<entry><para>Insert newline including leading characters of the current line which are not letters or numbers.
It is useful &eg; to write comments in the code: At the end of the line <quote>// some text</quote> press
this shortcut and the next line starts already with <quote>// </quote>. So you do not have to enter the comment
characters at the beginning of each new line with comments.</para></entry>
</row>
<row>
170
<entry><para><keycombo action="simul">&Shift;&Left;</keycombo></para></entry>
171 172 173
<entry><para> Mark text one character to the left </para></entry>
</row>
<row>
174
<entry><para><keycombo action="simul">&Shift;&Right;</keycombo></para></entry>
175 176 177 178
<entry><para> Mark text one character to the right </para></entry>
</row>
<row>
<entry><para><keycombo
179 180
action="simul">&Ctrl;<keycap>F</keycap></keycombo></para></entry>
<entry><para><link linkend="edit-find"> Find</link></para></entry>
181 182 183 184
</row>
<row>
<entry><para><keycombo
action="simul"><keycap>F3</keycap></keycombo></para></entry>
185
<entry><para><link linkend="edit-find-next"> Find Next</link></para></entry>
186 187 188 189
</row>
<row>
<entry><para><keycombo
action="simul">&Shift;<keycap>F3</keycap></keycombo></para></entry>
190
<entry><para><link linkend="edit-find-previous"> Find Previous</link></para></entry>
191 192 193 194
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>H</keycap></keycombo></para></entry>
195
<entry><para><link linkend="edit-find-selected">Find Selected</link></para></entry>
196 197 198 199
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>H</keycap></keycombo></para></entry>
200
<entry><para><link linkend="edit-find-selected-backwards">Find Selected Backwards</link></para></entry>
201 202
</row>
<row>
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
<entry><para><keycombo action="simul">&Ctrl;&Shift;&Right;</keycombo></para></entry>
<entry><para>Select Word Right</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&Left;</keycombo></para></entry>
<entry><para>Select Word Left</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Shift;&Home;</keycombo></para></entry>
<entry><para>Select to Beginning of Line</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Shift;&End;</keycombo></para></entry>
<entry><para>Select to End of Line</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Shift;&Up;</keycombo></para></entry>
<entry><para>Select to Previous Line</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Shift;&Down;</keycombo></para></entry>
<entry><para>Select to Next Line</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;<keycap>6</keycap></keycombo></para></entry>
<entry><para>Select to Matching Bracket</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&PgUp;</keycombo></para></entry>
<entry><para>Select to Top of View</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&PgDn;</keycombo></para></entry>
<entry><para>Select to Bottom of View</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Shift;&PgUp;</keycombo></para></entry>
<entry><para>Select Page Up</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Shift;&PgDn;</keycombo></para></entry>
<entry><para>Select Page Down</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&Home;</keycombo></para></entry>
<entry><para>Select to Beginning of Document</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;&End;</keycombo></para></entry>
<entry><para>Select to End of Document</para></entry>
</row>
<row>
255
<entry><para><keycombo
256
action="simul">&Ctrl;&Home;</keycombo></para></entry>
257 258 259 260 261 262 263 264 265 266 267 268 269 270
<entry><para>Select All</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>A</keycap></keycombo></para></entry>
<entry><para>Deselect</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>B</keycap></keycombo></para></entry>
<entry><para>Block Selection Mode</para></entry>
</row>
<row>
<entry><para><keycombo
271 272
action="simul">&Ctrl;<keycap>C</keycap></keycombo> / <keycombo
action="simul">&Ctrl;&Ins;</keycombo></para></entry>
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
<entry><para> Copy the marked text to the clipboard. </para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>D</keycap></keycombo></para></entry>
<entry><para> Comment</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>D</keycap></keycombo></para></entry>
<entry><para> Uncomment</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>G</keycap></keycombo></para></entry>
<entry><para> Go to line...</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>I</keycap></keycombo></para></entry>
<entry><para> Indent selection</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>I</keycap></keycombo></para></entry>
<entry><para> Unindent selection</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>J</keycap></keycombo></para></entry>
<entry><para>Join Lines</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>P</keycap></keycombo></para></entry>
308
<entry><para><link linkend="file-print">Print</link> </para></entry>
309 310 311 312
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>R</keycap></keycombo></para></entry>
313
<entry><para><link linkend="edit-replace"> Replace</link></para></entry>
314 315 316 317 318
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>S</keycap></keycombo></para></entry>
<entry><para>Invokes the <link
319
linkend="file-save"><guilabel>Save</guilabel></link> command.</para></entry>
320 321 322
</row>
<row>
<entry><para><keycombo
323 324 325 326 327
action="simul">&Ctrl;&Shift;<keycap>S</keycap></keycombo></para></entry>
<entry><para>Save As</para></entry>
</row>
<row>
<entry><para><keycombo
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342
action="simul">&Ctrl;<keycap>U</keycap></keycombo></para></entry>
<entry><para>Uppercase</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>U</keycap></keycombo></para></entry>
<entry><para>Lowercase</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Alt;<keycap>U</keycap></keycombo></para></entry>
<entry><para>Capitalize</para></entry>
</row>
<row>
<entry><para><keycombo
343 344
action="simul">&Ctrl;<keycap>V</keycap></keycombo> / <keycombo
action="simul">&Shift;&Ins;</keycombo></para></entry>
345 346 347 348
<entry><para> Paste the clipboard text into line edit. </para></entry>
</row>
<row>
<entry><para><keycombo
349 350
action="simul">&Ctrl;<keycap>X</keycap></keycombo> / <keycombo
action="simul">&Shift;&Ins;</keycombo></para></entry>
351 352 353 354 355 356
<entry><para>Delete the marked text and copy it to the clipboard.
</para></entry>
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>Z</keycap></keycombo></para></entry>
357
<entry><para><link linkend="edit-undo">Undo</link></para></entry>
358 359 360 361
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo></para></entry>
362
<entry><para><link linkend="edit-redo">Redo</link></para></entry>
363 364 365 366
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;<keycap>-</keycap></keycombo></para></entry>
367
<entry><para>Shrink Font</para></entry>
368 369 370
</row>
<row>
<entry><para><keycombo
371 372 373
action="simul">&Ctrl;<keycap>+</keycap></keycombo><keycombo
action="simul">&Ctrl;<keycap>=</keycap></keycombo></para></entry>
<entry><para>Enlarge Font</para></entry>
374 375 376
</row>
<row>
<entry><para><keycombo
377 378
action="simul">&Ctrl;&Shift;<keycap>-</keycap></keycombo></para></entry>
<entry><para>Fold Toplevel Nodes</para></entry>
379 380 381 382
</row>
<row>
<entry><para><keycombo
action="simul">&Ctrl;&Shift;<keycap>+</keycap></keycombo></para></entry>
383
<entry><para>Unfold Toplevel Nodes</para></entry>
384 385 386
</row>
<row>
<entry><para><keycombo
387
action="simul">&Ctrl;&Space;</keycombo></para></entry>
388 389 390
<entry><para>Invoke Code Completion</para></entry>
</row>
<row>
391
<entry><para><keycap>F5</keycap></para></entry>
392
<entry><para><link linkend="file-reload"> Reload</link></para></entry>
393 394
</row>
<row>
395
<entry><para><keycap>F6</keycap></para></entry>
396 397 398
<entry><para>Show/Hide Icon Border</para></entry>
</row>
<row>
399
<entry><para><keycap>F7</keycap></para></entry>
400 401 402
<entry><para> Switch to Command Line</para></entry>
</row>
<row>
403
<entry><para><keycap>F9</keycap></para></entry>
404 405 406
<entry><para> Show/Hide Folding Markers</para></entry>
</row>
<row>
407
<entry><para><keycap>F10</keycap></para></entry>
408 409 410
<entry><para> Dynamic Word Wrap</para></entry>
</row>
<row>
411
<entry><para><keycap>F11</keycap></para></entry>
412 413
<entry><para> Show/Hide Line Numbers</para></entry>
</row>
414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435
<row>
<entry><para><keycombo action="simul">&Ctrl;<keycap>T</keycap></keycombo></para></entry>
<entry><para>Transpose Characters</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;<keycap>O</keycap></keycombo></para></entry>
<entry><para>Automatic Spell Checking</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Shift;<keycap>V</keycap></keycombo></para></entry>
<entry><para>Switch to Next Input Mode</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;<keycap>8</keycap></keycombo></para></entry>
<entry><para>Reuse Word Above</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;<keycap>9</keycap></keycombo></para></entry>
<entry><para>Reuse Word Below</para></entry>
</row>
<row>
<entry><para><keycombo action="simul">&Ctrl;&Alt;<keycap>#</keycap></keycombo></para></entry>
Yuri Chornoivan's avatar
Yuri Chornoivan committed
436
<entry><para>Expand Abbreviation</para></entry>
437
</row>
438 439 440 441
</tbody>
</tgroup>
</informaltable>
</sect1>
442
</chapter>