mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-24 17:01:25 +02:00
Add some rough preliminary documentation for Text Edit mode.
This commit is contained in:
@@ -12,12 +12,8 @@
|
|||||||
<h1 tag="insert-mode insert mode-insert">Insert mode</h1>
|
<h1 tag="insert-mode insert mode-insert">Insert mode</h1>
|
||||||
<toc start="2"/>
|
<toc start="2"/>
|
||||||
|
|
||||||
<!-- TODO: This makes no sense. Rewrite. -->
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
Insert mode is used to enter text in text boxes and text areas. When
|
TODO: INTRODUCTORY TEXT...
|
||||||
the <o>insertmode</o> option is set, insert mode is immediately
|
|
||||||
entered when focusing a text area.
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
@@ -30,6 +26,11 @@
|
|||||||
|
|
||||||
<h2 tag="ins-special-keys">Insert-mode special keys</h2>
|
<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>
|
<item>
|
||||||
<tags><![CDATA[i_<C-i>]]></tags>
|
<tags><![CDATA[i_<C-i>]]></tags>
|
||||||
<spec><C-i></spec>
|
<spec><C-i></spec>
|
||||||
@@ -43,8 +44,8 @@
|
|||||||
<spec><C-t></spec>
|
<spec><C-t></spec>
|
||||||
<description short="true">
|
<description short="true">
|
||||||
<p>
|
<p>
|
||||||
Enter TextEdit mode. This is useful for quick editing of text fields
|
Enter Text Edit mode. This is useful for quick editing of text
|
||||||
with basic Vim-keys support. See also <o>insertmode</o>.
|
fields with basic Vim-keys support. See also <o>insertmode</o>.
|
||||||
</p>
|
</p>
|
||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
@@ -57,6 +58,502 @@
|
|||||||
</description>
|
</description>
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-w>]]></tags>
|
||||||
|
<spec><Ctrl-w></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Delete the previous word.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-u>]]></tags>
|
||||||
|
<spec><Ctrl-u></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Delete until the beginning of the current line.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-k>]]></tags>
|
||||||
|
<spec><Ctrl-k></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Delete until the end of the current line.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-a>]]></tags>
|
||||||
|
<spec><Ctrl-a></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Move cursor to the beginning of the current line.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-e>]]></tags>
|
||||||
|
<spec><Ctrl-e></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Move cursor to the end of the current line.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-h>]]></tags>
|
||||||
|
<spec><Ctrl-h></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Delete the character to the left.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<Ctrl-d>]]></tags>
|
||||||
|
<spec><Ctrl-d></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Delete the character to the right.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags><![CDATA[i_<S-Insert>]]></tags>
|
||||||
|
<spec><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>
|
||||||
|
|
||||||
|
<h3 tag="tedit-cursor-motions">Cursor motions</h3>
|
||||||
|
|
||||||
|
<p>Left-right motions</p>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<spec><oa>count</oa>l</spec>
|
||||||
|
<description short="true">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<p>Up-down motions</p>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<p>Word motions</p>
|
||||||
|
|
||||||
|
<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><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><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>
|
||||||
|
|
||||||
|
<h3 tag="tedit-deleting">Deleting text</h3>
|
||||||
|
|
||||||
|
<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>
|
||||||
|
<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_<C-r></tags>
|
||||||
|
<spec><C-r></spec>
|
||||||
|
<description short="true">
|
||||||
|
<p>
|
||||||
|
Redo undone changes.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
|
<item>
|
||||||
|
<tags>t_~</tags>
|
||||||
|
<spec>~</spec>
|
||||||
|
<description>
|
||||||
|
<p>
|
||||||
|
Switch case of the character under the cursor and move the cursor
|
||||||
|
to the right.
|
||||||
|
</p>
|
||||||
|
</description>
|
||||||
|
</item>
|
||||||
|
|
||||||
</document>
|
</document>
|
||||||
|
|
||||||
<!-- vim:se sts=4 sw=4 et: -->
|
<!-- vim:se sts=4 sw=4 et: -->
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ FEATURES:
|
|||||||
8 <C-o>/<C-i> should work as in vim (i.e., save page positions as well as
|
8 <C-o>/<C-i> should work as in vim (i.e., save page positions as well as
|
||||||
locations in the history list).
|
locations in the history list).
|
||||||
8 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
|
8 jump to the next heading with ]h, next image ]i, previous textbox [t and so on
|
||||||
|
7 Specify all INSERT mode mappings rather than falling through to the host apps
|
||||||
|
mystery meat mappings.
|
||||||
7 consider generating most of :help :index
|
7 consider generating most of :help :index
|
||||||
7 use ctrl-n/p in insert mode for word completion
|
7 use ctrl-n/p in insert mode for word completion
|
||||||
7 implement QuickFix window based on ItemList
|
7 implement QuickFix window based on ItemList
|
||||||
|
|||||||
Reference in New Issue
Block a user