helix/helix-view/src
Michael Davis 6cca7375ec
Automatically track pseudo-pending text (#4077)
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`).
2022-10-04 00:14:57 +09:00
..
handlers Make external terminal provider configurable 2022-08-22 10:11:04 +09:00
clipboard.rs One more windows fix... 2022-08-22 10:29:11 +09:00
document.rs Change focus to modified docs on quit (#3872) 2022-10-04 00:07:21 +09:00
editor.rs Automatically track pseudo-pending text (#4077) 2022-10-04 00:14:57 +09:00
graphics.rs Fix LF line-endings (#3316) 2022-08-03 07:53:57 -05:00
gutter.rs Make mode editor-wide rather than per-document 2022-09-01 16:14:38 +09:00
info.rs Handle newlines in register infobox 2022-02-10 10:52:06 +09:00
input.rs fix: Don't translate mouse up events as down 2022-08-31 11:36:18 +09:00
keyboard.rs Update to crossterm-0.25 (#3390) 2022-08-22 10:29:30 +09:00
lib.rs Split off dap event handlers into helix-view to allow reuse 2022-03-28 11:01:59 +09:00
macros.rs Expand doc/view macros to allow fetching specific id 2022-09-03 12:36:06 +09:00
theme.rs Inherit theme (#3067) 2022-10-03 23:34:29 +09:00
tree.rs Fix cargo doc warnings, and add GitHub action to ensure it (#3650) 2022-09-03 09:58:16 -05:00
view.rs Rename padding to spacer, remove by default 2022-07-26 10:10:06 +09:00