~ubuntu-branches/ubuntu/quantal/kate/quantal-proposed

« back to all changes in this revision

Viewing changes to doc/kwrite/fundamentals.docbook

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2011-12-14 13:28:06 UTC
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: package-import@ubuntu.com-20111214132806-aa2uf6ri5w2p8ak3
Tags: upstream-4.7.90
ImportĀ upstreamĀ versionĀ 4.7.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<chapter id="on-screen-fundamentals">
 
2
<title>Some Fundamentals</title>
 
3
 
 
4
<para>
 
5
&kwrite; is very simple to use. Anyone that has used a text editor
 
6
should have no problems.
 
7
</para>
 
8
 
 
9
<sect1 id="drag-and-drop">
 
10
<title>Drag and Drop</title>
 
11
 
 
12
<para>
 
13
&kwrite; uses the &kde; Drag and Drop protocol. Files may be dragged and
 
14
dropped onto &kwrite; from the Desktop, the filemanager &dolphin;, or some remote &FTP;
 
15
site opened in one of &dolphin;'s windows.
 
16
</para>
 
17
</sect1>
 
18
 
 
19
<sect1 id="command-line-options">
 
20
<title>Command Line Options</title>
 
21
 
 
22
<para>
 
23
Though &kwrite; may most often be started from the &kde; program menu, or
 
24
a desktop icon, it can also be opened at the command line prompt of a
 
25
terminal window.  There are a few useful options that are available when
 
26
doing this.
 
27
</para>
 
28
 
 
29
<sect2 id="specify-a-file">
 
30
<title>Specify a File</title>
 
31
 
 
32
<para>By specifying the path and name of a particular file the user can
 
33
have &kwrite; open (or create) that file immediately upon startup.  This
 
34
option might look something like the following:</para>
 
35
 
 
36
<informalexample><screen>
 
37
<prompt>%</prompt> <userinput><command>kwrite</command>
 
38
<option><replaceable>/home/myhome/docs/myfile.txt</replaceable></option>
 
39
</userinput>
 
40
</screen>
 
41
</informalexample>
 
42
</sect2>
 
43
<sect2 id="editing-files-on-the-internet">
 
44
<title>Specify a file on the Internet</title>
 
45
 
 
46
<para>The above-mentioned method could even be used to open files on the
 
47
Internet (if the user has an active connection at the time.)  An example of
 
48
this might look like the following:</para>
 
49
 
 
50
<informalexample><screen>
 
51
<prompt>%</prompt> <userinput><command>kwrite</command>
 
52
<option><replaceable>ftp://ftp.kde.org/pub/kde/README</replaceable>
 
53
</option></userinput>
 
54
</screen>
 
55
</informalexample>
 
56
 
 
57
</sect2>
 
58
 
 
59
<sect2 id="other-command-line-options">
 
60
<title>Other Command Line Options</title>
 
61
 
 
62
<para>The following command line help options are available</para>
 
63
 
 
64
<variablelist>
 
65
<varlistentry>
 
66
<term><userinput><command>kwrite</command>
 
67
<option>--help</option></userinput></term>
 
68
<listitem><para>This lists the most basic options available at the command
 
69
line.</para></listitem>
 
70
</varlistentry>
 
71
<varlistentry>
 
72
<term><userinput><command>kwrite</command>
 
73
<option>--help-qt</option></userinput></term>
 
74
<listitem><para>This lists the options available for changing the way
 
75
&kwrite; interacts with &Qt;.</para></listitem>
 
76
</varlistentry>
 
77
<varlistentry>
 
78
<term><userinput><command>kwrite</command>
 
79
<option>--help-kde</option></userinput></term>
 
80
<listitem><para>This lists the options available for changing the way
 
81
&kwrite; interacts with &kde;.</para></listitem>
 
82
</varlistentry>
 
83
<varlistentry>
 
84
<term><userinput><command>kwrite</command>
 
85
<option>--help-all</option></userinput></term>
 
86
<listitem><para>This lists all of the command line options.</para></listitem>
 
87
</varlistentry>
 
88
<varlistentry>
 
89
<term><userinput><command>kwrite</command>
 
90
<option>--author</option></userinput></term>
 
91
<listitem><para>Lists &kwrite;'s authors in the terminal
 
92
window</para></listitem>
 
93
</varlistentry>
 
94
<varlistentry>
 
95
<term><userinput><command>kwrite</command>
 
96
<option>-v, --version</option></userinput></term>
 
