forked from timbrel/GitSavvy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDefault (OSX).sublime-keymap
131 lines (117 loc) · 4.22 KB
/
Default (OSX).sublime-keymap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
[
/////////////////
// COMMIT VIEW //
/////////////////
{
"keys": ["super+enter"],
"command": "gs_commit_view_do_commit",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true },
{ "key": "setting.git_savvy.commit_on_close", "operator": "equal", "operand": false }
]
},
{
"keys": ["super+s"],
"command": "gs_commit_view_sign",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.get_long_text_view", "operator": "equal", "operand": true }
]
},
///////////////
// DIFF VIEW //
///////////////
{
"keys": ["super+enter"],
"command": "gs_diff_stage_or_reset_hunk",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true },
{ "key": "setting.git_savvy.diff_view.disable_stage", "operator": "equal", "operand": false }
]
},
{
"keys": ["super+backspace"],
"command": "gs_diff_stage_or_reset_hunk",
"args": { "reset": true },
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.diff_view", "operator": "equal", "operand": true },
{ "key": "setting.git_savvy.diff_view.in_cached_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.diff_view.disable_stage", "operator": "equal", "operand": false }
]
},
//////////////////
// GIT-ADD VIEW //
//////////////////
{
"keys": ["super+enter"],
"command": "gs_add_edit_commit",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.git_add_view", "operator": "equal", "operand": true }
]
},
///////////////
// HELP VIEW //
///////////////
{
"keys": ["super+enter"],
"command": "gs_help_goto_link",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true },
{ "key": "selector", "operator": "equal", "operand": "meta.link.inline.markdown"}
]
},
{
"keys": ["super+backspace"],
"command": "gs_help_goto_previous",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.help_view", "operator": "equal", "operand": true }
]
},
//////////////////////
// INLINE DIFF VIEW //
//////////////////////
{
"keys": ["super+z"],
"command": "gs_inline_diff_undo",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.inline_diff_view", "operator": "equal", "operand": true }
]
},
///////////////
// EDIT VIEW //
///////////////
{
"keys": ["super+enter"],
"command": "gs_edit_view_complete",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.edit_view", "operator": "equal", "operand": true }
]
},
/////////////////
// REBASE VIEW //
/////////////////
{
"keys": ["super+z"],
"command": "gs_rebase_undo",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
]
},
{
"keys": ["super+y"],
"command": "gs_rebase_redo",
"context": [
{ "key": "setting.command_mode", "operator": "equal", "operand": false },
{ "key": "setting.git_savvy.rebase_view", "operator": "equal", "operand": true },
]
}
]