Skip to content

Commit

Permalink
Add st4 menu files
Browse files Browse the repository at this point in the history
  • Loading branch information
zam1024t committed May 22, 2021
1 parent d732d67 commit ece6fc3
Show file tree
Hide file tree
Showing 13 changed files with 1,171 additions and 0 deletions.
10 changes: 10 additions & 0 deletions menu/4/en/Console Input Widget Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{ "command": "cut" },
{ "command": "copy" },
{ "command": "paste" },
{ "caption": "-" },
{ "command": "select_all" },
{ "caption": "-" },
{ "command": "console_python_version", "args": {"version": "3.8"}, "checkbox": true },
{ "command": "console_python_version", "args": {"version": "3.3"}, "checkbox": true },
]
24 changes: 24 additions & 0 deletions menu/4/en/Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{ "command": "open_context_url" },
{ "command": "goto_definition", "caption": "Goto Definition" },
{ "caption": "-", "id": "diff" },
{ "command": "toggle_inline_diff" },
{ "command": "revert_hunk", "caption": "Revert Diff Hunk" },
{ "caption": "-", "id": "clipboard" },
{ "command": "cut" },
{ "command": "copy" },
{ "command": "paste" },
{ "caption": "-", "id": "selection" },
{ "command": "select_all" },
{ "caption": "-", "id": "repo_commands" },
{ "caption": "Open Git Repository…", "command": "sublime_merge_open_repo" },
{ "caption": "File History…", "command": "sublime_merge_file_history" },
{ "caption": "Line History…", "command": "sublime_merge_line_history" },
{ "caption": "Blame File…", "command": "sublime_merge_blame_file" },
{ "caption": "-", "id": "file" },
{ "command": "open_in_browser", "caption": "Open in Browser" },
{ "command": "open_dir", "args": {"dir": "$file_path", "file": "$file_name"}, "caption": "Open Containing Folder…" },
{ "command": "copy_path", "caption": "Copy File Path" },
{ "command": "reveal_in_side_bar", "caption": "Reveal in Side Bar" },
{ "caption": "-", "id": "end" }
]
85 changes: 85 additions & 0 deletions menu/4/en/Encoding.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
{
"caption": "Set Encoding",
"children":
[
{ "caption": "UTF-8", "command": "set_encoding", "args": {"encoding": "utf-8" } },
{ "caption": "UTF-16 LE", "command": "set_encoding", "args": {"encoding": "utf-16 le" } },
{ "caption": "UTF-16 BE", "command": "set_encoding", "args": {"encoding": "utf-16 be" } },
{ "caption": "-" },
{ "caption": "Western (Windows 1252)", "command": "set_encoding", "args": {"encoding": "Western (Windows 1252)" } },
{ "caption": "Western (ISO 8859-1)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-1)" } },
{ "caption": "Western (ISO 8859-3)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-3)" } },
{ "caption": "Western (ISO 8859-15)", "command": "set_encoding", "args": {"encoding": "Western (ISO 8859-15)" } },
{ "caption": "Western (Mac Roman)", "command": "set_encoding", "args": {"encoding": "Western (Mac Roman)" } },
{ "caption": "DOS (CP 437)", "command": "set_encoding", "args": {"encoding": "DOS (CP 437)" } },
{ "caption": "Arabic (Windows 1256)", "command": "set_encoding", "args": {"encoding": "Arabic (Windows 1256)" } },
{ "caption": "Arabic (ISO 8859-6)", "command": "set_encoding", "args": {"encoding": "Arabic (ISO 8859-6)" } },
{ "caption": "Baltic (Windows 1257)", "command": "set_encoding", "args": {"encoding": "Baltic (Windows 1257)" } },
{ "caption": "Baltic (ISO 8859-4)", "command": "set_encoding", "args": {"encoding": "Baltic (ISO 8859-4)" } },
{ "caption": "Celtic (ISO 8859-14)", "command": "set_encoding", "args": {"encoding": "Celtic (ISO 8859-14)" } },
{ "caption": "Central European (Windows 1250)", "command": "set_encoding", "args": {"encoding": "Central European (Windows 1250)" } },
{ "caption": "Central European (ISO 8859-2)", "command": "set_encoding", "args": {"encoding": "Central European (ISO 8859-2)" } },
{ "caption": "Central European (Mac)", "command": "set_encoding", "args": {"encoding": "Central European (Mac)" } },
{ "caption": "Cyrillic (Windows 1251)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 1251)" } },
{ "caption": "Cyrillic (Windows 866)", "command": "set_encoding", "args": {"encoding": "Cyrillic (Windows 866)" } },
{ "caption": "Cyrillic (ISO 8859-5)", "command": "set_encoding", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
{ "caption": "Cyrillic (KOI8-R)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-R)" } },
{ "caption": "Cyrillic (KOI8-U)", "command": "set_encoding", "args": {"encoding": "Cyrillic (KOI8-U)" } },
{ "caption": "Estonian (ISO 8859-13)", "command": "set_encoding", "args": {"encoding": "Estonian (ISO 8859-13)" } },
{ "caption": "Greek (Windows 1253)", "command": "set_encoding", "args": {"encoding": "Greek (Windows 1253)" } },
{ "caption": "Greek (ISO 8859-7)", "command": "set_encoding", "args": {"encoding": "Greek (ISO 8859-7)" } },
{ "caption": "Hebrew (Windows 1255)", "command": "set_encoding", "args": {"encoding": "Hebrew (Windows 1255)" } },
{ "caption": "Hebrew (ISO 8859-8)", "command": "set_encoding", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
{ "caption": "Nordic (ISO 8859-10)", "command": "set_encoding", "args": {"encoding": "Nordic (ISO 8859-10)" } },
{ "caption": "Romanian (ISO 8859-16)", "command": "set_encoding", "args": {"encoding": "Romanian (ISO 8859-16)" } },
{ "caption": "Turkish (Windows 1254)", "command": "set_encoding", "args": {"encoding": "Turkish (Windows 1254)" } },
{ "caption": "Turkish (ISO 8859-9)", "command": "set_encoding", "args": {"encoding": "Turkish (ISO 8859-9)" } },
{ "caption": "Vietnamese (Windows 1258)", "command": "set_encoding", "args": {"encoding": "Vietnamese (Windows 1258)" } },
{ "caption": "-" },
{ "caption": "Hexadecimal", "command": "set_encoding", "args": {"encoding": "Hexadecimal" } }
]
},

