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:
@@ -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.
|
||||
________________________________________________________________________________
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user