mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 02:40:24 +08:00
ux: automatically move selection to next commit after applying a shortcut during interactive rebase (#1776)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -33,31 +33,37 @@ namespace SourceGit.Views
|
||||
if (e.Key == Key.P)
|
||||
{
|
||||
vm.ChangeAction(item, Models.InteractiveRebaseAction.Pick);
|
||||
MoveSelection(NavigationDirection.Next);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.E)
|
||||
{
|
||||
vm.ChangeAction(item, Models.InteractiveRebaseAction.Edit);
|
||||
MoveSelection(NavigationDirection.Next);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.R)
|
||||
{
|
||||
vm.ChangeAction(item, Models.InteractiveRebaseAction.Reword);
|
||||
MoveSelection(NavigationDirection.Next);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.S)
|
||||
{
|
||||
vm.ChangeAction(item, Models.InteractiveRebaseAction.Squash);
|
||||
MoveSelection(NavigationDirection.Next);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.F)
|
||||
{
|
||||
vm.ChangeAction(item, Models.InteractiveRebaseAction.Fixup);
|
||||
MoveSelection(NavigationDirection.Next);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.D)
|
||||
{
|
||||
vm.ChangeAction(item, Models.InteractiveRebaseAction.Drop);
|
||||
MoveSelection(NavigationDirection.Next);
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.KeyModifiers.HasFlag(OperatingSystem.IsMacOS() ? KeyModifiers.Meta : KeyModifiers.Control))
|
||||
|
||||
Reference in New Issue
Block a user