PageRenderTime 255ms CodeModel.GetById 250ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/42docs/users-guide/caret.html

#
HTML | 49 lines | 49 code | 0 blank | 0 comment | 0 complexity | d5d21e939de5ab4a36b5910a95877f79 MD5 | raw file
 1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Moving The Caret</title><meta name="generator" content="DocBook XSL Stylesheets V1.65.1"><link rel="home" href="index.html" title="jEdit 4.2 User's Guide"><link rel="up" href="editing.html" title="Chapter 5. Editing Text"><link rel="previous" href="editing.html" title="Chapter 5. Editing Text"><link rel="next" href="selection.html" title="Selecting Text"></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">Moving The Caret</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="editing.html">Prev</a> </td><th width="60%" align="center">Chapter 5. Editing Text</th><td width="20%" align="right"> <a accesskey="n" href="selection.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="caret"></a>Moving The Caret</h2></div></div><div></div></div><p>
 2   The simplest way to move the caret is to click the
 3   mouse at the desired location in the text area. The caret can also be moved
 4   using the keyboard.
 5  </p><p>
 6   The <tt class="keycap">LEFT</tt>, <tt class="keycap">RIGHT</tt>, <tt class="keycap">UP</tt> and
 7   <tt class="keycap">DOWN</tt> keys move the caret in the respective direction, and
 8   the <tt class="keycap">PAGE_UP</tt> and <tt class="keycap">PAGE_DOWN</tt> keys move the
 9   caret up and down one screenful, respectively.
10  </p><p>
11   When pressed once, the <tt class="keycap">HOME</tt> key moves the caret to the first
12   non-whitespace character of the current screen line. Pressing it a second
13   time moves the caret to the beginning of the current buffer line. Pressing it
14   a third time moves the caret to the first visible line.
15  </p><p>
16   The <tt class="keycap">END</tt> key behaves in a
17   similar manner, going to the last non-whitespace character of the current
18   screen line, the end of
19   the current buffer line, and finally to the last visible line.
20  </p><p>
21   If soft wrap is disabled, a &#8220;<span class="quote">screen line</span>&#8221; is the
22   same as a  &#8220;<span class="quote">buffer line</span>&#8221;. If soft wrap is enabled,
23   a screen line is a section of a newline-delimited buffer line that fits
24   within the wrap margin width. See <a href="word-wrap.html" title="Wrapping Long Lines">the section called &#8220;Wrapping Long Lines&#8221;</a>.
25  </p><p>
26   <tt class="keycap">C+HOME</tt> and
27   <tt class="keycap">C+END</tt> move the
28   caret to the beginning and end of the buffer, respectively.
29  </p><p>
30   More advanced caret movement is covered in
31   <a href="words.html" title="Working With Words">the section called &#8220;Working With Words&#8221;</a>, <a href="lines.html" title="Working With Lines">the section called &#8220;Working With Lines&#8221;</a> and
32   <a href="paragraphs.html" title="Working With Paragraphs">the section called &#8220;Working With Paragraphs&#8221;</a>.
33  </p><div class="sidebar"><p class="title"><b>The Home and End keys</b></p><p>
34    If you prefer more traditional behavior for the
35    <tt class="keycap">HOME</tt> and <tt class="keycap">END</tt> keys, you can reassign
36    the respective keyboard shortcuts in the <span><b class="guibutton">Shortcuts</b></span>
37    pane of the
38    <span><b class="guimenu">Utilities</b></span>&gt;<span><b class="guimenuitem">Global Options</b></span>; see <a href="global-opts.html#shortcuts-pane" title="The Shortcuts Pane">the section called &#8220;The Shortcuts Pane&#8221;</a>.
39   </p><p>
40    By default, the shortcuts are assigned as follows:
41   </p><div class="itemizedlist"><ul type="disc"><li><p><tt class="keycap">HOME</tt> is bound to <span><b class="guimenuitem">Smart
42    Home</b></span>.</p></li><li><p><tt class="keycap">END</tt> is bound to <span><b class="guimenuitem">Smart
43    End</b></span>.</p></li><li><p><tt class="keycap">S+HOME</tt> is bound to <span><b class="guimenuitem">Select to Smart
44    Home Position</b></span>.</p></li><li><p><tt class="keycap">S+END</tt> is bound to <span><b class="guimenuitem">Select to Smart
45    End Position</b></span>.</p></li></ul></div><p>
46    However you can rebind them to anything you want, for example, various
47    combinations of the following, or indeed any other command or macro:
48   </p><div class="itemizedlist"><ul type="disc"><li><p><span><b class="guimenuitem">Go to Start/End of White Space</b></span>.</p></li><li><p><span><b class="guimenuitem">Go to Start/End of Line</b></span>.</p></li><li><p><span><b class="guimenuitem">Go to Start/End of Buffer</b></span>.</p></li><li><p><span><b class="guimenuitem">Select to Start/End of White Space
49    </b></span>.</p></li><li><p><span><b class="guimenuitem">Select to Start/End of Line</b></span>.</p></li><li><p><span><b class="guimenuitem">Select to Start/End of Buffer</b></span>.</p></li></ul></div></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="editing.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="selection.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 5. Editing Text </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Selecting Text</td></tr></table></div></body></html>