Skip to content

Commit

Permalink
feat(tui): Enter interactive with i key.
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshew committed Nov 21, 2024
1 parent 0a872d7 commit 80cb060
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions crates/turborepo-ui/src/tui/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ fn translate_key_event(options: InputOptions, key_event: KeyEvent) -> Option<Eve
KeyCode::Up => Some(Event::Up),
KeyCode::Down => Some(Event::Down),
KeyCode::Enter => Some(Event::EnterInteractive),
KeyCode::Char('i') => Some(Event::EnterInteractive),
_ => None,
}
}
Expand Down
4 changes: 2 additions & 2 deletions crates/turborepo-ui/src/tui/pane.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use tui_term::widget::PseudoTerminal;

use super::{app::LayoutSections, TerminalOutput};

const FOOTER_TEXT_ACTIVE: &str = "Press`Ctrl-Z` to stop interacting.";
const FOOTER_TEXT_INACTIVE: &str = "Press `Enter` to interact.";
const FOOTER_TEXT_ACTIVE: &str = "Press `Ctrl-Z` to stop interacting.";
const FOOTER_TEXT_INACTIVE: &str = "Press `i` to interact.";
const HAS_SELECTION: &str = "Press `c` to copy selection";
const TASK_LIST_HIDDEN: &str = "Press `h` to show task list.";

Expand Down

0 comments on commit 80cb060

Please sign in to comment.