Skip to content

Commit 64ba299

Browse files
committed
use setting.command_mode in keymaps
1 parent 33bdf78 commit 64ba299

7 files changed

+159
-2
lines changed

Default (Linux).sublime-keymap

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"keys": ["ctrl+enter"],
99
"command": "gs_commit_view_do_commit",
1010
"context": [
11+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
1112
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true },
1213
{ "key": "setting.git_savvy.commit_on_close", "operator": "equal", "operand": false }
1314
]
@@ -16,6 +17,7 @@
1617
"keys": ["ctrl+s"],
1718
"command": "gs_commit_view_sign",
1819
"context": [
20+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
1921
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true }
2022
]
2123
},
@@ -28,6 +30,7 @@
2830
"keys": ["ctrl+enter"],
2931
"command": "gs_diff_stage_or_reset_hunk",
3032
"context": [
33+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
3134
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true }
3235
]
3336
},
@@ -36,6 +39,7 @@
3639
"command": "gs_diff_stage_or_reset_hunk",
3740
"args": { "reset": true },
3841
"context": [
42+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
3943
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true },
4044
{ "key": "setting.git_savvy.diff_view.in_cached_mode", "operator": "equal", "operand": false }
4145
]
@@ -49,6 +53,7 @@
4953
"keys": ["ctrl+enter"],
5054
"command": "gs_add_edit_commit",
5155
"context": [
56+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
5257
{ "key": "setting.git_savvy.git_add_view", "operator": "equal", "operand": true }
5358
]
5459
},
@@ -61,6 +66,7 @@
6166
"keys": ["ctrl+enter"],
6267
"command": "gs_blame_open_commit",
6368
"context": [
69+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
6470
{ "key": "setting.git_savvy.blame_view", "operator": "equal", "operand": true }
6571
]
6672
},
@@ -73,6 +79,7 @@
7379
"keys": ["ctrl+enter"],
7480
"command": "gs_help_goto_link",
7581
"context": [
82+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
7683
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true },
7784
{ "key": "selector", "operator": "equal", "operand": "meta.link.inline.markdown"}
7885
]
@@ -81,6 +88,7 @@
8188
"keys": ["ctrl+backspace"],
8289
"command": "gs_help_goto_previous",
8390
"context": [
91+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
8492
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true }
8593
]
8694
},
@@ -93,6 +101,7 @@
93101
"keys": ["ctrl+z"],
94102
"command": "gs_inline_diff_undo",
95103
"context": [
104+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
96105
{ "key": "setting.git_savvy.inline_diff_view", "operator": "equal", "operand": true }
97106
]
98107
},
@@ -105,6 +114,7 @@
105114
"keys": ["ctrl+enter"],
106115
"command": "gs_log_graph_action",
107116
"context": [
117+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
108118
{ "key": "setting.git_savvy.log_graph_view", "operator": "equal", "operand": true }
109119
],
110120
"args": { "action": "checkout" }
@@ -118,6 +128,7 @@
118128
"keys": ["ctrl+enter"],
119129
"command": "gs_edit_view_complete",
120130
"context": [
131+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
121132
{ "key": "setting.git_savvy.edit_view", "operator": "equal", "operand": true }
122133
]
123134
},
@@ -130,13 +141,15 @@
130141
"keys": ["ctrl+z"],
131142
"command": "gs_rebase_undo",
132143
"context": [
144+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
133145
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
134146
]
135147
},
136148
{
137149
"keys": ["ctrl+y"],
138150
"command": "gs_rebase_redo",
139151
"context": [
152+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
140153
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
141154
]
142155
}

