class Obsctl::TUI::Input::CommandMode

Overview

Mutable state for the command palette edit line.

Defined in:

obsctl/tui/input/command_mode.cr

Instance Method Summary

Instance Method Detail

def active? : Bool #

[View source]
def append(char : Char) : Nil #

Appends one printable character while active.


[View source]
def backspace : Nil #

Removes the previous character while active.


[View source]
def clear : Nil #

Clears the line and closes command mode.


[View source]
def line : String #

[View source]
def open(prefix : String = "/") : Nil #

Opens the command palette with the configured command prefix.


[View source]
def submit : String | Nil #

Closes command mode and returns the submitted non-empty command.


[View source]