-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
builtin_commands_meta_data.yaml
757 lines (757 loc) · 22.8 KB
/
builtin_commands_meta_data.yaml
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
---
# Metadata about the described commands.
build: 4149
---
add_directory:
command_type: find
doc_string: Opens a dialog box to prompt for a folder to the Where Input in the Find in Files panel.
add_where_snippet:
command_type: find
doc_string: Adds a snippet to the 'Where' field in the Find in Files panel.
append:
args: !!omap
- characters:
- force: false
- scroll_to_end: false
- disable_tab_translation: false
command_type: text
doc_string: Append the given text to the end of the document.
auto_complete:
args:
disable_auto_insert: false
next_completion_if_showing: false
auto_complete_commit_on_tab: true
command_type: text
doc_string: Show the auto-completion pop-up.
build:
args: !!omap
- select: false
- build_system: ""
- variant: ""
- choice_build_system: false
- choice_variant: false
command_type: window
doc_string: 'Execute the provided build system or prompt for selection (select: true) and choose a default.
build_system should be a resource path to a build system file or the name of a project-specific build system.'
cancel_build:
command_type: window
doc_string: Cancel the current build.
clear_bookmarks:
command_type: text
doc_string: Remove all bookmarks in the current document.
clear_fields:
command_type: text
doc_string: Clear the fields of the current snippet.
clear_location:
command_type: find
doc_string: Clears the 'Where' field in the Find in Files panel.
clear_recent_files:
command_type: window
doc_string: Clears the list of recently opened files.
clear_recent_projects_and_workspaces:
command_type: window
doc_string: Clears the list of recently opened projects and workspaces.
close:
command_type: window
doc_string: Close the active view.
clone_file:
command_type: window
doc_string: Create a new view into the file.
close_all:
command_type: window
doc_string: Close all views.
close_by_index:
args:
group: -1
index: -1
command_type: window
doc_string: Close a view of a group by index. A value of -1 means active group/view.
close_deleted_files:
args:
group: -1
command_type: window
doc_string: Close all views into deleted files.
added: 4050
close_file:
command_type: window
doc_string: Close the active file.
close_folder_list:
command_type: window
doc_string: Remove all folders from the sidebar and hide it.
close_others_by_index:
args:
group: -1
index: -1
command_type: window
doc_string: Close all views of a group but the one identified by group and index. A value of -1 means active group/view.
close_selected:
args:
group: -1
command_type: window
doc_string: Close all selected views ov a group. A value of -1 means active group.
added: 4050
close_tag:
args:
insert_slash: true
command_type: window
doc_string: Close an HTML/XML tag.
close_to_right_by_index:
args:
group: -1
index: -1
command_type: window
doc_string: Close all views of a group right of the one identified by index. A value of -1 means active group/view.
close_transient:
command_type: window
doc_string: Close all transient sheets and views.
added: 4050
close_unmodified:
args:
group: -1
index: -1
command_type: window
doc_string: Close all unmodified views of a group. A value of -1 means active group.
added: 4050
close_unmodified_to_right_by_index:
args:
group: -1
index: -1
command_type: window
doc_string: Close all unmodified views of a group right of the one identified by index. A value of -1 means active group/view.
added: 4050
close_window:
command_type: window
doc_string: Close the active window.
close_workspace:
command_type: window
doc_string: Close the active workspace.
commit_completion:
command_type: text
doc_string: Insert the selected item into the text and close completion panel.
console_python_version:
args: !!omap
- version: "3.8"
- checkbox: true
command_type: window
doc_string: Switch python interpreter version in debug console.
added: 4050
context_menu:
command_type: window
doc_string: Show the context menu.
copy:
command_type: text
doc_string: Copy the selected text to the clipboard.
copy_as_html:
command_type: text
args:
regions: The region(s) to export.
By default it will export the whole view.
Can be given either a list of regions or a single region.
minihtml:
Whether the exported HTML should be compatible with the Sublime Text HTML implementation.
enclosing_tags: Whether to enclose the exported HTML in a tag with top-level styling.
font_size: Whether to include the font size in the top level styling.
Only applies when enclosing_tags=True is provided.
font_family: Whether to include the font family in the top level styling.
Only applies when enclosing_tags=True is provided.
added: 4092
cut:
command_type: text
doc_string: Cut the selected text to the clipboard.
delete_word:
command_type: text
doc_string: Delete the (sub-)word in front of or after each caret.
args:
forward: true
sub_words: false
detect_indentation:
args:
show_message: false
command_type: text
doc_string: Guess indentation settings from the text content.
added: 4050
duplicate_line:
command_type: text
doc_string: Create a copy of each caret's line.
exit:
command_type: application
doc_string: Close all windows and exit Sublime Text.
expand_selection:
args:
to: line|scope|brackets|indentation|tag|bol|hardbol|eol|hardeol|bof|eof|brackets|smart
command_type: text
doc_string: Expand the current text caret selection(s) to the specified location.
expand_selection_to_paragraph:
command_type: text
doc_string: Expand the current text caret selection(s) to the paragraph(s).
expand_snippet:
command_type: text
added: 4050
find_all:
command_type: find
doc_string: Find all tokens which match the find pattern.
find_all_under:
command_type: text
doc_string: Seach and select all text matches, which are the same as the text selected text or the word under the caret.
find_next:
command_type: text
doc_string: Jump to the next occurrence of the text or pattern in the find buffer.
find_prev:
command_type: text
doc_string: Jump to the previous occurrence of the text or pattern in the find buffer.
find_under:
command_type: text
doc_string: Finds the next occurrence of the current selection or the current word.
find_under_expand:
command_type: text
doc_string: Adds a new selection based on the current selection or expands the selection to the current word.
find_under_expand_skip:
command_type: text
doc_string: Adds a new selection based on the current selection or expands the selection to the current word while removing the current selection.
find_under_prev:
command_type: text
doc_string: Finds the previous occurrence of the current selection or the current word.
focus_by_index:
args:
index:
command_type: window
doc_string: Focus one of multiple selected views in the active group by its index.
added: 4050
focus_group:
args:
group: 0
command_type: window
doc_string: Set the focus to a view in an other group.
focus_side_bar:
command_type: window
doc_string: Focus the sidebar to enable navigation by keyboard.
fold_tag_attributes:
command_type: text
doc_string: Fold all html/xml tag attributes.
goto_symbol_in_project:
command_type: window
doc_string: Open the Goto Symbol In Project Quick Panel
hide_auto_complete:
command_type: text
doc_string: Hide the auto-completion pop-up.
hide_overlay:
command_type: window
doc_string: Hide the current visible overlay.
hide_panel:
command_type: window
doc_string: Hide the current visible panel.
hide_popup:
command_type: text
doc_string: Hide the current popup window.
hot_exit:
command_type: application
doc_string: Save session and exit Sublime Text even if "hot_exit" is disabled in preferences.
indent:
command_type: text
doc_string: Increase the indentation level of the text selection(s).
insert:
args:
characters:
command_type: text
doc_string: Insert the specified text into the document at the text caret location(s).
insert_snippet:
args:
contents:
command_type: text
doc_string: Insert the specified snippet content into the document at the text caret
location(s).
join_lines:
command_type: text
doc_string: Join the current line with the following line.
left_delete:
command_type: text
doc_string: Delete the character to the left of the text selection caret(s).
move:
args: !!omap
- by: chars|pages|lines|characters|words|word_ends|subwords|subword_ends|stops
- empty_line: false # used by "stops"
- forward: true
- extend: false
- lines: false
command_type: text
doc_string: Move the selection caret(s) by the specified units.
move_to:
args: !!omap
- to: eol|bol|eof|bof|brackets|hardbol|hardeol
- extend: false
command_type: text
doc_string: Move the selection caret(s) to the specified relative location.
move_to_group:
args:
group: 0
command_type: window
doc_string: Move the active tab to the specified layout group.
new_file:
command_type: window
doc_string: Create a new empty tab in the active window.
new_os_tab:
command_type: window
doc_string: Create a new empty window in the os tab.
added: 4050
new_window:
command_type: application
doc_string: Open a new ST window.
new_window_for_project:
command_type: window
doc_string: Clone project into a new workspace.
next_bookmark:
command_type: text
doc_string: Navigate to the next bookmark in the document.
next_field:
command_type: text
doc_string: Navigate to the next field in the snippet.
next_misspelling:
command_type: text
doc_string: Navigate to the next misspelling in the document.
next_modification:
command_type: text
doc_string: Navigate to the next modification in the document.
next_os_tab:
command_type: window
doc_string: Set the focus to the next window in the os tab.
added: 4050
next_result:
command_type: window
doc_string: Jump to the next build result.
next_view:
args:
extend: true
command_type: window
doc_string: Set the focus to the next view by index.
next_view_in_stack:
command_type: window
doc_string: Set the focus to the next view in the stack of recent edited view.
open_dir:
args:
dir:
file:
command_type: window
doc_string: Open the specified dir in the default File Manager application, optionally
highlighting the specified file.
open_file:
args: !!omap
- file:
- contents:
- encoded_position: true # ST4127
- add_to_selection: true # ST?
- clear_to_right: true # ST4149
- force_clone: true # ST4149
- force_group: true # ST4149
- replace_mru: true # ST4149
- semi_transient: true # ST4149
- transient: true # ST4149
command_type: window
doc_string: Open the specified file, and if it doesn't exist, prefill the default
contents.
open_project_or_workspace:
command_type: window
doc_string: Open the specified project or workspace file, in a new window by default.
args:
file:
new_window: true
added: 4050
open_recent_file:
command_type: window
doc_string: Open a recently opened file.
open_recent_folder:
args:
index: 0
command_type: window
doc_string: Open a recently opened folder.
open_recent_project_or_workspace:
args:
index: 0
command_type: window
doc_string: Open a recently opened project or workspace.
open_url:
args:
url:
command_type: application
doc_string: Open the web browser to display the URL or the default application associated with the file/folder represented by the URL.
paste:
command_type: text
doc_string: Paste the text on the clipboard at the text selection location(s), replacing
the selected text.
paste_and_indent:
command_type: text
doc_string: Paste the text on the clipboard at the text selection location(s), replacing
the selected text, and making the base indentation level match that of the target
location(s).
prev_bookmark:
command_type: text
doc_string: Navigate to the previous bookmark in the document.
prev_field:
command_type: text
doc_string: Navigate to the previous field in the snippet.
prev_misspelling:
command_type: text
doc_string: Navigate to the previous misspelling in the document.
prev_modification:
command_type: text
doc_string: Navigate to the previous modification in the document.
prev_os_tab:
command_type: window
doc_string: Set the focus to the previous window in the os tab.
added: 4050
prev_result:
command_type: window
doc_string: Jump to the previous build result.
prev_view:
args:
extend: true
command_type: window
doc_string: Set the focus to the previous view by index.
prev_view_in_stack:
command_type: window
doc_string: Set the focus to the previous view in the stack of recent edited view.
prompt_add_folder:
command_type: window
doc_string: Show the OS' native open dialog, so the user can choose what folder they
want to add to the sidebar.
prompt_open:
command_type: window
doc_string: Show the MacOS' native open dialog, so the user can choose what file they
want to open.
prompt_open_file:
command_type: window
doc_string: Show the OS' native open dialog, so the user can choose what file they
want to open.
prompt_open_folder:
command_type: window
doc_string: Show the OS' native open dialog, so the user can choose what folder they
want to open.
prompt_open_project_or_workspace:
command_type: window
doc_string: Show the OS' native open dialog, so the user can choose what project they
want to open.
prompt_save_as:
command_type: window
doc_string: Show the OS' native save as dialog, so the user can choose the path
where they want the file to be saved.
prompt_select_workspace:
command_type: window
doc_string: Quick Switch Project.
prompt_switch_project_or_workspace:
command_type: window
doc_string: Show the OS' native open dialog, so the user can choose what project they
want to switch to.
purchase_license:
command_type: application
doc_string: Open the purchase license dialog.
quick_diff:
command_type: window
doc_string: Show a diff of the file currently in buffer compared to its saved state.
redo:
command_type: text
doc_string: Redo the last undo.
redo_or_repeat:
command_type: text
doc_string: Redo the last undo or repeat the last action if there is no undo to revert.
refresh_folder_list:
command_type: window
doc_string: Refresh the folder list in the sidebar from the filesystem.
reindent:
args:
single_line: false
command_type: text
doc_string: Reindent the lines.
remove_folder:
args:
dirs: []
command_type: window
doc_string: Remove dirs from sidebar.
remove_license:
command_type: application
doc_string:
reopen:
args:
encoding:
command_type: text
doc_string: Reopen the file with a given encoding.
reopen_last_file:
command_type: window
doc_string: Reopen the most recently closed file.
replace_all:
command_type: find
doc_string: Replace all tokens in the view, which match the pattern in the Find Input Field.
replace_completion_with_auto_complete:
command_type: text
doc_string: Replace the most recently inserted completion with the next result provided by the auto completion engine.
replace_next:
command_type: find
doc_string: Replace the next token in the view, which matches the pattern in the Find Input Field.
resize_window:
args: !!omap
- width:
- height:
command_type: window
doc_string: Resize the window('s external bounds) to the width and height specified.
reveal_link_source:
args:
dirs: []
command_type: window
doc_string: Resolve a symlink to expand the folder it represents.
reveal_in_side_bar:
command_type: window
doc_string: Reveals the active view's file in the sidebar.
revert:
command_type: view
doc_string: Reload the file.
revert_hunk:
command_type: text
doc_string: Revert a diff hunk.
added: 4053
revert_modification:
command_type: text
doc_string: Revert a single modification.
right_delete:
command_type: text
doc_string: Delete the character to the right of the text selection caret(s).
run_macro:
command_type: text
doc_string: Run the last recorded macro.
run_macro_file:
args:
file:
command_type: text
doc_string: Run a macro saved in a macro file.
save:
args:
async: true
encoding:
command_type: text
doc_string: Save the active document.
save_all:
command_type: window
doc_string: Save all the open documents in the active window.
save_macro:
command_type: window
doc_string: Save recorded macro to a file.
save_project_and_workspace_as:
command_type: window
doc_string: Save active project and workspace as ....
save_workspace_as:
command_type: window
doc_string: Save active workspace as ....
scroll_lines:
args:
amount: 1.0
command_type: text
doc_string: Scroll the active view by the specified number of lines. A negative
number means to scroll in an upwards direction.
select_all:
command_type: text
doc_string: Select the entire contents of the document.
select_all_bookmarks:
command_type: text
doc_string: Select all the bookmarks in the current document.
select_bookmark:
args:
index:
command_type: text
doc_string: Select a specific bookmark (by index) in the current document.
select_by_index:
args:
index:
command_type: window
doc_string: Focus one view in the active group by its index.
select_lines:
args:
forward: true
command_type: text
doc_string: Select the current or next line, if the full current line is selected.
set_build_system:
command_type: window
doc_string: Set selected build system.
set_layout:
args: !!omap
- cols: [0.0, 1.0]
- rows: [0.0, 1.0]
- cells: [[0, 0, 1, 1]]
command_type: window
doc_string: Set the layout of the window.
set_file_type:
args:
syntax: Packages/Foo/Bar.sublime-syntax
command_type: text
doc_string: Set the syntax file for the view.
set_line_ending:
args:
type: linux|osx|windows
command_type: text
doc_string:
set_setting:
args:
setting: ""
value:
command_type: text
doc_string: Modifies a view setting.
show_about_window:
command_type: application
doc_string: Display the About dialog.
show_changelog:
command_type: application
doc_string: Display the Changelog dialog.
show_license_window:
command_type: application
doc_string: Display the License dialog.
show_overlay:
args: !!omap
- overlay: goto|command_palette
- text:
- show_files:
- command:
- args:
command_type: window
doc_string: Show the overlay from the argument.
show_panel:
args: !!omap
- panel: incremental_find|find|replace|find_in_files|console
- pattern: ""
- replace_pattern: ""
- reverse: false
- regex: false
- in_selection: false
- whole_word: false
- preserve_case: false,
- use_gitignore: true,
- highlight: true
- wrap: true
- toggle: true
- toggle_when_not_focused: true
command_type: window
doc_string: Show the panel from the argument.
show_progress_window:
command_type: application
doc_string: Display the indexing status dialog.
single_selection:
command_type: text
doc_string: Switch to only the first selection.
slurp_find_string:
command_type: window
doc_string: Use the current selection as the find string.
slurp_replace_string:
command_type: window
doc_string: Use the current selection as the replacement string.
soft_redo:
command_type: text
doc_string: Redo the last move or action, which has been undone.
soft_undo:
command_type: text
doc_string: Undo the last move or action.
split_selection_into_lines:
command_type: text
doc_string: Split each selection into individual lines.
sublime_merge_blame_file:
args:
files: []
command_type: window
doc_string: Git Blame selected files with Sublime Merge.
sublime_merge_file_history:
args:
files: []
command_type: window
doc_string: Show the history of the selected file in Sublime Merge
sublime_merge_folder_history:
args:
paths: []
command_type: window
doc_string: Show the history of the selected folder in Sublime Merge
sublime_merge_line_history:
command_type: text
doc_string: Show the history of the selected line(s) in Sublime Merge
sublime_merge_open_repo:
args:
paths: []
command_type: window
doc_string: Open the repository of the selected file/folder in Sublime Merge.
swap_line_down:
command_type: text
doc_string: Move each caret's line down by one.
swap_line_up:
command_type: text
doc_string: Move each caret's line up by one.
toggle_bookmark:
command_type: text
doc_string: For each selection, toggle it's bookmarked state.
toggle_case_sensitive:
command_type: find
doc_string: Toggle case sensitive search in the Find/Replace panel.
toggle_distraction_free:
command_type: window
doc_string: Toggle distraction free mode.
toggle_full_screen:
command_type: window
doc_string: Toggle whether the current Sublime Text window is in full screen mode.
toggle_inline_diff:
args:
prefer_hide: false
command_type: text
doc_string: Toggle whether the inline diff of the modifications under the cursor is displayed.
added: 3206
toggle_menu:
command_type: window
doc_string: Toggle the visibility of the menu bar.
toggle_minimap:
command_type: window
doc_string: Toggle the visibility of the minimap.
toggle_overwrite:
command_type: text
doc_string: Toggle whether the caret is in insert mode or overwrite mode.
toggle_preserve_case:
command_type: find
doc_string: Toggle preserve case flag in the Replace panel.
toggle_record_macro:
command_type: text
doc_string: Start or stop to record a macro.
toggle_regex:
command_type: find
doc_string: Toggle regular expression mode in the Find/Replace panel.
toggle_save_all_on_build:
command_type: window
doc_string: Enable/Disable saving all open files before running a build command.
toggle_setting:
args:
setting:
command_type: text
doc_string: Toggle the specified boolean setting.
toggle_show_open_files:
command_type: window
doc_string: Toggle visibility of the list of open files in the sidebar.
toggle_side_bar:
command_type: window
doc_string: Toggle the visibility of the side bar.
toggle_status_bar:
command_type: window
doc_string: Toggle the visibility of the status bar.
toggle_tabs:
command_type: window
doc_string: Toggle the visibility of the tab controls.
toggle_whole_word:
command_type: find
doc_string: Toggle find whole word flag in the Find/Replace panel.
trim_trailing_white_space:
command_type: text
doc_string: Delete trailing whitespace from all lines.
added: 4050
undo:
command_type: text
doc_string: Undo the last action.
unindent:
command_type: text
doc_string: Unindent the selection by one level.
update_check:
command_type: application
doc_string: Look for updates of Sublime Text.
upgrade_license:
command_type: application
doc_string: Upgrade license of Sublime Text.
wrap_lines:
command_type: text
doc_string: Hard-wrap all lines at the ruler.
...