diff options
author | Daniel S Poulin | 2022-03-01 01:29:22 +0000 |
---|---|---|
committer | GitHub | 2022-03-01 01:29:22 +0000 |
commit | b13d44156c0f2ebe700c4169e87839c976c4fedc (patch) | |
tree | 5de6f7490e50811e4effcb32b58d36141a248aa9 /helix-view/src | |
parent | bdbf42387667b5fa4fa3b89bdb0687cf8cfd2eb0 (diff) |
Show infobox to hint textobjects with `mi` and `ma` (#1686)
* Show infobox to hint textobjects with `mi` and `ma`
* Add note to infobox than any pair of characters will work too
The wording could probably be a little more clear, but I wanted to
keep it short but still accurate.
* Don't allocate a vec for the static help text
* Fix bug where `mi<esc>` would swallow next input and persist infobox
* Better help text for arbitrary pair matching in textobject selection
* Add way to add fake pending key data below status, use with `mi`/`ma`
This is a bit hacky as it makes use of global state which will end
up managed in multiple places, but has precedent in the way autoinfo
works. There should probably be a bigger refactor to handle this
kind of state better.
* Return early on anything other than `mi` and `ma` for autoinfo
* Remove "ascii" from help text with `mi` and `ma`
* Update helix-term/src/ui/editor.rs
Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
Diffstat (limited to 'helix-view/src')
-rw-r--r-- | helix-view/src/editor.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/helix-view/src/editor.rs b/helix-view/src/editor.rs index 85d9be67..3a2a9af8 100644 --- a/helix-view/src/editor.rs +++ b/helix-view/src/editor.rs @@ -299,6 +299,7 @@ pub struct Editor { pub idle_timer: Pin<Box<Sleep>>, pub last_motion: Option<Motion>, + pub pseudo_pending: Option<String>, pub exit_code: i32, } @@ -346,6 +347,7 @@ impl Editor { autoinfo: None, idle_timer: Box::pin(sleep(config.idle_timeout)), last_motion: None, + pseudo_pending: None, config, auto_pairs, exit_code: 0, |