-
Notifications
You must be signed in to change notification settings - Fork 3
/
keymap.ron
191 lines (191 loc) · 5.37 KB
/
keymap.ron
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
{
"normal": {
"q": ("Quit", [quit]),
"i": ("Revset Mode", [mode(revset)]),
esc: ("Reload Log", [reload_log]),
enter: (
"Accept",
[accept("{change:selected}")],
),
"y": (
"Yank Change IDs",
[yank("{change:selected}")],
),
"u": ("Undo", [jj(["undo"])]),
"@r": (
"Rebase working copy on selection...",
[],
),
"@t": (
"Rebase working copy on trunk...",
[],
),
"r": (
"Rebase focused on selection...",
[],
),
"t": ("Rebase focused on trunk...", []),
"s": ("Squash...", []),
"rr": (
"Rebase revision on selected",
[jj(["rebase", "-r={change:focused}", "-d=all:{change:selected_revset}"])],
),
"rs": (
"Rebase source on selected",
[jj(["rebase", "-s={change:focused}", "-d=all:{change:selected_revset}"])],
),
"rb": (
"Rebase branch on selected",
[jj(["rebase", "-b={change:focused}", "-d=all:{change:selected_revset}"])],
),
"tr": (
"Rebase revision (@) on trunk",
[jj(["rebase", "-r=@", "-d=trunk()"])],
),
"ts": (
"Rebase source (@) on trunk",
[jj(["rebase", "-s=@", "-d=trunk()"])],
),
"tb": (
"Rebase branch (@) on trunk",
[jj(["rebase", "-b=@", "-d=trunk()"])],
),
"n": (
"New on selected",
[jj(["new", "all:{change:selected_revset}", ])],
),
"tn": (
"New on trunk",
[jj(["new", "trunk()"])],
),
"e": (
"Edit focused",
[jj(["edit", "{change:focused}"])],
),
"d": (
"Describe focused",
[jji(["describe", "{change:focused}"])],
),
"a": (
"Abandon selected",
[jj(["abandon", "{change:selected_revset}"])],
),
"@rr": (
"Rebase wc revision on selected",
[jj(["rebase", "-r=@", "-d=all:{change:selected_revset}"])],
),
"@rs": (
"Rebase wc source on selected",
[jj(["rebase", "-s=@", "-d=all:{change:selected_revset}"])],
),
"@rb": (
"Rebase wc branch on selected",
[jj(["rebase", "-b=@", "-d=all:{change:selected_revset}"])],
),
"@tr": (
"Rebase wc revision on trunk",
[jj(["rebase", "-r=@", "-d=trunk()"])],
),
"@ts": (
"Rebase wc source on trunk",
[jj(["rebase", "-s=@", "-d=trunk()"])],
),
"@tb": (
"Rebase wc branch on trunk",
[jj(["rebase", "-b=@", "-d=trunk()"])],
),
"@n": (
"New on wc",
[jj(["new", "@"])],
),
"@d": (
"Describe wc",
[jji(["describe", "@"])],
),
"@a": (
"Abandon wc",
[jj(["abandon", "@"])],
),
"S": ("Status", [jj(["status"])]),
"s-": (
"Squash into parent",
[jj(["squash", "--from={change:selected_revset}", "--into={change:focused}-"])],
),
"si": (
"Squash selected into focused",
[jj(["squash", "--from={change:selected_revset}", "--into={change:focused}"])],
),
"s@": (
"Squash selected into wc",
[jj(["squash", "--from={change:selected_revset}"])],
),
"@s-": (
"Squash wc into parent",
[jj(["squash"])],
),
"@si": (
"Squash wc into focused",
[jj(["squash", "--into={change:focused}"])],
),
"gf": (
"Git fetch",
[jj(["git", "fetch"])],
),
"gpp": (
"Git push (default)",
[jj(["git", "push"])],
),
"gpc": (
"Git push (--change focused)",
[jj(["git", "push", "--change={change:focused}"])],
),
"@-gpc": (
"Git push (--change @-)",
[jj(["git", "push", "--change=@-"])],
),
" ": (
"Show focused",
[jjp(["--ignore-working-copy", "show", "{change:focused}"])],
),
"@ ": (
"Show wc",
[jjp(["--ignore-working-copy", "show", "@"])],
),
"@- ": (
"Show parent of wc",
[jjp(["--ignore-working-copy", "show", "@"])],
),
"o": (
"Show obslog of focused",
[mode(obslog("{change:focused}"))],
),
"@o": (
"Show obslog of wc",
[mode(obslog("@"))],
),
"@-o": (
"Show obslog of wc's parent",
[mode(obslog("@-"))],
),
"c": (
"Commit",
[jji(["commit", "--interactive"])],
),
},
"revset": {
esc: ("Normal Mode", [mode(normal)]),
enter: ("Set Revset", [change_revset("{query}")]),
},
"obslog": {
"q": ("Quit", [quit]),
esc: ("Normal Mode", [mode(normal)]),
enter: (
"Accept",
[accept("{commit:select}")],
),
"y": (
"Yank Commit IDs",
[yank("{commit:selected}")],
),
},
}