97
<listitem><para>Lists version information for &Qt;, &kde;, and &kwrite;. Also
 
98
available through <userinput><command>kwrite</command>
 
99
<option>-v</option></userinput> </para></listitem>
 
100
</varlistentry>
 
101
<varlistentry>
 
102
<term><userinput><command>&kwrite;</command>
 
103
<option>--license</option></userinput></term>
 
104
<listitem>
 
105
<para>Shows license information.</para>
 
106
</listitem>
 
107
</varlistentry>
 
108
<varlistentry>
 
109
<term><userinput><command>kwrite</command>
 
110
<option>--stdin</option></userinput></term>
 
111
<listitem><para>Causes &kwrite; to read the document content from STDIN. This
 
112
is similar to the common option <option>-</option> used in many command line
 
113
programs, and allows you to pipe command output into &kwrite;.</para></listitem>
 
114
</varlistentry>
 
115
<varlistentry>
 
116
<term><userinput><command>kwrite</command>
 
117
<option>--encoding</option> <parameter>encoding</parameter>
 
118
<parameter>&URL;</parameter></userinput></term>
 
119
<listitem><para>Causes &kwrite; to use the specified encoding for the document.
 
120
</para></listitem>
 
121
</varlistentry>
 
122
<varlistentry>
 
123
<term><userinput><command>kwrite</command>
 
124
<option>--line</option> <parameter>line</parameter>
 
125
<parameter>&URL;</parameter></userinput></term>
 
126
<listitem><para>Navigate to the specified line after opening the document.
 
127
</para></listitem>
 
128
</varlistentry>
 
129
<varlistentry>
 
130
<term><userinput><command>kwrite</command>
 
131
<option>--column</option> <parameter>column</parameter>
 
132
<parameter>&URL;</parameter></userinput></term>
 
133
<listitem><para>Navigate to the specified column after opening the document.
 
134
</para></listitem>
 
135
</varlistentry>
 
136
 
 
137
</variablelist>
 
138
</sect2>
 
139
</sect1>
 
140
 
 
141
<sect1 id="keybindings"> <!--60 shortcuts here and 4.4.63 has 89 lueck
 
142
missing ctrl+6,7,8,9,T,Home,End
 
143
ctrl+shift+O,Home,End,PgUp,Left,Right,PgDown
 
144
Shift+Home
 
145
-->
 
146
<title>Shortcuts</title>
 
147
 
 
148
<para>Many of the shortcuts are configurable by way of the <link
 
149
 linkend="settings">Settings</link> menu.  By default &kwrite; honors the
 
150
following shortcuts:</para>
 
151
<informaltable>
 
152
<tgroup cols="2">
 
153
<tbody>
 
154
 
 
155
<row><entry><para><keycombo
 
156
action="simul"><keycap>Ins</keycap></keycombo></para></entry>
 
157
<entry><para> Toggle between Insert and Overwrite mode. When in insert mode the
 
158
editor will add any typed characters to the text while pushing along any data to
 
159
the right of the text cursor. Overwrite mode causes the entry of each character
 
160
to eliminate the character immediately to the right of the text
 
161
cursor.</para></entry>
 
162
</row>
 
163
<row>
 
164
<entry><para><keycombo action="simul"><keycap>Left
 
165
Arrow</keycap></keycombo></para></entry>
 
166
<entry><para>Move the cursor one character to the left </para></entry>
 
167
</row>
 
168
<row>
 
169
<entry><para><keycombo action="simul"><keycap>Right
 
170
Arrow</keycap></keycombo></para></entry>
 
171
<entry><para> Move the cursor one character to the right </para></entry>
 
172
</row>
 
173
<row>
 
174
<entry><para><keycombo action="simul"><keycap>Up
 
175
Arrow</keycap></keycombo></para></entry>
 
176
<entry><para> Move the cursor up one line  </para></entry>
 
177
</row>
 
178
<row>
 
179
<entry><para><keycombo action="simul"><keycap>Down
 
180
Arrow</keycap></keycombo></para></entry>
 
181
<entry><para> Move the cursor down one line </para></entry>
 
182
</row>
 
183
<row>
 
184
<entry><para><keycombo action="simul"><keycap>Page
 
185
Up</keycap></keycombo></para></entry>
 
186
<entry><para> Move the cursor up one page  </para></entry>
 
187
</row>
 
188
<row>
 
189
<entry><para><keycombo action="simul">&Alt;<keycap>Page
 
190
Up</keycap></keycombo></para></entry>
 