Default (OSX).sublime-keymap

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"keys": ["super+enter"],
99
"command": "gs_commit_view_do_commit",
1010
"context": [
11+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
1112
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true },
1213
{ "key": "setting.git_savvy.commit_on_close", "operator": "equal", "operand": false }
1314
]
@@ -16,6 +17,7 @@
1617
"keys": ["super+s"],
1718
"command": "gs_commit_view_sign",
1819
"context": [
20+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
1921
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true }
2022
]
2123
},
@@ -28,6 +30,7 @@
2830
"keys": ["super+enter"],
2931
"command": "gs_diff_stage_or_reset_hunk",
3032
"context": [
33+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
3134
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true }
3235
]
3336
},
@@ -36,6 +39,7 @@
3639
"command": "gs_diff_stage_or_reset_hunk",
3740
"args": { "reset": true },
3841
"context": [
42+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
3943
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true },
4044
{ "key": "setting.git_savvy.diff_view.in_cached_mode", "operator": "equal", "operand": false }
4145
]
@@ -49,6 +53,7 @@
4953
"keys": ["super+enter"],
5054
"command": "gs_add_edit_commit",
5155
"context": [
56+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
5257
{ "key": "setting.git_savvy.git_add_view", "operator": "equal", "operand": true }
5358
]
5459
},
@@ -61,6 +66,7 @@
6166
"keys": ["super+enter"],
6267
"command": "gs_blame_open_commit",
6368
"context": [
69+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
6470
{ "key": "setting.git_savvy.blame_view", "operator": "equal", "operand": true }
6571
]
6672
},
@@ -73,6 +79,7 @@
7379
"keys": ["super+enter"],
7480
"command": "gs_help_goto_link",
7581
"context": [
82+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
7683
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true },
7784
{ "key": "selector", "operator": "equal", "operand": "meta.link.inline.markdown"}
7885
]
@@ -81,6 +88,7 @@
8188
"keys": ["super+backspace"],
8289
"command": "gs_help_goto_previous",
8390
"context": [
91+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
8492
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true }
8593
]
8694
},
@@ -93,6 +101,7 @@
93101
"keys": ["super+z"],
94102
"command": "gs_inline_diff_undo",
95103
"context": [
104+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
96105
{ "key": "setting.git_savvy.inline_diff_view", "operator": "equal", "operand": true }
97106
]
98107
},
@@ -105,6 +114,7 @@
105114
"keys": ["super+enter"],
106115
"command": "gs_log_graph_action",
107116
"context": [
117+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
108118
{ "key": "setting.git_savvy.log_graph_view", "operator": "equal", "operand": true }
109119
],
110120
"args": { "action": "checkout" }
@@ -118,6 +128,7 @@
118128
"keys": ["super+enter"],
119129
"command": "gs_edit_view_complete",
120130
"context": [
131+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
121132
{ "key": "setting.git_savvy.edit_view", "operator": "equal", "operand": true }
122133
]
123134
},
@@ -130,13 +141,15 @@
130141
"keys": ["super+z"],
131142
"command": "gs_rebase_undo",
132143
"context": [
144+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
133145
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
134146
]
135147
},
136148
{
137149
"keys": ["super+y"],
138150
"command": "gs_rebase_redo",
139151
"context": [
152+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
140153
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
141154
]
142155
}

Default (Windows).sublime-keymap

+13
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"keys": ["ctrl+enter"],
99
"command": "gs_commit_view_do_commit",
1010
"context": [
11+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
1112
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true },
1213
{ "key": "setting.git_savvy.commit_on_close", "operator": "equal", "operand": false }
1314
]
@@ -16,6 +17,7 @@
1617
"keys": ["ctrl+s"],
1718
"command": "gs_commit_view_sign",
1819
"context": [
20+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
1921
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true }
2022
]
2123
},
@@ -29,6 +31,7 @@
2931
"keys": ["ctrl+enter"],
3032
"command": "gs_diff_stage_or_reset_hunk",
3133
"context": [
34+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
3235
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true }
3336
]
3437
},
@@ -37,6 +40,7 @@
3740
"command": "gs_diff_stage_or_reset_hunk",
3841
"args": { "reset": true },
3942
"context": [
43+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
4044
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true },
4145
{ "key": "setting.git_savvy.diff_view.in_cached_mode", "operator": "equal", "operand": false }
4246
]
@@ -50,6 +54,7 @@
5054
"keys": ["ctrl+enter"],
5155
"command": "gs_add_edit_commit",
5256
"context": [
57+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
5358
{ "key": "setting.git_savvy.git_add_view", "operator": "equal", "operand": true }
5459
]
5560
},
@@ -62,6 +67,7 @@
6267
"keys": ["ctrl+enter"],
6368
"command": "gs_blame_open_commit",
6469
"context": [
70+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
6571
{ "key": "setting.git_savvy.blame_view", "operator": "equal", "operand": true }
6672
]
6773
},
@@ -74,6 +80,7 @@
7480
"keys": ["ctrl+enter"],
7581
"command": "gs_help_goto_link",
7682
"context": [
83+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
7784
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true },
7885
{ "key": "selector", "operator": "equal", "operand": "meta.link.inline.markdown"}
7986
]
@@ -82,6 +89,7 @@
8289
"keys": ["ctrl+backspace"],
8390
"command": "gs_help_goto_previous",
8491
"context": [
92+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
8593
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true }
8694
]
8795
},
@@ -94,6 +102,7 @@
94102
"keys": ["ctrl+z"],
95103
"command": "gs_inline_diff_undo",
96104
"context": [
105+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
97106
{ "key": "setting.git_savvy.inline_diff_view", "operator": "equal", "operand": true }
98107
]
99108
},
@@ -106,6 +115,7 @@
106115
"keys": ["ctrl+enter"],
107116
"command": "gs_log_graph_action",
108117
"context": [
118+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
109119
{ "key": "setting.git_savvy.log_graph_view", "operator": "equal", "operand": true }
110120
],
111121
"args": { "action": "checkout" }
@@ -119,6 +129,7 @@
119129
"keys": ["ctrl+enter"],
120130
"command": "gs_edit_view_complete",
121131
"context": [
132+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
122133
{ "key": "setting.git_savvy.edit_view", "operator": "equal", "operand": true }
123134
]
124135
},
@@ -131,13 +142,15 @@
131142
"keys": ["ctrl+z"],
132143
"command": "gs_rebase_undo",
133144
"context": [
145+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
134146
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
135147
]
136148
},
137149
{
138150
"keys": ["ctrl+y"],
139151
"command": "gs_rebase_redo",
140152
"context": [
153+
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
141154
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
142155
]
143156
}

0 commit comments

Comments
 (0)