diff options
author | Yonatan Goldschmidt <yon.goldschmidt@gmail.com> | 2019-12-14 23:42:03 +0200 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2020-01-12 13:09:27 +1100 |
commit | 853aaa06f24c98191a44a38eedd4ec2a0e63d3eb (patch) | |
tree | 8ea2c47102ae540789b481f665518d898f79c61b /ports/unix/variants/coverage/mpconfigvariant.h | |
parent | dce590c29dbefea253f4034c4bde3508f205364e (diff) |
lib/mp-readline: Add word-based move/delete EMACS key sequences.
This commit adds backward-word, backward-kill-word, forward-word,
forward-kill-word sequences for the REPL, with bindings to Alt+F, Alt+B,
Alt+D and Alt+Backspace respectively. It is disabled by default and can be
enabled via MICROPY_REPL_EMACS_WORDS_MOVE.
Further enabling MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE adds extra bindings
for these new sequences: Ctrl+Right, Ctrl+Left and Ctrl+W.
The features are enabled on unix micropython-coverage and micropython-dev.
Diffstat (limited to 'ports/unix/variants/coverage/mpconfigvariant.h')
-rw-r--r-- | ports/unix/variants/coverage/mpconfigvariant.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ports/unix/variants/coverage/mpconfigvariant.h b/ports/unix/variants/coverage/mpconfigvariant.h index f383a8370..719292453 100644 --- a/ports/unix/variants/coverage/mpconfigvariant.h +++ b/ports/unix/variants/coverage/mpconfigvariant.h @@ -34,6 +34,8 @@ #define MICROPY_FLOAT_HIGH_QUALITY_HASH (1) #define MICROPY_ENABLE_SCHEDULER (1) #define MICROPY_READER_VFS (1) +#define MICROPY_REPL_EMACS_WORDS_MOVE (1) +#define MICROPY_REPL_EMACS_EXTRA_WORDS_MOVE (1) #define MICROPY_WARNINGS_CATEGORY (1) #define MICROPY_MODULE_GETATTR (1) #define MICROPY_PY_DELATTR_SETATTR (1) |