191
<entry><para>Previous Bookmark</para></entry>
 
192
</row>
 
193
<row>
 
194
<entry><para><keycombo action="simul"><keycap>Page
 
195
Down</keycap></keycombo></para></entry>
 
196
<entry><para>Move the cursor down one page  </para></entry>
 
197
</row>
 
198
<row>
 
199
<entry><para><keycombo action="simul">&Alt;<keycap>Page
 
200
Down</keycap></keycombo></para></entry>
 
201
<entry><para>Next Bookmark</para></entry>
 
202
</row>
 
203
<row>
 
204
<entry><para><keycombo
 
205
action="simul">&Backspace;</keycombo></para></entry>
 
206
<entry><para> Delete the character to the left of the cursor </para></entry>
 
207
</row>
 
208
<row>
 
209
<entry><para><keycombo
 
210
action="simul"><keycap>Home</keycap></keycombo></para></entry>
 
211
<entry><para> Move the cursor to the beginning of the line </para></entry>
 
212
</row>
 
213
<row>
 
214
<entry><para><keycombo
 
215
action="simul"><keycap>End</keycap></keycombo></para></entry>
 
216
<entry><para> Move the cursor to the end of the line </para></entry>
 
217
</row>
 
218
<row>
 
219
<entry><para><keycombo
 
220
action="simul"><keycap>Delete</keycap></keycombo></para></entry>
 
221
<entry><para>Delete the character to the right of the cursor (or any selected
 
222
text)</para></entry>
 
223
</row>
 
224
<row>
 
225
<entry><para><keycombo action="simul">&Shift;&Enter;</keycombo></para></entry>
 
226
<entry><para>Insert newline including leading characters of the current line which are not letters or numbers.
 
227
It is useful &eg; to write comments in the code: At the end of the line <quote>// some text</quote> press
 
228
this shortcut and the next line starts already with <quote>// </quote>. So you do not have to enter the comment
 
229
characters at the beginning of each new line with comments.</para></entry>
 
230
</row>
 
231
<row>
 
232
<entry><para><keycombo action="simul">&Shift;<keycap>Left
 
233
Arrow</keycap></keycombo></para></entry>
 
234
<entry><para> Mark text one character to the left </para></entry>
 
235
</row>
 
236
<row>
 
237
<entry><para><keycombo action="simul">&Shift;<keycap>Right
 
238
Arrow</keycap></keycombo></para></entry>
 
239
<entry><para> Mark text one character to the right </para></entry>
 
240
</row>
 
241
<row>
 
242
<entry><para><keycombo
 
243
action="simul"><keycap>F1</keycap></keycombo></para></entry>
 
244
<entry><para> Help</para></entry>
 
245
</row>
 
246
<row>
 
247
<entry><para><keycombo
 
248
action="simul">&Shift;<keycap>F1</keycap></keycombo></para></entry>
 
249
<entry><para>What's this?</para></entry>
 
250
</row>
 
251
<row>
 
252
<entry><para><keycombo
 
253
action="simul"><keycap>F3</keycap></keycombo></para></entry>
 
254
<entry><para><link linkend="find-again"> Find Next</link></para></entry>
 
255
</row>
 
256
<row>
 
257
<entry><para><keycombo
 
258
action="simul">&Shift;<keycap>F3</keycap></keycombo></para></entry>
 
259
<entry><para><link linkend="find-previous"> Find Previous</link></para></entry>
 
260
</row>
 
261
<row>
 
262
<entry><para><keycombo
 
263
action="simul">&Ctrl;<keycap>H</keycap></keycombo></para></entry>
 
264
<entry><para><link linkend="find-selected">Find Selected</link></para></entry>
 
265
</row>
 
266
<row>
 
267
<entry><para><keycombo
 
268
action="simul">&Ctrl;&Shift;<keycap>H</keycap></keycombo></para></entry>
 
269
<entry><para><link linkend="find-selected-backwards">Find Selected Backwards</link></para></entry>
 
270
</row>
 
271
<row>
 
272
<entry><para><keycombo
 
273
action="simul">&Ctrl;<keycap>A</keycap></keycombo></para></entry>
 
274
<entry><para>Select All</para></entry>
 
275
</row>
 
276
<row>
 
277
<entry><para><keycombo
 
278
action="simul">&Ctrl;&Shift;<keycap>A</keycap></keycombo></para></entry>
 
279
<entry><para>Deselect</para></entry>
 
280
</row>
 
281
<row>
 
