All notable changes to the ModalEdit extension will be documented in this file.
startInNormalModesetting, resolving issue #1
modaledit.typeNormalKeyswhich can be used to "call" key bindings. Also fixes issue #3
modaledit.searchcommand. This invokes normal mode key bindings (using
modaledit.typeNormalKeys) after successful search. The argument can be used to enter insert mode, or clear selection after search, for example.
__selectionvariable in JS expressions to access currently selected text.
Update that was sparked by issue #6. Contains multiple new features:
repeatattribute added to commands with parameters.
__keySequencevariable added to JS expressions. Contains the key sequence that was used to invoke a command.
helpadded to keymaps. The help string is shown in the status bar when the associated keymap is active.
modaledit.selectBetweenselects text between two delimiter strings. Especially useful when combined with the key ranges and recursive keymaps introduced in version 1.5.
__keySequencevariable available in JS expressions.
Two "repeat" related bigger improvements:
modaledit.repeatLastChangecommand emulates Vim's dot
.command quite faithfully.
repeatproperty used in context with commands taking arguments can now also contain a JS expression that returns a boolean value. In this case, the value is used as a condition that tells if the command should be repeated. The command is repeated as long as the expression returns a truthy value.
And some minor changes:
__rkeysavailable for use in JS expressions. It contains the keys pressed to invoke a command in reverse order. This is handy if you need to access the last keys in the sequence. They are conveniently the first ones in