1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-19 12:05:46 +01:00

Added -javascript option to :abbrev, thanks mostly to anekos.

--HG--
extra : rebase_source : 06036f7e9e2bb21fc77b1cb783c8f7e4a7e3f50d
This commit is contained in:
Kris Maglione
2010-09-21 16:13:31 -04:00
parent 6170b3197b
commit a285d6a405
6 changed files with 329 additions and 321 deletions

View File

@@ -416,6 +416,17 @@
<a>lhs</a>. If no arguments are given, list all
abbreviations.
</p>
<p>
If the <em>-javascript</em> (short names <em>-js</em>,
<em>-j</em>) option is given, <a>lhs</a> is expanded to
the value <em>return</em>ed by the JavaScript code
<a>rhs</a>. The code is evaluated with the variable
<em>editor</em> set to the editable element that the
abbreviation is currently being expanded in. The code
should <em>not</em> make any changes to the contents of
the editor.
</p>
</description>
</item>