282
<entry><para><keycombo
 
283
action="simul">&Ctrl;&Shift;<keycap>B</keycap></keycombo></para></entry>
 
284
<entry><para>Block Selection Mode</para></entry>
 
285
</row>
 
286
<row>
 
287
<entry><para><keycombo
 
288
action="simul">&Ctrl;<keycap>B</keycap></keycombo></para></entry>
 
289
<entry><para>Set a Bookmark</para></entry>
 
290
</row>
 
291
<row>
 
292
<entry><para><keycombo
 
293
action="simul">&Ctrl;<keycap>C</keycap></keycombo></para></entry>
 
294
<entry><para> Copy the marked text to the clipboard. </para></entry>
 
295
</row>
 
296
<row>
 
297
<entry><para><keycombo
 
298
action="simul">&Ctrl;<keycap>D</keycap></keycombo></para></entry>
 
299
<entry><para> Comment</para></entry>
 
300
</row>
 
301
<row>
 
302
<entry><para><keycombo
 
303
action="simul">&Ctrl;&Shift;<keycap>D</keycap></keycombo></para></entry>
 
304
<entry><para> Uncomment</para></entry>
 
305
</row>
 
306
<row>
 
307
<entry><para><keycombo
 
308
action="simul">&Ctrl;<keycap>F</keycap></keycombo></para></entry>
 
309
<entry><para><link linkend="find"> Find</link></para></entry>
 
310
</row>
 
311
<row>
 
312
<entry><para><keycombo
 
313
action="simul">&Ctrl;<keycap>G</keycap></keycombo></para></entry>
 
314
<entry><para> Go to line...</para></entry>
 
315
</row>
 
316
<row>
 
317
<entry><para><keycombo
 
318
action="simul">&Ctrl;<keycap>I</keycap></keycombo></para></entry>
 
319
<entry><para> Indent selection</para></entry>
 
320
</row>
 
321
<row>
 
322
<entry><para><keycombo
 
323
action="simul">&Ctrl;&Shift;<keycap>I</keycap></keycombo></para></entry>
 
324
<entry><para> Unindent selection</para></entry>
 
325
</row>
 
326
<row>
 
327
<entry><para><keycombo
 
328
action="simul">&Ctrl;<keycap>J</keycap></keycombo></para></entry>
 
329
<entry><para>Join Lines</para></entry>
 
330
</row>
 
331
<row>
 
332
<entry><para><keycombo
 
333
action="simul">&Ctrl;<keycap>N</keycap></keycombo></para></entry>
 
334
<entry><para> <link linkend="new">New</link> document</para></entry>
 
335
</row>
 
336
<row>
 
337
<entry><para><keycombo
 
338
action="simul">&Ctrl;<keycap>O</keycap></keycombo></para></entry>
 
339
<entry><para><link linkend="open">Open a document</link> </para></entry>
 
340
</row>
 
341
<row>
 
342
<entry><para><keycombo
 
343
action="simul">&Ctrl;<keycap>P</keycap></keycombo></para></entry>
 
344
<entry><para><link linkend="print">Print</link> </para></entry>
 
345
</row>
 
346
<row>
 
347
<entry><para><keycombo
 
348
action="simul">&Ctrl;<keycap>Q</keycap></keycombo></para></entry>
 
349
<entry><para>Quit - close active copy of editor </para></entry>
 
350
</row>
 
351
<row>
 
352
<entry><para><keycombo
 
353
action="simul">&Ctrl;<keycap>R</keycap></keycombo></para></entry>
 
354
<entry><para><link linkend="replace"> Replace</link></para></entry>
 
355
</row>
 
356
<row>
 
357
<entry><para><keycombo
 
358
action="simul">&Ctrl;<keycap>S</keycap></keycombo></para></entry>
 
359
<entry><para>Invokes the <link
 
360
linkend="save"><guilabel>Save</guilabel></link> command.</para></entry>
 
361
</row>
 
362
<row>
 
363
<entry><para><keycombo
 
364
action="simul">&Ctrl;<keycap>U</keycap></keycombo></para></entry>
 
365
<entry><para>Uppercase</para></entry>
 
366
</row>
 
367
<row>
 
368
<entry><para><keycombo
 
369
action="simul">&Ctrl;&Shift;<keycap>U</keycap></keycombo></para></entry>
 
370
<entry><para>Lowercase</para></entry>
 
371
</row>
 
372
<row>
 
373
<entry><para><keycombo
 
