Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ pub struct App {
pub terminal_scroll: usize,
pub terminal_restarting: bool,
pub terminal_area: Cell<ratatui::layout::Rect>,
pub sidebar_area: Cell<ratatui::layout::Rect>,
pub top_bar_area: Cell<ratatui::layout::Rect>,
pub top_bar_positions: Cell<Vec<(u16, u16)>>,
pub dropdown_area: Cell<Option<ratatui::layout::Rect>>,
pub last_click: Option<(std::time::Instant, u16, u16)>,
pub terminal_sel: Option<((usize, usize), (usize, usize))>,
pub show_quit_confirm: bool,
pub show_unsaved_confirm: bool,
Expand Down Expand Up @@ -146,6 +151,11 @@ impl App {
terminal_scroll: 0,
terminal_restarting: false,
terminal_area: Cell::new(ratatui::layout::Rect::default()),
sidebar_area: Cell::new(ratatui::layout::Rect::default()),
top_bar_area: Cell::new(ratatui::layout::Rect::default()),
top_bar_positions: Cell::new(Vec::new()),
dropdown_area: Cell::new(None),
last_click: None,
terminal_sel: None,
show_quit_confirm: false,
show_unsaved_confirm: false,
Expand Down
29 changes: 27 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,29 @@ pub const HELP_TEXT: &str = r#"
[Ctrl+U / PgUp] Page Up
[Home / End] Jump to Top/Bottom
[Enter] Open File / Toggle Folder
[Double-Click] Open File / Toggle Folder

--- EDITOR ---
[Home / End] Start/End of Line
[Ctrl+Home / Ctrl+End] Top/Bottom of File
[PgUp / PgDn] Scroll Page
[Delete] Forward Delete / Delete Selection
[Shift+Arrows] Extend Selection
[Shift+Home / Shift+End] Select to Line Start/End
[Shift+PgUp / Shift+PgDn] Select by Page
[Ctrl+Shift+Home / End] Select to File Start/End
[Ctrl+Shift+Left / Right] Select Word by Word
[Ctrl+Shift+PgUp / PgDn] Select Page
[Ctrl+X] Cut Line / Selection
[Ctrl+C / Ctrl+V] Copy / Paste
[Ctrl+A] Select All
[Ctrl+Z] Undo
[Alt+Up / Alt+Down] Expand / Shrink Selection
[Alt+Left / Alt+Right] Swap Nodes
[Alt+Shift+Up / Down] Move Block

--- FILE MANAGEMENT ---
[Ctrl+N] New File
[Ctrl+P] Find File (fzf)
[Ctrl+G] Project Search (rg)
[Ctrl+W] Close Current File
Expand All @@ -29,12 +39,26 @@ pub const HELP_TEXT: &str = r#"

--- FOCUS CONTROL ---
[Ctrl+F] Focus Sidebar
[Ctrl+E] Focus Editor
[Ctrl+T] Focus Terminal
[Ctrl+E] Focus / Maximize Editor
[Ctrl+T] Focus / Maximize Terminal
[Ctrl+B] Toggle Sidebar Visibility
[Ctrl+J] Toggle Terminal Visibility
[Ctrl+Left / Right] Switch Panels
[Ctrl+Up / Down] Switch Panels
[Esc] Restore Standard Layout / Close Overlays

--- MOUSE ---
[Click] Focus Panel / Select Entry
[Double-Click] Open File / Toggle Folder (Sidebar)
[Shift+Click] Extend Selection (Editor)
[Drag] Select Text (Editor / Terminal)
[Scroll] Scroll Terminal

--- MENUS ---
[Alt+N/E/F/P/S/C/H] Open Menu
[Click Menu Label] Open / Close Menu
[Click Menu Item] Execute Action

--- HELP ---
[Ctrl+H / Esc] Toggle Help Overlay

Expand All @@ -45,6 +69,7 @@ pub const HELP_TEXT: &str = r#"
[Alt+G, then n] Rename Symbol under Cursor
[Alt+F] Format Document
[Alt+Enter] Code Actions / Quick Fix
[Alt+K] Trigger Hover Info
"#;

pub mod colors {
Expand Down
Loading