@@ -173,6 +173,131 @@ vscode command `editor.action.codeAction` with `{ "kind": "refactor.extract" }`
173173}
174174```
175175
176+ ## Move buffers to numbered windows
177+
178+ By default, ` <spc> b ` followed by a number changes the tab selected in a window. If you have a
179+ tabless setup, as described in
180+ [ Working without Tabs] ( https://code.visualstudio.com/docs/getstarted/userinterface#_working-without-tabs ) ,
181+ you may want to override these binding with ones that move buffers into different windows, like
182+ in Spacemacs.
183+
184+ The following example json overrides ` <spc> b {n} ` to move the active buffer to window ` n ` .
185+
186+ ``` json title="settings.json"
187+ {
188+ "vspacecode.bindingOverrides" : [
189+ {
190+ "keys" : " b.1" ,
191+ "name" : " Move buffer to 1st window" ,
192+ "type" : " command" ,
193+ "command" : " moveActiveEditor" ,
194+ "args" : {
195+ "to" : " position" ,
196+ "by" : " group" ,
197+ "value" : 1
198+ },
199+ "icon" : " move"
200+ },
201+ {
202+ "keys" : " b.2" ,
203+ "name" : " Move buffer to 2nd window" ,
204+ "type" : " command" ,
205+ "command" : " moveActiveEditor" ,
206+ "args" : {
207+ "to" : " position" ,
208+ "by" : " group" ,
209+ "value" : 2
210+ },
211+ "icon" : " move"
212+ },
213+ {
214+ "keys" : " b.3" ,
215+ "name" : " Move buffer to 3rd window" ,
216+ "type" : " command" ,
217+ "command" : " moveActiveEditor" ,
218+ "args" : {
219+ "to" : " position" ,
220+ "by" : " group" ,
221+ "value" : 3
222+ },
223+ "icon" : " move"
224+ },
225+ {
226+ "keys" : " b.4" ,
227+ "name" : " Move buffer to 4th window" ,
228+ "type" : " command" ,
229+ "command" : " moveActiveEditor" ,
230+ "args" : {
231+ "to" : " position" ,
232+ "by" : " group" ,
233+ "value" : 4
234+ },
235+ "icon" : " move"
236+ },
237+ {
238+ "keys" : " b.5" ,
239+ "name" : " Move buffer to 5th window" ,
240+ "type" : " command" ,
241+ "command" : " moveActiveEditor" ,
242+ "args" : {
243+ "to" : " position" ,
244+ "by" : " group" ,
245+ "value" : 5
246+ },
247+ "icon" : " move"
248+ },
249+ {
250+ "keys" : " b.6" ,
251+ "name" : " Move buffer to 6th window" ,
252+ "type" : " command" ,
253+ "command" : " moveActiveEditor" ,
254+ "args" : {
255+ "to" : " position" ,
256+ "by" : " group" ,
257+ "value" : 6
258+ },
259+ "icon" : " move"
260+ },
261+ {
262+ "keys" : " b.7" ,
263+ "name" : " Move buffer to 7th window" ,
264+ "type" : " command" ,
265+ "command" : " moveActiveEditor" ,
266+ "args" : {
267+ "to" : " position" ,
268+ "by" : " group" ,
269+ "value" : 7
270+ },
271+ "icon" : " move"
272+ },
273+ {
274+ "keys" : " b.8" ,
275+ "name" : " Move buffer to 8th window" ,
276+ "type" : " command" ,
277+ "command" : " moveActiveEditor" ,
278+ "args" : {
279+ "to" : " position" ,
280+ "by" : " group" ,
281+ "value" : 8
282+ },
283+ "icon" : " move"
284+ },
285+ {
286+ "keys" : " b.9" ,
287+ "name" : " Move buffer to 9th window" ,
288+ "type" : " command" ,
289+ "command" : " moveActiveEditor" ,
290+ "args" : {
291+ "to" : " position" ,
292+ "by" : " group" ,
293+ "value" : 9
294+ },
295+ "icon" : " move"
296+ }
297+ ]
298+ }
299+ ```
300+
176301## Colorize pair brackets
177302
178303VScode 1.60 added built-in support for colorizing pair brackets.
0 commit comments