374
action="simul">&Ctrl;&Alt;<keycap>U</keycap></keycombo></para></entry>
 
375
<entry><para>Capitalize</para></entry>
 
376
</row>
 
377
<row>
 
378
<entry><para><keycombo
 
379
action="simul">&Ctrl;<keycap>V</keycap></keycombo></para></entry>
 
380
<entry><para> Paste the clipboard text into line edit. </para></entry>
 
381
</row>
 
382
<row>
 
383
<entry><para><keycombo
 
384
action="simul">&Ctrl;<keycap>W</keycap></keycombo></para></entry>
 
385
<entry><para><link linkend="close">Close</link> </para></entry>
 
386
</row>
 
387
<row>
 
388
<entry><para><keycombo
 
389
action="simul">&Ctrl;<keycap>X</keycap></keycombo></para></entry>
 
390
<entry><para>Delete the marked text and copy it to the clipboard.
 
391
</para></entry>
 
392
</row>
 
393
<row>
 
394
<entry><para><keycombo
 
395
action="simul">&Ctrl;<keycap>Z</keycap></keycombo></para></entry>
 
396
<entry><para><link linkend="undo">Undo</link></para></entry>
 
397
</row>
 
398
<row>
 
399
<entry><para><keycombo
 
400
action="simul">&Ctrl;&Shift;<keycap>Z</keycap></keycombo></para></entry>
 
401
<entry><para><link linkend="redo">Redo</link></para></entry>
 
402
</row>
 
403
<row>
 
404
<entry><para><keycombo
 
405
action="simul">&Ctrl;<keycap>-</keycap></keycombo></para></entry>
 
406
<entry><para>Collapse One Local Level</para></entry>
 
407
</row>
 
408
<row>
 
409
<entry><para><keycombo
 
410
action="simul">&Ctrl;&Shift;<keycap>-</keycap></keycombo></para></entry>
 
411
<entry><para>Collapse Toplevel</para></entry>
 
412
</row>
 
413
<row>
 
414
<entry><para><keycombo
 
415
action="simul">&Ctrl;<keycap>+</keycap></keycombo></para></entry>
 
416
<entry><para>Expand One Local Level</para></entry>
 
417
</row>
 
418
<row>
 
419
<entry><para><keycombo
 
420
action="simul">&Ctrl;&Shift;<keycap>+</keycap></keycombo></para></entry>
 
421
<entry><para>Expand Toplevel</para></entry>
 
422
</row>
 
423
<row>
 
424
<entry><para><keycombo
 
425
action="simul"><keysym>Meta</keysym>&Ctrl;<keycap>V</keycap></keycombo></para></entry>
 
426
<entry><para>VI input mode</para></entry>
 
427
</row>
 
428
<row>
 
429
<entry><para><keycombo
 
430
action="simul">&Ctrl;<keycap>Space</keycap></keycombo></para></entry>
 
431
<entry><para>Invoke Code Completion</para></entry>
 
432
</row>
 
433
<row>
 
434
<entry><para><keycombo
 
435
action="simul"><keycap>F5</keycap></keycombo></para></entry>
 
436
<entry><para><link linkend="reload"> Reload</link></para></entry>
 
437
</row>
 
438
<row>
 
439
<entry><para><keycombo
 
440
action="simul"><keycap>F6</keycap></keycombo></para></entry>
 
441
<entry><para>Show/Hide Icon Border</para></entry>
 
442
</row>
 
443
<row>
 
444
<entry><para><keycombo
 
445
action="simul"><keycap>F7</keycap></keycombo></para></entry>
 
446
<entry><para> Switch to Command Line</para></entry>
 
447
</row>
 
448
<row>
 
449
<entry><para><keycombo
 
450
action="simul"><keycap>F9</keycap></keycombo></para></entry>
 
451
<entry><para> Show/Hide Folding Markers</para></entry>
 
452
</row>
 
453
<row>
 
454
<entry><para><keycombo
 
455
action="simul"><keycap>F10</keycap></keycombo></para></entry>
 
456
<entry><para> Dynamic Word Wrap</para></entry>
 
457
</row>
 
458
<row>
 
459
<entry><para><keycombo
 
460
action="simul"><keycap>F11</keycap></keycombo></para></entry>
 
461
<entry><para> Show/Hide Line Numbers</para></entry>
 
462
</row>
 
463
</tbody>
 
464
</tgroup>
 
465
</informaltable>
 
466
</sect1>
 
467
</chapter>
 
 
b'\\ No newline at end of file'