PageRenderTime 19ms CodeModel.GetById 12ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms


HTML | 37 lines | 37 code | 0 blank | 0 comment | 0 complexity | bfc96ffae6ee5fb560f07a7b17f3367e MD5 | raw file
 1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Working With Words</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2"><link rel="start" href="index.html" title="jEdit 4.3 User's Guide"><link rel="up" href="editing.html" title="Chapter 5. Editing Text"><link rel="prev" href="undo-redo.html" title="Undo and Redo"><link rel="next" href="lines.html" title="Working With Lines"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Working With Words</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="undo-redo.html">Prev</a> </td><th width="60%" align="center">Chapter 5. Editing Text</th><td width="20%" align="right"> <a accesskey="n" href="lines.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="words"></a>Working With Words</h2></div></div></div><p><code class="keycap">C+LEFT</code> and <code class="keycap">C+RIGHT</code> move the
 2        caret a word at a time. Holding down <code class="keycap">Shift</code> in addition
 3        to the above extends the selection a word at a time.</p><p>A single word can be selected by double-clicking with the mouse,
 4        or using the <span class="guimenu"><strong>Edit</strong></span>&gt;<span class="guisubmenu"><strong>More
 5        Selection</strong></span>&gt;<span class="guimenuitem"><strong>Select Word</strong></span> command
 6        (shortcut: <code class="keycap">C+e w</code>). A selection that begins and ends on
 7        word boundaries can be created by double-clicking and dragging.</p><p><code class="keycap">C+BACKSPACE</code> and <code class="keycap">C+DELETE</code> delete
 8        the word before or after the caret, respectively.</p><p><span class="guimenu"><strong>Edit</strong></span>&gt;<span class="guimenuitem"><strong>Complete
 9        Word</strong></span> (shortcut: <code class="keycap">C+b</code>) locates possible
10        completions for the word at the caret, first by looking in the current
11        edit mode's syntax highlighting keyword list, and then in the current
12        buffer for words that begin with the word at the caret. This serves as a
13        very basic code completion feature.</p><p>If there is only one completion, it will be inserted into the
14        buffer immediately.</p><p>If multiple completions were found, the longest common prefix is
15        inserted into the buffer, and a popup is shown below the caret position
16        listing the completions.</p><p>To insert a completion from the list, either select it using the
17        <code class="keycap">UP</code> and <code class="keycap">DOWN</code> keys and press
18        <code class="keycap">ENTER</code>, press a digit to insert one of the first ten
19        completions (1 is the first completion; 9 is the 9th; 0 is the 10th), or
20        click the desired completion with the mouse. To close the popup without
21        inserting a completion, press <code class="keycap">ESCAPE</code>.</p><p>Typing while the popup is visible will automatically update the
22        popup and narrow the set of completions as necessary.</p><p><span class="guimenu"><strong>Edit</strong></span>&gt;<span class="guimenuitem"><strong>Word Count</strong></span>
23        displays a dialog box with the number of characters, words and lines in
24        the current buffer.</p><div class="sect2" lang="en"><div class="titlepage"><div><div><h3 class="title"><a name="id2556150"></a>What's a Word?</h3></div></div></div><p>The default behavior of the <code class="keycap">C+LEFT</code>,
25            <code class="keycap">C+RIGHT</code>, <code class="keycap">C+BACKSPACE</code> and
26            <code class="keycap">C+DELETE</code> commands is to stop both at the beginning
27            and the end of each word. Normally, a word is a sequence of
28            alphanumerics, but you can add other characters as part of 
29            what jEdit considers to be a 'word', set on a global or mode basis
30            from <span class="guimenuitem"><strong>Global Options -  Editing - Extra Word
31            Characters</strong></span>. 
32            In addition, this behavior can be changed by remapping
33            these keystrokes to alternative actions whose names end with
34            <span class="guimenuitem"><strong>(Eat Whitespace)</strong></span> in the
35            <span class="guibutton"><strong>Shortcuts</strong></span> pane of the
36            <span class="guimenu"><strong>Utilities</strong></span>&gt;<span class="guimenuitem"><strong>Global
37            Options</strong></span> dialog box; see <a class="xref" href="global-opts.html#shortcuts-pane" title="The Shortcuts Pane">the section called &#8220;The Shortcuts Pane&#8221;</a>.</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="undo-redo.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="editing.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="lines.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Undo and Redo </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Working With Lines</td></tr></table></div></body></html>