Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
2 changes: 2 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ log = "0.4"
env_logger = "0.11"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Comment- and trailing-comma-tolerant JSON for hand-edited config (keymap.json).
# Same crate Zed uses for its keymap and settings files.
serde_json_lenient = "0.2"
chrono = { version = "0.4", features = ["serde"] }
parking_lot = "0.12"
smallvec = { version = "1", features = ["union"] }
Expand Down
7 changes: 7 additions & 0 deletions crates/rgitui/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ impl AppRoot {
if let Some(workspace) = &self.workspace {
workspace.update(cx, |ws, cx| {
ws.show_crash_recovery_toast(cx);
// Startup keymap problems are reported here rather than during
// `keymap::init`, which runs before any window exists.
ws.show_keymap_problems(cx);
});
}

Expand Down Expand Up @@ -220,6 +223,10 @@ fn main() {
// Initialize subsystems
rgitui_theme::init(cx);
rgitui_settings::init(cx);
// Applies the default keybindings plus the user's keymap.json, and
// watches that file so saving it reloads the keymap. Must come after
// settings init, which creates the config directory.
rgitui_workspace::keymap::init(cx);

// Initialize empty avatar cache immediately, load disk data in background
cx.set_global(rgitui_ui::AvatarCache::new());
Expand Down
498 changes: 255 additions & 243 deletions crates/rgitui_diff/src/lib.rs

Large diffs are not rendered by default.

Loading
Loading