-
Notifications
You must be signed in to change notification settings - Fork 1
/
Default (Linux).sublime-keymap
1585 lines (1446 loc) · 77.9 KB
/
Default (Linux).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
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{ "keys": ["ctrl+q"], "command": "noop" },
{ "keys": ["ctrl+shift+n"], "command": "noop" },
{ "keys": ["ctrl+shift+w"], "command": "noop" },
{ "keys": ["ctrl+o"], "command": "noop" },
{ "keys": ["ctrl+shift+t"], "command": "noop" },
{ "keys": ["alt+o"], "command": "noop", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["ctrl+n"], "command": "noop" },
{ "keys": ["ctrl+s"], "command": "noop" },
{ "keys": ["ctrl+shift+s"], "command": "noop" },
{ "keys": ["ctrl+f4"], "command": "noop" },
{ "keys": ["ctrl+w"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+b"], "command": "noop" },
{ "keys": ["f11"], "command": "noop" },
{ "keys": ["shift+f11"], "command": "noop" },
{ "keys": ["backspace"], "command": "left_delete" },
{ "keys": ["shift+backspace"], "command": "noop" },
{ "keys": ["ctrl+shift+backspace"], "command": "noop" },
{ "keys": ["delete"], "command": "noop" },
{ "keys": ["enter"], "command": "insert", "args": {"characters": "\n"} },
{ "keys": ["shift+enter"], "command": "noop", "args": {"characters": "\n"} },
{ "keys": ["keypad_enter"], "command": "noop", "args": {"characters": "\n"} },
{ "keys": ["shift+keypad_enter"], "command": "noop", "args": {"characters": "\n"} },
{ "keys": ["ctrl+z"], "command": "noop" },
{ "keys": ["ctrl+shift+z"], "command": "noop" },
{ "keys": ["ctrl+y"], "command": "noop" },
{ "keys": ["ctrl+u"], "command": "noop" },
{ "keys": ["ctrl+shift+u"], "command": "noop" },
{ "keys": ["shift+delete"], "command": "noop" },
{ "keys": ["ctrl+insert"], "command": "noop" },
{ "keys": ["shift+insert"], "command": "noop" },
// These two key bindings should replace the above three if you'd prefer
// the traditional X11 behavior of shift+insert pasting from the primary
// selection. The above CUA keys are the default, to match most GTK
// applications.
//{ "keys": ["shift+insert"], "command": "noop", "args": {"clipboard": "selection"} },
//{ "keys": ["shift+delete"], "command": "noop" },
{ "keys": ["ctrl+p"], "command": "noop", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["ctrl+f"], "command": "noop", "args": {"panel": "find", "reverse": false} },
{ "keys": ["ctrl+b"], "command": "noop" },
{ "keys": ["ctrl+h"], "command": "noop", "args": {"panel": "replace", "reverse": false} },
{ "keys": ["ctrl+x"], "command": "noop" },
{ "keys": ["ctrl+c"], "command": "noop" },
{ "keys": ["ctrl+v"], "command": "noop" },
{ "keys": ["ctrl+shift+v"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+v"], "command": "noop" },
{ "keys": ["shift+left"], "command": "noop", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["shift+right"], "command": "noop", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["shift+up"], "command": "noop", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["shift+down"], "command": "noop", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["ctrl+left"], "command": "noop", "args": {"by": "words", "forward": false} },
{ "keys": ["ctrl+right"], "command": "noop", "args": {"by": "word_ends", "forward": true} },
{ "keys": ["ctrl+shift+left"], "command": "noop", "args": {"by": "words", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+right"], "command": "noop", "args": {"by": "word_ends", "forward": true, "extend": true} },
{ "keys": ["alt+left"], "command": "noop", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+right"], "command": "noop", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["alt+shift+left"], "command": "noop", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["alt+shift+right"], "command": "noop", "args": {"by": "subword_ends", "forward": true, "extend": true} },
{ "keys": ["alt+shift+up"], "command": "noop", "args": {"forward": false} },
{ "keys": ["alt+shift+down"], "command": "noop", "args": {"forward": true} },
{ "keys": ["pageup"], "command": "noop", "args": {"by": "pages", "forward": false} },
{ "keys": ["pagedown"], "command": "noop", "args": {"by": "pages", "forward": true} },
{ "keys": ["shift+pageup"], "command": "noop", "args": {"by": "pages", "forward": false, "extend": true} },
{ "keys": ["shift+pagedown"], "command": "noop", "args": {"by": "pages", "forward": true, "extend": true} },
{ "keys": ["home"], "command": "noop", "args": {"to": "bol", "extend": false} },
{ "keys": ["end"], "command": "noop", "args": {"to": "eol", "extend": false} },
{ "keys": ["shift+home"], "command": "noop", "args": {"to": "bol", "extend": true} },
{ "keys": ["shift+end"], "command": "noop", "args": {"to": "eol", "extend": true} },
{ "keys": ["ctrl+home"], "command": "noop", "args": {"to": "bof", "extend": false} },
{ "keys": ["ctrl+end"], "command": "noop", "args": {"to": "eof", "extend": false} },
{ "keys": ["ctrl+shift+home"], "command": "noop", "args": {"to": "bof", "extend": true} },
{ "keys": ["ctrl+shift+end"], "command": "noop", "args": {"to": "eof", "extend": true} },
{ "keys": ["ctrl+up"], "command": "noop", "args": {"amount": 1.0 } },
{ "keys": ["ctrl+down"], "command": "noop", "args": {"amount": -1.0 } },
{ "keys": ["ctrl+pagedown"], "command": "noop" },
{ "keys": ["ctrl+pageup"], "command": "noop" },
{ "keys": ["ctrl+tab"], "command": "noop" },
{ "keys": ["ctrl+shift+tab"], "command": "noop" },
{ "keys": ["ctrl+a"], "command": "noop" },
{ "keys": ["ctrl+shift+l"], "command": "noop" },
{ "keys": ["escape"], "command": "noop", "context":
[
{ "key": "num_selections", "operator": "not_equal", "operand": 1 }
]
},
{ "keys": ["escape"], "command": "noop", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "noop", "context":
[
{ "key": "has_prev_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "noop", "args": {"cancel": true},
"context":
[
{ "key": "panel_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "noop", "context":
[
{ "key": "overlay_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "noop", "context":
[
{ "key": "popup_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "noop", "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "noop", "args": {"default": "\t", "exact": true} },
{ "keys": ["tab"], "command": "noop", "args": {"default": "\t", "exact": false},
"context":
[
{ "key": "setting.tab_completion", "operator": "equal", "operand": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": ".*\\b[0-9]+$", "match_all": true },
]
},
{ "keys": ["tab"], "command": "noop", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "noop", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["tab"], "command": "noop", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
{ "keys": ["tab"], "command": "noop", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "noop", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab" }
]
},
{ "keys": ["shift+tab"], "command": "noop", "args": {"characters": "\t"} },
{ "keys": ["shift+tab"], "command": "noop", "context":
[
{ "key": "setting.shift_tab_unindent", "operator": "equal", "operand": true }
]
},
{ "keys": ["shift+tab"], "command": "noop", "context":
[
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\t ]*" }
]
},
{ "keys": ["shift+tab"], "command": "noop", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
{ "keys": ["shift+tab"], "command": "noop", "context":
[
{ "key": "has_prev_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+]"], "command": "noop" },
{ "keys": ["ctrl+["], "command": "noop" },
{ "keys": ["insert"], "command": "noop" },
{ "keys": ["ctrl+l"], "command": "noop", "args": {"to": "line"} },
{ "keys": ["ctrl+d"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+d"], "command": "noop" },
{ "keys": ["ctrl+shift+space"], "command": "noop", "args": {"to": "scope"} },
{ "keys": ["ctrl+shift+m"], "command": "noop", "args": {"to": "brackets"} },
{ "keys": ["ctrl+m"], "command": "noop", "args": {"to": "brackets"} },
{ "keys": ["ctrl+shift+j"], "command": "noop", "args": {"to": "indentation"} },
{ "keys": ["ctrl+shift+a"], "command": "noop", "args": {"to": "tag"} },
{ "keys": ["alt+."], "command": "noop" },
{ "keys": ["ctrl+alt+q"], "command": "noop" },
{ "keys": ["ctrl+alt+shift+q"], "command": "noop" },
{ "keys": ["ctrl+enter"], "command": "noop", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["ctrl+shift+enter"], "command": "noop", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} },
{ "keys": ["enter"], "command": "noop", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab", "operand": false }
]
},
{ "keys": ["ctrl+shift+p"], "command": "noop", "args": {"overlay": "command_palette"} },
{ "keys": ["ctrl+alt+p"], "command": "noop" },
{ "keys": ["ctrl+r"], "command": "noop", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+g"], "command": "noop", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+;"], "command": "noop", "args": {"overlay": "goto", "text": "#"} },
{ "keys": ["f12"], "command": "noop" },
{ "keys": ["shift+f12"], "command": "noop" },
{ "keys": ["ctrl+shift+r"], "command": "noop" },
{ "keys": ["alt+-"], "command": "noop" },
{ "keys": ["alt+shift+-"], "command": "noop" },
{ "keys": ["alt+keypad_minus"], "command": "noop" },
{ "keys": ["alt+shift+keypad_minus"], "command": "noop" },
{ "keys": ["ctrl+i"], "command": "noop", "args": {"panel": "incremental_find", "reverse": false} },
{ "keys": ["ctrl+shift+i"], "command": "noop", "args": {"panel": "incremental_find", "reverse": true} },
{ "keys": ["ctrl+shift+h"], "command": "noop" },
{ "keys": ["f3"], "command": "noop" },
{ "keys": ["shift+f3"], "command": "noop" },
{ "keys": ["ctrl+f3"], "command": "noop" },
{ "keys": ["ctrl+shift+f3"], "command": "noop" },
{ "keys": ["alt+f3"], "command": "noop" },
{ "keys": ["ctrl+e"], "command": "noop" },
{ "keys": ["ctrl+shift+e"], "command": "noop" },
{ "keys": ["ctrl+shift+f"], "command": "noop", "args": {"panel": "find_in_files"} },
{ "keys": ["f4"], "command": "noop" },
{ "keys": ["shift+f4"], "command": "noop" },
{ "keys": ["ctrl+."], "command": "noop" },
{ "keys": ["ctrl+,"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+z"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+/"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+;"], "command": "noop", "args": { "prefer_hide": true } },
{ "keys": ["f6"], "command": "noop", "args": {"setting": "spell_check"} },
{ "keys": ["ctrl+f6"], "command": "noop" },
{ "keys": ["ctrl+shift+f6"], "command": "noop" },
{ "keys": ["ctrl+shift+up"], "command": "noop" },
{ "keys": ["ctrl+shift+down"], "command": "noop" },
{ "keys": ["ctrl+backspace"], "command": "noop", "args": { "forward": false } },
{ "keys": ["ctrl+shift+backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
{ "keys": ["ctrl+delete"], "command": "noop", "args": { "forward": true } },
{ "keys": ["ctrl+shift+delete"], "command": "noop", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
{ "keys": ["ctrl+/"], "command": "noop", "args": { "block": false } },
{ "keys": ["ctrl+shift+/"], "command": "noop", "args": { "block": true } },
{ "keys": ["ctrl+j"], "command": "noop" },
{ "keys": ["ctrl+shift+d"], "command": "noop" },
{ "keys": ["ctrl+`"], "command": "noop", "args": {"panel": "console", "toggle": true} },
{ "keys": ["alt+/"], "command": "noop" },
{ "keys": ["alt+/"], "command": "noop", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
{ "keys": ["ctrl+alt+shift+p"], "command": "noop" },
{ "keys": ["f7"], "command": "noop" },
{ "keys": ["ctrl+shift+b"], "command": "noop", "args": {"select": true} },
{ "keys": ["ctrl+break"], "command": "noop" },
{ "keys": ["ctrl+t"], "command": "noop" },
{ "keys": ["f9"], "command": "noop", "args": {"case_sensitive": false} },
{ "keys": ["ctrl+f9"], "command": "noop", "args": {"case_sensitive": true} },
// Auto-pair quotes
{ "keys": ["\""], "command": "noop", "args": {"contents": "\"$0\""}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true }
]
},
{ "keys": ["\""], "command": "noop", "args": {"contents": "\"${0:$SELECTION}\""}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["\""], "command": "noop", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true },
]
},
{ "keys": ["backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\"$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true },
]
},
// Auto-pair single quotes
{ "keys": ["'"], "command": "noop", "args": {"contents": "'$0'"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true }
]
},
{ "keys": ["'"], "command": "noop", "args": {"contents": "'${0:$SELECTION}'"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["'"], "command": "noop", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true },
]
},
{ "keys": ["backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "'$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
{ "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true },
]
},
// Auto-pair brackets
{ "keys": ["("], "command": "noop", "args": {"contents": "($0)"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
]
},
{ "keys": ["("], "command": "noop", "args": {"contents": "(${0:$SELECTION})"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": [")"], "command": "noop", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
]
},
{ "keys": ["backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
]
},
// Auto-pair square brackets
{ "keys": ["["], "command": "noop", "args": {"contents": "[$0]"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
]
},
{ "keys": ["["], "command": "noop", "args": {"contents": "[${0:$SELECTION}]"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["]"], "command": "noop", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
]
},
{ "keys": ["backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\[$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
]
},
// Auto-pair curly brackets
{ "keys": ["{"], "command": "noop", "args": {"contents": "{$0}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true }
]
},
{ "keys": ["{"], "command": "noop", "args": {"begin": "{", "end": "}"}, "context":
[
{ "key": "indented_block", "match_all": true },
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true },
]
},
{ "keys": ["{"], "command": "noop", "args": {"contents": "{${0:$SELECTION}}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["}"], "command": "noop", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
]
},
{ "keys": ["backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
]
},
{ "keys": ["enter"], "command": "noop", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
]
},
{ "keys": ["shift+enter"], "command": "noop", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
]
},
{ "keys": ["enter"], "command": "noop", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "punctuation.definition.tag.begin", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": ">$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^</", "match_all": true },
]
},
{ "keys": ["shift+enter"], "command": "noop", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "punctuation.definition.tag.begin", "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": ">$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^</", "match_all": true },
]
},
{
"keys": ["alt+shift+1"],
"command": "noop",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1]]
}
},
{
"keys": ["alt+shift+2"],
"command": "noop",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
}
},
{
"keys": ["alt+shift+3"],
"command": "noop",
"args":
{
"cols": [0.0, 0.33, 0.66, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
}
},
{
"keys": ["alt+shift+4"],
"command": "noop",
"args":
{
"cols": [0.0, 0.25, 0.5, 0.75, 1.0],
"rows": [0.0, 1.0],
"cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
}
},
{
"keys": ["alt+shift+8"],
"command": "noop",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
}
},
{
"keys": ["alt+shift+9"],
"command": "noop",
"args":
{
"cols": [0.0, 1.0],
"rows": [0.0, 0.33, 0.66, 1.0],
"cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
}
},
{
"keys": ["alt+shift+5"],
"command": "noop",
"args":
{
"cols": [0.0, 0.5, 1.0],
"rows": [0.0, 0.5, 1.0],
"cells":
[
[0, 0, 1, 1], [1, 0, 2, 1],
[0, 1, 1, 2], [1, 1, 2, 2]
]
}
},
{ "keys": ["ctrl+1"], "command": "noop", "args": { "group": 0 } },
{ "keys": ["ctrl+2"], "command": "noop", "args": { "group": 1 } },
{ "keys": ["ctrl+3"], "command": "noop", "args": { "group": 2 } },
{ "keys": ["ctrl+4"], "command": "noop", "args": { "group": 3 } },
{ "keys": ["ctrl+5"], "command": "noop", "args": { "group": 4 } },
{ "keys": ["ctrl+6"], "command": "noop", "args": { "group": 5 } },
{ "keys": ["ctrl+7"], "command": "noop", "args": { "group": 6 } },
{ "keys": ["ctrl+8"], "command": "noop", "args": { "group": 7 } },
{ "keys": ["ctrl+9"], "command": "noop", "args": { "group": 8 } },
{ "keys": ["ctrl+shift+1"], "command": "noop", "args": { "group": 0 } },
{ "keys": ["ctrl+shift+2"], "command": "noop", "args": { "group": 1 } },
{ "keys": ["ctrl+shift+3"], "command": "noop", "args": { "group": 2 } },
{ "keys": ["ctrl+shift+4"], "command": "noop", "args": { "group": 3 } },
{ "keys": ["ctrl+shift+5"], "command": "noop", "args": { "group": 4 } },
{ "keys": ["ctrl+shift+6"], "command": "noop", "args": { "group": 5 } },
{ "keys": ["ctrl+shift+7"], "command": "noop", "args": { "group": 6 } },
{ "keys": ["ctrl+shift+8"], "command": "noop", "args": { "group": 7 } },
{ "keys": ["ctrl+shift+9"], "command": "noop", "args": { "group": 8 } },
{ "keys": ["ctrl+0"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+up"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+shift+up"], "command": "noop", "args": {"move": false} },
{ "keys": ["ctrl+k", "ctrl+down"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+left"], "command": "noop", "args": {"forward": false} },
{ "keys": ["ctrl+k", "ctrl+right"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+shift+left"], "command": "noop", "args": {"forward": false} },
{ "keys": ["ctrl+k", "ctrl+shift+right"], "command": "noop" },
{ "keys": ["alt+1"], "command": "noop", "args": { "index": 0 } },
{ "keys": ["alt+2"], "command": "noop", "args": { "index": 1 } },
{ "keys": ["alt+3"], "command": "noop", "args": { "index": 2 } },
{ "keys": ["alt+4"], "command": "noop", "args": { "index": 3 } },
{ "keys": ["alt+5"], "command": "noop", "args": { "index": 4 } },
{ "keys": ["alt+6"], "command": "noop", "args": { "index": 5 } },
{ "keys": ["alt+7"], "command": "noop", "args": { "index": 6 } },
{ "keys": ["alt+8"], "command": "noop", "args": { "index": 7 } },
{ "keys": ["alt+9"], "command": "noop", "args": { "index": 8 } },
{ "keys": ["alt+0"], "command": "noop", "args": { "index": 9 } },
{ "keys": ["f2"], "command": "noop" },
{ "keys": ["shift+f2"], "command": "noop" },
{ "keys": ["ctrl+f2"], "command": "noop" },
{ "keys": ["ctrl+shift+f2"], "command": "noop" },
{ "keys": ["alt+f2"], "command": "noop" },
{ "keys": ["ctrl+shift+k"], "command": "noop", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["alt+q"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+u"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+l"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+space"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+a"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+w"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+x"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+y"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+k"], "command": "noop", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
{ "keys": ["ctrl+k", "ctrl+backspace"], "command": "noop", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
{ "keys": ["ctrl+k", "ctrl+g"], "command": "noop", "args": {"name": "mark"} },
{ "keys": ["ctrl+k", "ctrl+c"], "command": "noop" },
{ "keys": ["ctrl++"], "command": "noop" },
{ "keys": ["ctrl+="], "command": "noop" },
{ "keys": ["ctrl+-"], "command": "noop" },
{ "keys": ["alt+shift+w"], "command": "noop", "args": { "name": "Packages/XML/Snippets/long-tag.sublime-snippet" } },
{ "keys": ["ctrl+shift+["], "command": "noop" },
{ "keys": ["ctrl+shift+]"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+1"], "command": "noop", "args": {"level": 1} },
{ "keys": ["ctrl+k", "ctrl+2"], "command": "noop", "args": {"level": 2} },
{ "keys": ["ctrl+k", "ctrl+3"], "command": "noop", "args": {"level": 3} },
{ "keys": ["ctrl+k", "ctrl+4"], "command": "noop", "args": {"level": 4} },
{ "keys": ["ctrl+k", "ctrl+5"], "command": "noop", "args": {"level": 5} },
{ "keys": ["ctrl+k", "ctrl+6"], "command": "noop", "args": {"level": 6} },
{ "keys": ["ctrl+k", "ctrl+7"], "command": "noop", "args": {"level": 7} },
{ "keys": ["ctrl+k", "ctrl+8"], "command": "noop", "args": {"level": 8} },
{ "keys": ["ctrl+k", "ctrl+9"], "command": "noop", "args": {"level": 9} },
{ "keys": ["ctrl+k", "ctrl+0"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+j"], "command": "noop" },
{ "keys": ["ctrl+k", "ctrl+t"], "command": "noop" },
{ "keys": ["context_menu"], "command": "noop" },
{ "keys": ["alt+c"], "command": "noop", "context":
[
{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]
},
{ "keys": ["alt+r"], "command": "noop", "context":
[
{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]
},
{ "keys": ["alt+w"], "command": "noop", "context":
[
{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]
},
{ "keys": ["alt+a"], "command": "noop", "context":
[
{ "key": "setting.is_widget", "operator": "equal", "operand": true }
]
},
// Find panel key bindings
{ "keys": ["enter"], "command": "noop", "context":
[{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
},
{ "keys": ["shift+enter"], "command": "noop", "context":
[{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
},
{ "keys": ["alt+enter"], "command": "noop", "args": {"close_panel": true},
"context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
},
// Replace panel key bindings
{ "keys": ["enter"], "command": "noop", "context":
[{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},
{ "keys": ["shift+enter"], "command": "noop", "context":
[{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},
{ "keys": ["alt+enter"], "command": "noop", "args": {"close_panel": true},
"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},
{ "keys": ["ctrl+alt+enter"], "command": "noop", "args": {"close_panel": true},
"context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
},
// Incremental find panel key bindings
{ "keys": ["enter"], "command": "noop", "context":
[{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
},
{ "keys": ["shift+enter"], "command": "noop", "context":
[{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
},
{ "keys": ["alt+enter"], "command": "noop", "args": {"close_panel": true},
"context": [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
},
// Find in Files panel key bindings
{ "keys": ["alt+enter"], "command": "noop",
"context": [{"key": "panel", "operand": "find_in_files"}, {"key": "panel_has_focus"}]
},
{ "keys": ["ctrl+alt+enter"], "command": "noop",
"context": [{"key": "panel", "operand": "find_in_files"}, {"key": "panel_has_focus"}]
},
// HTML, XML close tag
{ "keys": ["/"], "command": "noop", "args": { "insert_slash": true }, "context":
[
{ "key": "selector", "operator": "equal", "operand": "(text.html, text.xml) - string - comment", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": ".*<$", "match_all": true },
{ "key": "setting.auto_close_tags" }
]
},
// Linux custom
{ "keys": ["ctrl+b"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["ctrl+f"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["ctrl+p"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["ctrl+n"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["ctrl+h"], "command": "left_delete" },
{ "keys": ["ctrl+a"], "command": "move_to", "args": {"to": "bol", "extend": false} },
{ "keys": ["ctrl+e"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["ctrl+d"], "command": "right_delete" },
{ "keys": ["super+d"], "command": "find_under_expand" },
// Mac default
// Move
{ "keys": ["left"], "command": "move", "args": {"by": "characters", "forward": false} },
{ "keys": ["right"], "command": "move", "args": {"by": "characters", "forward": true} },
{ "keys": ["up"], "command": "move", "args": {"by": "lines", "forward": false} },
{ "keys": ["down"], "command": "move", "args": {"by": "lines", "forward": true} },
{ "keys": ["shift+left"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["shift+right"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["shift+up"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["shift+down"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["ctrl+shift+b"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+f"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
{ "keys": ["ctrl+shift+p"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+n"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
{ "keys": ["ctrl+shift+a"], "command": "move_to", "args": {"to": "bol", "extend": true} },
{ "keys": ["ctrl+shift+e"], "command": "move_to", "args": {"to": "eol", "extend": true} },
{ "keys": ["super+shift+n"], "command": "new_window" },
{ "keys": ["super+shift+w"], "command": "close_window" },
{ "keys": ["super+o"], "command": "prompt_open" },
{ "keys": ["super+shift+t"], "command": "reopen_last_file" },
{ "keys": ["super+alt+up"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": ["super+n"], "command": "new_file" },
{ "keys": ["super+s"], "command": "save" },
{ "keys": ["super+shift+s"], "command": "prompt_save_as" },
{ "keys": ["super+alt+s"], "command": "save_all" },
{ "keys": ["super+w"], "command": "close" },
{ "keys": ["super+k", "super+b"], "command": "toggle_side_bar" },
{ "keys": ["super+ctrl+f"], "command": "toggle_full_screen" },
{ "keys": ["super+ctrl+shift+f"], "command": "toggle_distraction_free" },
{ "keys": ["super+z"], "command": "undo" },
{ "keys": ["super+shift+z"], "command": "redo" },
{ "keys": ["super+y"], "command": "redo_or_repeat" },
{ "keys": ["super+u"], "command": "soft_undo" },
{ "keys": ["super+shift+u"], "command": "soft_redo" },
{ "keys": ["super+x"], "command": "cut" },
{ "keys": ["super+c"], "command": "copy" },
{ "keys": ["super+v"], "command": "paste" },
{ "keys": ["super+shift+v"], "command": "paste_and_indent" },
{ "keys": ["super+k", "super+v"], "command": "paste_from_history" },
{ "keys": ["super+option+v"], "command": "paste_from_history" },
{ "keys": ["ctrl+alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["ctrl+alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["ctrl+alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["ctrl+alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
{ "keys": ["ctrl+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["ctrl+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
{ "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
{ "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
{ "keys": ["ctrl+alt+up"], "command": "scroll_lines", "args": {"amount": 1.0} },
{ "keys": ["ctrl+alt+down"], "command": "scroll_lines", "args": {"amount": -1.0} },
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} },
{ "keys": ["super+shift+["], "command": "prev_view" },
{ "keys": ["super+shift+]"], "command": "next_view" },
{ "keys": ["super+alt+left"], "command": "prev_view" },
{ "keys": ["super+alt+right"], "command": "next_view" },
{ "keys": ["ctrl+pagedown"], "command": "next_view" },
{ "keys": ["ctrl+pageup"], "command": "prev_view" },
{ "keys": ["ctrl+tab"], "command": "next_view_in_stack" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view_in_stack" },
{ "keys": ["super+a"], "command": "select_all" },
{ "keys": ["super+shift+l"], "command": "split_selection_into_lines" },
{ "keys": ["escape"], "command": "single_selection", "context":
[
{ "key": "num_selections", "operator": "not_equal", "operand": 1 }
]
},
{ "keys": ["escape"], "command": "clear_fields", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "clear_fields", "context":
[
{ "key": "has_prev_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "hide_panel", "args": {"cancel": true},
"context":
[
{ "key": "panel_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "hide_overlay", "context":
[
{ "key": "overlay_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "hide_popup", "context":
[
{ "key": "popup_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["escape"], "command": "hide_auto_complete", "context":
[
{ "key": "auto_complete_visible", "operator": "equal", "operand": true }
]
},
{ "keys": ["super+]"], "command": "indent" },
{ "keys": ["super+["], "command": "unindent" },
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
{ "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false},
"context":
[
{ "key": "setting.tab_completion", "operator": "equal", "operand": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": ".*\\b[0-9]+$", "match_all": true },
]
},
{ "keys": ["tab"], "command": "replace_completion_with_next_completion", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "reindent", "context":
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["tab"], "command": "indent", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
{ "keys": ["tab"], "command": "next_field", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["tab"], "command": "commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab" }
]
},
{ "keys": ["shift+tab"], "command": "insert", "args": {"characters": "\t"} },
{ "keys": ["shift+tab"], "command": "unindent", "context":
[
{ "key": "setting.shift_tab_unindent", "operator": "equal", "operand": true }
]
},
{ "keys": ["shift+tab"], "command": "unindent", "context":
[
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\t ]*" }
]
},
{ "keys": ["shift+tab"], "command": "unindent", "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
{ "keys": ["shift+tab"], "command": "prev_field", "context":
[
{ "key": "has_prev_field", "operator": "equal", "operand": true }
]
},
{ "keys": ["super+l"], "command": "expand_selection", "args": {"to": "line"} },
{ "keys": ["super+d"], "command": "find_under_expand" },
{ "keys": ["super+k", "super+d"], "command": "find_under_expand_skip" },
{ "keys": ["super+shift+space"], "command": "expand_selection", "args": {"to": "scope"} },
{ "keys": ["ctrl+shift+m"], "command": "expand_selection", "args": {"to": "brackets"} },
{ "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} },
{ "keys": ["super+shift+j"], "command": "expand_selection", "args": {"to": "indentation"} },
{ "keys": ["super+shift+a"], "command": "expand_selection", "args": {"to": "tag"} },
{ "keys": ["super+alt+."], "command": "close_tag" },
{ "keys": ["ctrl+q"], "command": "toggle_record_macro" },
{ "keys": ["ctrl+shift+q"], "command": "run_macro" },
{ "keys": ["super+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["super+shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} },
{ "keys": ["enter"], "command": "commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab", "operand": false }
]
},
{ "keys": ["super+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["super+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
{ "keys": ["super+ctrl+p"], "command": "prompt_select_workspace" },
{ "keys": ["super+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["f12"], "command": "goto_definition" },
{ "keys": ["shift+f12"], "command": "goto_reference" },
{ "keys": ["super+alt+down"], "command": "goto_definition" },
{ "keys": ["super+alt+shift+down"], "command": "goto_reference" },
{ "keys": ["super+shift+r"], "command": "goto_symbol_in_project" },
{ "keys": ["ctrl+minus"], "command": "jump_back" },
{ "keys": ["ctrl+shift+minus"], "command": "jump_forward" },
{ "keys": ["super+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false} },
{ "keys": ["super+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": true} },
{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
{ "keys": ["super+alt+e"], "command": "replace_next" },
{ "keys": ["super+g"], "command": "find_next" },
{ "keys": ["super+shift+g"], "command": "find_prev" },
{ "keys": ["super+e"], "command": "slurp_find_string" },
{ "keys": ["super+shift+e"], "command": "slurp_replace_string" },
{ "keys": ["alt+super+g"], "command": "find_under" },
{ "keys": ["shift+alt+super+g"], "command": "find_under_prev" },
{ "keys": ["ctrl+super+g"], "command": "find_all_under" },
{ "keys": ["super+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} },
{ "keys": ["f4"], "command": "next_result" },
{ "keys": ["shift+f4"], "command": "prev_result" },
{ "keys": ["ctrl+."], "command": "next_modification" },
{ "keys": ["ctrl+,"], "command": "prev_modification" },
{ "keys": ["super+k", "super+z"], "command": "revert_modification" },
{ "keys": ["super+k", "super+forward_slash"], "command": "toggle_inline_diff" },
{ "keys": ["super+k", "super+;"], "command": "toggle_inline_diff", "args": { "prefer_hide": true } },
{ "keys": ["f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} },
{ "keys": ["ctrl+f6"], "command": "next_misspelling" },
{ "keys": ["ctrl+shift+f6"], "command": "prev_misspelling" },
{ "keys": ["ctrl+super+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+super+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+backspace"], "command": "delete_word", "args": { "forward": false, "sub_words": true } },
{ "keys": ["ctrl+delete"], "command": "delete_word", "args": { "forward": true, "sub_words": true } },
{ "keys": ["super+forward_slash"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["super+alt+forward_slash"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["super+j"], "command": "join_lines" },