feat(tui): open instance dir with Shift+Enter
This commit is contained in:
1 parent
f65341c0a2
commit
8749f8361a
2 files changed
+35
-1
No files matched your search
@@ -9,7 +9,22 @@ pub type Tui = ratatui::DefaultTerminal;
|
||||
|
||||
pub async fn show() -> color_eyre::Result<()> {
|
||||
let mut terminal = ratatui::init();
|
||||
|
||||
let _ = crossterm::execute!(
|
||||
std::io::stdout(),
|
||||
crossterm::event::PushKeyboardEnhancementFlags(
|
||||
crossterm::event::KeyboardEnhancementFlags::REPORT_EVENT_TYPES
|
||||
| crossterm::event::KeyboardEnhancementFlags::DISAMBIGUATE_ESCAPE_CODES
|
||||
)
|
||||
);
|
||||
|
||||
let result = layout::App::default().run(&mut terminal).await;
|
||||
|
||||
let _ = crossterm::execute!(
|
||||
std::io::stdout(),
|
||||
crossterm::event::PopKeyboardEnhancementFlags
|
||||
);
|
||||
|
||||
ratatui::restore();
|
||||
result
|
||||
}
|
||||
Reference in new issue
Block a user