{
"caption": "Reopen with Encoding",
"children":
[
{ "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } },
{ "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } },
{ "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } },
{ "caption": "-" },
{ "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } },
{ "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } },
{ "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } },
{ "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } },
{ "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } },
{ "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } },
{ "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } },
{ "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } },
{ "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } },
{ "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } },
{ "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } },
{ "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } },
{ "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } },
{ "caption": "Central European (Mac)", "command": "reopen", "args": {"encoding": "Central European (Mac)" } },
{ "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } },
{ "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } },
{ "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
{ "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } },
{ "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } },
{ "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } },
{ "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } },
{ "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } },
{ "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } },
{ "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
{ "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } },
{ "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } },
{ "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } },
{ "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } },
{ "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } },
{ "caption": "-" },
{ "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } }
]
},
]
10 changes: 10 additions & 0 deletions menu/4/en/Find in Files.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{ "command": "clear_location", "caption": "Clear" },
{ "command": "add_directory", "caption": "Add Folder" },
{ "command": "add_where_snippet", "args": {"snippet": "*.${0:txt}"}, "caption": "Add Include Filter" },
{ "command": "add_where_snippet", "args": {"snippet": "-*.${0:txt}"}, "caption": "Add Exclude Filter" },
{ "command": "add_where_snippet", "args": {"snippet": "<project filters>"}, "caption": "Add Project Filters" },
{ "command": "add_where_snippet", "args": {"snippet": "<open folders>"}, "caption": "Add Open Folders" },
{ "command": "add_where_snippet", "args": {"snippet": "<open files>"}, "caption": "Add Open Files" },
{ "command": "add_where_snippet", "args": {"snippet": "<current file>"}, "caption": "Add Current File" },
]
17 changes: 17 additions & 0 deletions menu/4/en/Indentation.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[
{ "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "Indent Using Spaces", "checkbox": true },
{ "caption": "-" },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "Tab Width: 1", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "Tab Width: 2", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "Tab Width: 3", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "Tab Width: 4", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "Tab Width: 5", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "Tab Width: 6", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "Tab Width: 7", "checkbox": true },
{ "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "Tab Width: 8", "checkbox": true },
{ "caption": "-" },
{ "command": "detect_indentation", "caption": "Guess Settings From Buffer" },
{ "caption": "-" },
{ "command": "expand_tabs", "caption": "Convert Indentation to Spaces", "args": {"set_translate_tabs": true} },
{ "command": "unexpand_tabs", "caption": "Convert Indentation to Tabs", "args": {"set_translate_tabs": true} }
]
5 changes: 5 additions & 0 deletions menu/4/en/Line Endings.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{ "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows Line Endings (CRLF)", "checkbox": true },
{ "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix Line Endings (LF)", "checkbox": true },
{ "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9 Line Endings (CR)", "checkbox": true }
]
4 changes: 4 additions & 0 deletions menu/4/en/Side Bar Mount Point.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[
{ "caption": "-", "id": "folder_commands" },
{ "caption": "Remove Folder from Project", "command": "remove_folder", "args": { "dirs": []} }
]
18 changes: 18 additions & 0 deletions menu/4/en/Side Bar.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[
{ "caption": "New File", "command": "new_file_at", "args": {"dirs": []} },
{ "caption": "Rename…", "command": "rename_path", "args": {"paths": []} },
{ "caption": "Delete File", "command": "delete_file", "args": {"files": [], "prompt": false} },
{ "caption": "Open Folder…", "command": "open_folder", "args": {"dirs": []} },
{ "caption": "Open Containing Folder…", "command": "open_containing_folder", "args": {"files": []} },
{ "caption": "Reveal Link Source", "command": "reveal_link_source", "args": {"dirs": []} },
{ "caption": "-", "id": "repo_commands" },
{ "caption": "Open Git Repository…", "command": "sublime_merge_open_repo", "args": {"paths": []}},
{ "caption": "File History…", "command": "sublime_merge_file_history", "args": {"files": []}},
{ "caption": "Folder History…", "command": "sublime_merge_folder_history", "args": {"paths": []}},
{ "caption": "Blame File…", "command": "sublime_merge_blame_file", "args": {"files": []}},
{ "caption": "-", "id": "folder_commands" },
{ "caption": "New Folder…", "command": "new_folder", "args": {"dirs": []} },
{ "caption": "Delete Folder", "command": "delete_folder", "args": {"dirs": [], "prompt": true} },
{ "caption": "Find in Folder…", "command": "find_in_folder", "args": {"dirs": []} },
{ "caption": "-", "id": "end" }
]
6 changes: 6 additions & 0 deletions menu/4/en/Syntax.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"caption": "Syntax",
"children": [ { "command": "$file_types" } ]
}
]
13 changes: 13 additions & 0 deletions menu/4/en/Tab Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[
{ "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close" },
{ "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Other Tabs" },
{ "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Tabs to the Right" },
{ "command": "close_unmodified", "args": { "group": -1 }, "caption": "Close Unmodified Tabs" },
{ "command": "close_unmodified_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Unmodified Tabs to the Right" },
{ "command": "close_deleted_files", "args": { "group": -1 }, "caption": "Close Tabs With Deleted Files" },
{ "caption": "-" },
{ "command": "clone_file", "args": { "add_to_selection": true, "group": -1, "index": -1 }, "caption": "Split View" },
{ "caption": "-" },
{ "command": "new_file", "caption": "New File" },
{ "command": "prompt_open_file", "caption": "Open File" }
]
11 changes: 11 additions & 0 deletions menu/4/en/Tab Sidebar Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[
{ "command": "close_selected", "args": { "group": -1 }, "caption": "Close" },
{ "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Others" },
{ "command": "close_unmodified", "args": { "group": -1, "index": -1 }, "caption": "Close Unmodified" },
{ "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Others Below" },
{ "command": "close_unmodified_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Unmodified Below" },
{ "command": "close_deleted_files", "args": { "group": -1 }, "caption": "Close Deleted Files" },
{ "caption": "-" },
{ "command": "new_file", "caption": "New File" },
{ "command": "prompt_open_file", "caption": "Open File" }
]
9 changes: 9 additions & 0 deletions menu/4/en/Widget Context.sublime-menu.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{ "command": "open_context_url" },
{ "caption": "-" },
{ "command": "cut" },
{ "command": "copy" },
{ "command": "paste" },
{ "caption": "-" },
{ "command": "select_all" }
]
Loading

0 comments on commit ece6fc3

Please sign in to comment.