Add support for macros

Closes #270

CtrlU to toggle recording and CtrlJ to playback.
You can also rebind using the "ToggleMacro" and "PlayMacro"
actions.

Note that recursive macros are not yet supported.
This commit is contained in:
Zachary Yedidia
2016-09-06 10:43:45 -04:00
parent 966dac97f8
commit 539495d2f7
6 changed files with 81 additions and 0 deletions

View File

@@ -63,6 +63,8 @@ you can rebind them to your liking.
"CtrlQ": "Quit",
"CtrlE": "CommandMode",
"CtrlW": "NextSplit",
"CtrlU": "ToggleMacro",
"CtrlJ": "PlayMacro",
// Emacs-style keybindings
"Alt-f": "WordRight",
@@ -177,6 +179,8 @@ PreviousTab
NextTab
NextSplit
PreviousSplit
ToggleMacro
PlayMacro
```
Here is the list of all possible keys you can bind: