mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
feat: change diff mode toggle to 'm' and fix help duplication
This commit is contained in:
parent
e99faaf628
commit
83df0a80e7
5 changed files with 13 additions and 18 deletions
|
|
@ -1468,11 +1468,6 @@ impl Component for DiffComponent {
|
|||
true,
|
||||
self.focused(),
|
||||
));
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_toggle_mode(&self.key_config),
|
||||
true,
|
||||
self.focused(),
|
||||
));
|
||||
|
||||
CommandBlocking::PassingOn
|
||||
}
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ impl Default for KeysList {
|
|||
commit: GituiKeyEvent::new(KeyCode::Char('d'), KeyModifiers::CONTROL),
|
||||
newline: GituiKeyEvent::new(KeyCode::Enter, KeyModifiers::empty()),
|
||||
goto_line: GituiKeyEvent::new(KeyCode::Char('L'), KeyModifiers::SHIFT),
|
||||
diff_mode_toggle: GituiKeyEvent::new(KeyCode::Char('p'), KeyModifiers::ALT),
|
||||
diff_mode_toggle: GituiKeyEvent::new(KeyCode::Char('m'), KeyModifiers::empty()),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,17 +95,17 @@ impl Component for CompareCommitsPopup {
|
|||
!self.diff.focused() || force_all,
|
||||
));
|
||||
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_focus_left(&self.key_config),
|
||||
true,
|
||||
self.diff.focused() || force_all,
|
||||
));
|
||||
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_toggle_mode(&self.key_config),
|
||||
true,
|
||||
true,
|
||||
));
|
||||
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_focus_left(&self.key_config),
|
||||
true,
|
||||
self.diff.focused() || force_all,
|
||||
));
|
||||
}
|
||||
|
||||
visibility_blocking(self)
|
||||
|
|
|
|||
|
|
@ -615,6 +615,11 @@ impl Component for FileRevlogPopup {
|
|||
)
|
||||
.order(1),
|
||||
);
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_toggle_mode(&self.key_config),
|
||||
true,
|
||||
true,
|
||||
));
|
||||
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_focus_right(&self.key_config),
|
||||
|
|
@ -626,11 +631,6 @@ impl Component for FileRevlogPopup {
|
|||
true,
|
||||
self.diff.focused(),
|
||||
));
|
||||
out.push(CommandInfo::new(
|
||||
strings::commands::diff_toggle_mode(&self.key_config),
|
||||
true,
|
||||
true,
|
||||
));
|
||||
}
|
||||
|
||||
visibility_blocking(self)
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
diff_stage_lines: Some(( code: Char('s'), modifiers: "")),
|
||||
|
||||
// toggle between unified and side-by-side diff mode
|
||||
diff_mode_toggle: Some(( code: Char('p'), modifiers: "ALT")),
|
||||
diff_mode_toggle: Some(( code: Char('m'), modifiers: "")),
|
||||
|
||||
stashing_save: Some(( code: Char('w'), modifiers: "")),
|
||||
stashing_toggle_index: Some(( code: Char('m'), modifiers: "")),
|
||||
|
|
|
|||
Loading…
Reference in a new issue