1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-04-18 17:33:33 +02:00

Make abbreviations expand on quotes as well as space.

Also added rough documentation for insert mode.

TODO: Abbreviations should also expand on <CR> and <Tab>, but right now
adding <CR> to the mappings.add() has no effect, and adding <Tab> to the
mappings.add() breaks tab completion.

TODO: Rather than listing non-keyword characters in two places (ui.js
and mappings.js), they should be specified in one location (that could
someday be trumped by an 'iskeyword' option).
This commit is contained in:
Ted Pavlic
2009-01-20 10:41:19 -05:00
parent 3abd88276e
commit 9993f0594e
6 changed files with 54 additions and 12 deletions

View File

@@ -189,9 +189,9 @@ contains any non-whitespace character (e.g., "def'").
Strings that cannot be abbreviations include "a'b" and "a b".
An abbreviation is recognized when a space is typed after the
abbreviation. There are no default abbreviations, and abbreviations are
never recursive.
An abbreviation is recognized when a space, quote character, or
[m]<C-]>[m] is typed after the abbreviation. There are no default
abbreviations, and abbreviations are never recursive.
|:ab| |:abbreviate|
||:ab[breviate] {lhs} {rhs}|| +
@@ -199,8 +199,8 @@ never recursive.
||:ab[breviate]||
________________________________________________________________________________
Abbreviate a key sequence. Abbreviate {lhs} to {rhs}. If only {lhs} is given,
list all abbreviations that start with {lhs}. List all abbreviations, if no
arguments are given.
list all abbreviations that start with {lhs}. If no arguments are given,
list all abbreviations.
________________________________________________________________________________