Implement TUI colon command mode
This commit is contained in:
1 parent
639ae0d08e
commit
d66d9b0f08
7 files changed
+1502
-89
No files matched your search
@@ -154,6 +154,7 @@ impl ActionSpec {
|
||||
const BROWSER_LIKE: &[Mode] = &[Mode::Browser, Mode::Viewer];
|
||||
const ENTRY_CONTEXT: &[Mode] = &[Mode::Browser, Mode::Viewer];
|
||||
const UNLOCKED: &[Mode] = &[Mode::Browser, Mode::Viewer, Mode::Editor];
|
||||
const COMMANDABLE: &[Mode] = &[Mode::Browser, Mode::Viewer, Mode::Editor, Mode::Locked];
|
||||
const QUITTABLE: &[Mode] = &[Mode::Browser, Mode::Viewer, Mode::Locked];
|
||||
const LOCKABLE: &[Mode] = &[
|
||||
Mode::Browser,
|
||||
@@ -224,7 +225,7 @@ pub static ACTIONS: &[ActionSpec] = &[
|
||||
label: "command",
|
||||
command: "command",
|
||||
bindings: keys!((KeyCode::Char(':'), KeyModifiers::NONE, ":")),
|
||||
modes: UNLOCKED,
|
||||
modes: COMMANDABLE,
|
||||
},
|
||||
ActionSpec {
|
||||
action: Action::Cancel,
|
||||
|
||||
Reference in new issue
Block a user