git: Handle shift-click to stage a range of entries in the panel (#34296)

Release Notes:

- git: shift-click can now be used to stage a range of entries in the
git panel.
This commit is contained in:
Cole Miller 2025-07-12 15:04:26 -04:00 committed by GitHub
parent 833bc6979a
commit 970a1066f5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 373 additions and 149 deletions

View file

@ -856,6 +856,7 @@
"alt-shift-y": "git::UnstageFile",
"ctrl-alt-y": "git::ToggleStaged",
"space": "git::ToggleStaged",
"shift-space": "git::StageRange",
"tab": "git_panel::FocusEditor",
"shift-tab": "git_panel::FocusEditor",
"escape": "git_panel::ToggleFocus",

View file

@ -930,6 +930,7 @@
"enter": "menu::Confirm",
"cmd-alt-y": "git::ToggleStaged",
"space": "git::ToggleStaged",
"shift-space": "git::StageRange",
"cmd-y": "git::StageFile",
"cmd-shift-y": "git::UnstageFile",
"alt-down": "git_panel::FocusEditor",

View file

@ -841,6 +841,7 @@
"i": "git_panel::FocusEditor",
"x": "git::ToggleStaged",
"shift-x": "git::StageAll",
"g x": "git::StageRange",
"shift-u": "git::UnstageAll"
}
},