class
Obsctl::TUI::Input::CommandMode
- Obsctl::TUI::Input::CommandMode
- Reference
- Object
Overview
Mutable state for the command palette edit line.
Defined in:
obsctl/tui/input/command_mode.crInstance Method Summary
- #active? : Bool
-
#append(char : Char) : Nil
Appends one printable character while active.
-
#backspace : Nil
Removes the previous character while active.
-
#clear : Nil
Clears the line and closes command mode.
- #line : String
-
#open(prefix : String = "/") : Nil
Opens the command palette with the configured command prefix.
-
#submit : String | Nil
Closes command mode and returns the submitted non-empty command.
Instance Method Detail
def open(prefix : String = "/") : Nil
#
Opens the command palette with the configured command prefix.