1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 07:42:26 +01:00

Slim down insert.xml again now that all mappings are described in the autogenerated index.

Rename it to editing.xml, as it describes text (area) editing in general, not
only Insert mode.

--HG--
rename : common/locale/en-US/insert.xml => common/locale/en-US/editing.xml
This commit is contained in:
Štěpán Němec
2011-02-20 23:31:05 +01:00
parent e084c7488f
commit db14f13353
6 changed files with 49 additions and 578 deletions

View File

@@ -17,7 +17,7 @@
<include href="browsing" tag="browsing.xml"/>
<include href="buffer" tag="buffer.xml"/>
<include href="cmdline" tag="cmdline.xml"/>
<include href="insert" tag="insert.xml"/>
<include href="editing" tag="editing.xml"/>
<include href="options" tag="options.xml"/>
<include href="pattern" tag="pattern.xml"/>
<include href="tabs" tag="tabs.xml"/>

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="dactyl://content/help.xsl"?>
<!DOCTYPE document SYSTEM "dactyl://content/dtd">
<document
name="editing"
title="&dactyl.appName; Editing Text"
xmlns="&xmlns.dactyl;"
xmlns:html="&xmlns.html;">
<h1 tag="text-area text-field editing">Editing Text Fields</h1>
<toc start="2"/>
<p>
&dactyl.appName; provides several ways to edit text areas or input fields.
After switching focus to a text field, Insert mode or Text Edit mode is
activated, depending on your <o>insertmode</o> settings. You can also
use an <link topic="'editor'">external editor</link>.
</p>
<h2 tag="insert-mode insert">Insert mode</h2>
<p>
In Insert mode, all keys except for those described in the
<link topic="i-map-index">index</link> are passed directly to &dactyl.host;.
</p>
<h2 tag="text-edit-mode text-edit">Text Edit mode</h2>
<p>
Text Edit mode provides basic Vim-like text editing. It can be entered
from Insert mode by pressing <k name="C-t" mode="i"/> or started directly
when a text area is focused if <o>insertmode</o> is unset. See
<link topic="t-map-index">here</link> for a list of currently supported
mappings.
</p>
</document>
<!-- vim:se sts=4 sw=4 et: -->

View File

