mirror of https://github.com/helix-editor/helix
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
6cca7375ec
This change automatically tracks pending text for for commands which use on-next-key callbacks. For example, `t` will await the next key event and "t" will be shown in the bottom right-hand corner to show that we're in a pending state. Previously, the text for these on-next-key commands needed to be hard-coded into the command definition which had some drawbacks: * It was easy to forget to write and clear the pending text. * If a command was remapped in a custom config, the pending text would still show the old key. With this change, pending text is automatically tracked based on the key events that lead to the command being executed. This works even when the command is remapped in config and when the on-next-key callback is nested under some key sequence (for example `mi`). |
2 years ago | |
---|---|---|
.. | ||
handlers | 2 years ago | |
clipboard.rs | 2 years ago | |
document.rs | 2 years ago | |
editor.rs | 2 years ago | |
graphics.rs | 2 years ago | |
gutter.rs | 2 years ago | |
info.rs | 3 years ago | |
input.rs | 2 years ago | |
keyboard.rs | 2 years ago | |
lib.rs | 3 years ago | |
macros.rs | 2 years ago | |
theme.rs | 2 years ago | |
tree.rs | 2 years ago | |
view.rs | 2 years ago |