Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add event to keybind a command in the hosting app (#323)
Instead of affecting the editor this lets `Reedline::read_line` return with `Ok(Signal::Success)` containing a predefined command to be executed or consumed by the app using `reedline` as a line editor. The state of the editor is preserved. After the command execution in a REPL the host would call `Reedline::read_line` again and the line editor would be redrawn on the next free line. Command will not be added to the history in this config. Open for debate if this should not expect printed output from the command and try to redraw on top or reset some state. Addresses #312
- Loading branch information