Skip to content

Commit f5d2437

Browse files
authored
Merge pull request #1974 from timbrel/S-bind
Bind `[S]` for "stage all" in the status dashboard
2 parents 26ce82d + 907da50 commit f5d2437

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Default.sublime-keymap

+9-1
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,15 @@
285285
/////////////////////////////
286286

287287
{
288-
"keys": ["a"],
288+
"keys": ["S"],
289+
"command": "gs_status_stage_all_files",
290+
"context": [
291+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
292+
{ "key": "setting.git_savvy.status_view", "operator": "equal", "operand": true }
293+
]
294+
},
295+
{
296+
"keys": ["a"], // backwards compatibility
289297
"command": "gs_status_stage_all_files",
290298
"context": [
291299
{ "key": "setting.command_mode", "operator": "equal", "operand": false },

core/interfaces/status.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class StatusInterface(ui.ReactiveInterface, GitCommand):
179179
## SELECTED FILE ## ## ALL FILES ##
180180
################### ###############
181181
182-
[o] open file [a] stage all unstaged files
182+
[o] open file [S] stage all unstaged files
183183
[s] stage file [A] stage all unstaged and untracked files
184184
[u] unstage file [U] unstage all staged files
185185
[d] discard changes to file [D] discard all unstaged changes
@@ -200,7 +200,7 @@ class StatusInterface(ui.ReactiveInterface, GitCommand):
200200
## SELECTED COMMIT ## ## ALL FILES ##
201201
##################### ###############
202202
203-
[o] show commit [a] stage all unstaged files
203+
[o] show commit [S] stage all unstaged files
204204
[A] stage all unstaged and untracked files
205205
[U] unstage all staged files
206206
[D] discard all unstaged changes

0 commit comments

Comments
 (0)