diff options
author | Blaž Hrastnik | 2020-12-10 09:13:42 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2020-12-10 09:13:42 +0000 |
commit | 5103dc96173afaa1c0793db56f60ec1fef1e0fc3 (patch) | |
tree | eda1e63fa536b589974c5bc7c7aff12fdac8c4f2 /helix-term/src/compositor.rs | |
parent | be3c02104600e5bba8e3af7bc9787e62cba30183 (diff) |
move commands and keymap back to terminal.
Command needs to be able to deal with UI. We'll separate it again later
on.
Diffstat (limited to 'helix-term/src/compositor.rs')
-rw-r--r-- | helix-term/src/compositor.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/helix-term/src/compositor.rs b/helix-term/src/compositor.rs index f859f947..158a8b28 100644 --- a/helix-term/src/compositor.rs +++ b/helix-term/src/compositor.rs @@ -20,6 +20,14 @@ use tui::buffer::Buffer as Surface; pub(crate) type Callback = Box<dyn Fn(&mut Compositor)>; +// --> EventResult should have a callback that takes a context with methods like .popup(), +// .prompt() etc. That way we can abstract it from the renderer. +// Q: How does this interact with popups where we need to be able to specify the rendering of the +// popup? +// A: It could just take a textarea. +// +// If Compositor was specified in the callback that's then problematic because of + // Cursive-inspired pub(crate) enum EventResult { Ignored, |