@@ -1,571 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="dactyl://content/help.xsl"?>
<!DOCTYPE document SYSTEM "dactyl://content/dtd">
<document
name="insert"
title="&dactyl.appName; Insert Mode"
xmlns="&xmlns.dactyl;"
xmlns:html="&xmlns.html;">
<h1 tag="insert-mode insert mode-insert">Insert mode</h1>
<toc start="2"/>
<!-->
TODO: INTRODUCTORY TEXT...
</-->
<h2 tag="ins-special-keys">Insert-mode special keys</h2>
<p>
In Insert mode the following key mappings are processed by
&dactyl.appName;. All other keys are passed directly to &dactyl.host;.
</p>
<item>
<tags><![CDATA[i_<C-i>]]></tags>
<spec>&lt;C-i></spec>
<description short="true">
<p>Launch the external editor. See the <o>editor</o> option.</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-t>]]></tags>
<strut/>
<spec>&lt;C-t></spec>
<description>
<p>
Enter Text Edit mode. This is useful for quick editing of text
fields with basic Vim-keys support. See also <o>insertmode</o>.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-]>]]></tags>
<spec>&lt;C-]></spec>
<description short="true">
<p>Expand an Insert-mode abbreviation.</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-w>]]></tags>
<spec>&lt;C-w></spec>
<description short="true">
<p>
Delete the previous word.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-u>]]></tags>
<spec>&lt;C-u></spec>
<description short="true">
<p>
Delete until the beginning of the current line.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-k>]]></tags>
<spec>&lt;C-k></spec>
<description short="true">
<p>
Delete until the end of the current line.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-a>]]></tags>
<spec>&lt;C-a></spec>
<description short="true">
<p>
Move cursor to the beginning of the current line.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-e>]]></tags>
<spec>&lt;C-e></spec>
<description short="true">
<p>
Move cursor to the end of the current line.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-h>]]></tags>
<spec>&lt;C-h></spec>
<description short="true">
<p>
Delete the character to the left.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<C-d>]]></tags>
<spec>&lt;C-d></spec>
<description short="true">
<p>
Delete the character to the right.
</p>
</description>
</item>
<item>
<tags><![CDATA[i_<S-Insert>]]></tags>
<spec>&lt;S-Insert></spec>
<description short="true">
<p>
Insert the clipboard/selection.
</p>
</description>
</item>
<h2 tag="text-edit-mode text-edit tedit-mode">Text Edit mode</h2>
<item>
<tags>t_i</tags>
<spec>t_i</spec>
<description short="true">
<p>Starts Insert mode in text areas when <o>insertmode</o> is not set.</p>
</description>
</item>
<item>
<tags><![CDATA[t_<C-i>]]></tags>
<spec>&lt;C-i></spec>
<description short="true">
<p>Launch the external editor. See the <o>editor</o> option.</p>
</description>
</item>
<h3 tag="tedit-cursor-motions">Cursor motions</h3>
<h4>Left-right motions</h4>
<item>
<tags><![CDATA[t_h t_<Left> t_<BS>]]></tags>
<spec><oa>count</oa>h</spec>
<description short="true">
<p>
Move the cursor <oa>count</oa> characters to the left.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_l t_<Right> t_<Space>]]></tags>
<strut/>
<spec><oa>count</oa>l</spec>
<description>
<p>
Move the cursor <oa>count</oa> characters to the right.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_0 t_^ t_<Home>]]></tags>
<spec>0</spec>
<description short="true">
<p>
Move the cursor to the first character in the line.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_$ t_<End>]]></tags>
<spec>$</spec>
<description short="true">
<p>
Move the cursor to the last character in the line.
</p>
</description>
</item>
<item>
<tags>t_f</tags>
<spec><oa>count</oa>f</spec>
<description short="true">
<p>
Move to a character on the current line after the cursor.
</p>
</description>
</item>
<item>
<tags>t_F</tags>
<spec><oa>count</oa>F</spec>
<description short="true">
<p>
Move to a character on the current line before the cursor.
</p>
</description>
</item>
<item>
<tags>t_t</tags>
<spec><oa>count</oa>t</spec>
<description short="true">
<p>
Move before a character on the current line.
</p>
</description>
</item>
<item>
<tags>t_T</tags>
<spec><oa>count</oa>T</spec>
<description short="true">
<p>
Move before a character on the current line, backwards.
</p>
</description>
</item>
<h4>Up-down motions</h4>
<item>
<tags><![CDATA[t_k t_<Up>]]></tags>
<spec><oa>count</oa>k</spec>
<description short="true">
<p>
Move the cursor <oa>count</oa> lines upward.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_j t_<Down> t_<Return>]]></tags>
<spec><oa>count</oa>j</spec>
<description short="true">
<p>
Move the cursor <oa>count</oa> lines downward.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_gg t_<C-Home>]]></tags>
<spec>gg</spec>
<description short="true">
<p>
Move to the first line.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_G t_<C-End>]]></tags>
<spec>G</spec>
<description short="true">
<p>
Move to the last line.
</p>
</description>
</item>
<h4>Word motions</h4>
<item>
<tags><![CDATA[t_b t_B t_<C-Left>]]></tags>
<spec><oa>count</oa>b</spec>
<description short="true">
<p>
Move the cursor <oa>count</oa> words backwards.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_w t_W t_e t_<C-Right>]]></tags>
<spec><oa>count</oa>w</spec>
<description short="true">
<p>
Move the cursor <oa>count</oa> words forwards.
</p>
</description>
</item>
<h3 tag="tedit-scroll">Scrolling</h3>
<item>
<tags><![CDATA[t_<C-f> t_<PageDown>]]></tags>
<spec><oa>count</oa>&lt;C-f></spec>
<description short="true">
<p>
Scroll the text area <oa>count</oa> pages down.
</p>
</description>
</item>
<item>
<tags><![CDATA[t_<C-b> t_<PageUp>]]></tags>
<spec><oa>count</oa>&lt;C-b></spec>
<description short="true">
<p>
Scroll the text area <oa>count</oa> pages up.
</p>
</description>
</item>
<h3 tag="tedit-inserting">Insert commands</h3>
<item>
<tags>t_a</tags>
<spec>a</spec>
<description short="true">
<p>
Append text after the cursor.
</p>
</description>
</item>
<item>
<tags>t_A</tags>
<spec>A</spec>
<description short="true">
<p>
Append text at the end of the line.
</p>
</description>
</item>
<item>
<tags>t_i</tags>
<spec>i</spec>
<description short="true">
<p>
Insert text before the cursor.
</p>
</description>
</item>
<item>
<tags>t_I</tags>
<spec>I</spec>
<description short="true">
<p>
Insert text at the beginning of the line.
</p>
</description>
</item>
<item>
<tags>t_o</tags>
<spec>o</spec>
<description short="true">
<p>
Insert text in a new line below the cursor.
</p>
</description>
</item>
<item>
<tags>t_O</tags>
<spec>O</spec>
<description short="true">
<p>
Insert text in a new line above the cursor.
</p>
</description>
</item>
<h4 tag="tedit-deleting">Deleting text</h4>
<item>
<tags>t_d</tags>
<spec>d<a>motion</a></spec>
<description short="true">
<p>
Delete <a>motion</a> text.
</p>
</description>
</item>
<item>
<tags>t_D</tags>
<spec>D</spec>
<description short="true">
<p>
Delete the characters under the cursor until the end of the line.
</p>
</description>
</item>
<item>
<tags>t_x</tags>
<spec>x</spec>
<description short="true">
<p>
Delete the character to the left of the cursor.
</p>
</description>
</item>
<item>
<tags>t_X</tags>
<spec>X</spec>
<description short="true">
<p>
Delete the character to the right of the cursor.
</p>
</description>
</item>
<h3 tag="tedit-visual-start">Starting and stopping Visual mode</h3>
<item>
<tags>t_v</tags>
<spec>v</spec>
<description short="true">
<p>
Start characterwise visual mode.
</p>
</description>
</item>
<item>
<tags>t_V</tags>
<spec>V</spec>
<description short="true">
<p>
Start linewise visual mode.
</p>
</description>
</item>
<item>
<tags>v_v</tags>
<spec><a>Visual</a>v</spec>
<description short="true">
<p>
Stop characterwise visual mode.
</p>
</description>
</item>
<item>
<tags>v_V</tags>
<spec><a>Visual</a>V</spec>
<description short="true">
<p>
Start linewise visual mode.
</p>
</description>
</item>
<h3 tag="tedit-replacing texedit-delete-insert">Delete and insert</h3>
<item>
<tags>t_c</tags>
<spec>c<a>motion</a></spec>
<description short="true">
<p>
Delete <a>motion</a> text and start insert.
</p>
</description>
</item>
<item>
<tags>t_C</tags>
<spec>C</spec>
<description short="true">
<p>
Delete from the cursor to the end of the line and start insert.
</p>
</description>
</item>
<item>
<tags>t_s</tags>
<spec>s</spec>
<description short="true">
<p>
Delete the character in front of the cursor and start insert.
</p>
</description>
</item>
<item>
<tags>t_S</tags>
<spec>S</spec>
<description short="true">
<p>
Delete the current line and start insert.
</p>
</description>
</item>
<h3 tag="tedit-copy-move">Copying and moving text</h3>
<item>
<tags>t_y v_y</tags>
<spec>y<a>motion</a></spec>
<strut/>
<spec><a>Visual</a>y</spec>
<description short="true">
<p>
Yank <a>motion</a> text to the clipboard or the selection if <a>Visual</a>.
</p>
</description>
</item>
<item>
<tags>t_p</tags>
<spec><oa>count</oa>p</spec>
<description short="true">
<p>
Paste clipboard contents.
</p>
</description>
</item>
<h3 tag="tedit-undo-commands">Undo and redo commands</h3>
<item>
<tags>t_u</tags>
<spec>u</spec>
<description short="true">
<p>
Undo changes.
</p>
</description>
</item>
<item>
<tags>t_&lt;C-r></tags>
<spec>&lt;C-r></spec>
<description short="true">
<p>
Redo undone changes.
</p>
</description>
</item>
<item>
<tags>t_~</tags>
<strut/>
<spec>~</spec>
<description>
<p>
Switch case of the character under the cursor and move the cursor
to the right.
</p>
</description>
</item>
</document>
<!-- vim:se sts=4 sw=4 et: -->

View File

@@ -45,8 +45,8 @@
Command-line editing.
</li>
<li>
<link topic="insert">Insert mode</link>:
Insert-mode editing.
<link topic="editing">Editing text</link>:
Text area and input field editing.
</li>
<li>
<link topic="options">Options</link>:

View File

@@ -39,8 +39,8 @@
Command-line editing.
</li>
<li>
<link topic="insert">Insert mode</link>:
Insert-mode editing.
<link topic="editing">Editing text</link>:
Text area and input field editing.
</li>
<li>
<link topic="options">Options</link>:

View File

@@ -39,8 +39,8 @@
Command-line editing.
</li>
<li>
<link topic="insert">Insert mode</link>:
Insert-mode editing.
<link topic="editing">Editing text</link>:
Text area and input field editing.
</li>
<li>
<link topic="options">Options</link>: