Skip to content

Commit

Permalink
Merge the official build1104 *.sublime-menu files
Browse files Browse the repository at this point in the history
  • Loading branch information
maboloshi committed Mar 3, 2019
1 parent 76b8949 commit db9b2d1
Show file tree
Hide file tree
Showing 16 changed files with 191 additions and 15 deletions.
6 changes: 6 additions & 0 deletions Action.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@
{ "caption": "-" },
{ "command": "git_undo", "mnemonic": "U" },
{ "command": "git_redo", "mnemonic": "R" },
{ "caption": "-" },
{
"caption": "Open Repository in Sublime Text…",
"command": "open_dir_in_sublime_text",
"args": { "dir": "$working_dir" }
},
{ "caption": "-", "id": "end" }
]
24 changes: 20 additions & 4 deletions Branch.sublime-menu
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
[
{ "command": "checkout_branch", "args": {"branch": "$branch"} },
{ "command": "merge_branch", "args": {"branch": "$branch"} },
{ "command": "checkout_branch", "args": { "branch": "$branch" } },
{
"command": "merge_branch",
"args": { "branch": "$branch" },
},
{ "command": "rebase_branch", "args": { "branch": "$branch" } },
{ "command": "delete_branch", "args": {"ref": "$ref"} },
{ "command": "delete_branch", "args": { "ref": "$ref" } },
{
"command": "show_command_palette",
"args":
Expand All @@ -15,7 +18,20 @@
{
"caption": "Copy '$branch'",
"command": "copy_to_clipboard",
"args": {"text": "$branch"}
"args": { "text": "$branch" }
},
{ "command": "hide_ref", "args": { "ref": "$ref" } },
{ "command": "show_ref", "args": { "ref": "$ref" } },
{ "command": "hide_all_refs_except", "args": { "ref": "$ref" } },
{ "command": "show_all_refs", "args": { "ref": "$ref" } },
{
"command": "show_command_palette",
"args":
{
"command": "set_upstream",
"args": { "branch": "$branch" },
"description": "Set Upstream…"
}
},
{ "caption": "-" },
{
Expand Down
29 changes: 28 additions & 1 deletion Commit.sublime-menu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"caption": "Copy Commit Hash",
"caption": "Copy '$short_commit…'",
"command": "copy_to_clipboard",
"args": {"text": "$commit"}
},
Expand Down Expand Up @@ -40,10 +40,37 @@
"caption": "Edit Commit Message",
"command": "edit_commit",
},
{
"caption": "Edit Commit Contents",
"command": "edit_commit_contents",
"args": { "commit": "$commit" },
},
{
"caption": "Squash with Parent",
"command": "squash_commit",
},
{
"caption": "Squash Selected Commits",
"command": "squash_commits",
},
{
"caption": "Squash Selected Commits, ignoring new messages (fixup)",
"command": "fixup_commits",
},
{
"caption": "Move Commit Up",
"command": "move_commit",
"args": { "commit": "$commit", "down": false },
},
{
"caption": "Move Commit Down",
"command": "move_commit",
"args": { "commit": "$commit", "down": true },
},
{
"caption": "Drop Selected Commits",
"command": "drop_commits",
},
]
},
{
Expand Down
5 changes: 5 additions & 0 deletions Context.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
{ "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…" },
Expand Down
13 changes: 12 additions & 1 deletion Diff Context.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,16 @@
},
{ "caption": "-" },
{ "command": "copy" },
{ "command": "select_all" }
{ "command": "select_all" },
{ "caption": "-" },
{ "command": "toggle_ignore_diff_whitespace" },
{
"caption": "Word Wrap",
"children":
[
{ "command": "set_word_wrap", "caption": "Auto", "args": {"word_wrap": "auto" }, "checkbox": true },
{ "command": "set_word_wrap", "caption": "Enabled", "args": {"word_wrap": true }, "checkbox": true },
{ "command": "set_word_wrap", "caption": "Disabled", "args": {"word_wrap": false }, "checkbox": true },
],
},
]
6 changes: 6 additions & 0 deletions File Mode Context.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{ "command": "copy" },
{ "command": "select_all" },
{ "caption": "-" },
{ "command": "toggle_ignore_diff_whitespace" },
]
6 changes: 6 additions & 0 deletions Index File.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"caption": "Unstage",
"command": "unstage_file", "args": { "path": "$path" }
},
]
51 changes: 45 additions & 6 deletions Main.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
{ "command": "paste", "mnemonic": "P" },
{ "caption": "-" },
{ "command": "select_all" },
{ "caption": "-" },
{ "command": "wrap_lines", "caption": "Wrap Paragraph" },
{ "caption": "-", "id": "end" },
]
},
Expand All @@ -71,6 +73,7 @@
{ "command": "git_redo", "mnemonic": "R" },
{ "caption": "-" },
{ "command": "stash", "caption": "Stash" },
{ "command": "show_command_palette", "args": { "command": "stash" }, "caption": "Stash with…" },
{ "command": "pop_stash", "caption": "Pop Stash" },
{ "caption": "-" },
{ "command": "show_command_palette", "args": { "command": "pull" }, "caption": "Pull…" },
Expand All @@ -85,6 +88,15 @@
"command": "show_command_palette",
"args": { "command": "checkout_branch" },
},
{
"caption": "Checkout Remote Branch…",
"command": "show_command_palette",
"args":
{
"command": "checkout_branch",
"args": { "local_refs": false, "remote_refs": true }
},
},
{
"caption": "创建分支…",
"command": "show_command_palette",
Expand All @@ -97,6 +109,14 @@
"caption": "重命名分支…",
"command": "show_command_palette",
"args":
{
"command": "create_branch_from_remote_branch"
}
},
{
"caption": "Rename Branch…",
"command": "show_command_palette",
"args":
{
"command": "rename_branch"
}
Expand Down Expand Up @@ -129,6 +149,7 @@
},
{ "caption": "-" },
{ "command": "open_dir", "args": {"dir": "$working_dir"}, "caption": "打开所在目录…" },
{ "command": "open_dir_in_sublime_text", "args": {"dir": "$working_dir"}, "caption": "Open in Sublime Text…" },
{ "caption": "-", "id": "end" }
]
},
Expand All @@ -142,11 +163,24 @@
{ "command": "navigate_forward", "caption": "前进" },
{ "command": "navigate_to_commit_message", "caption": "跳转到提交信息" },
{ "command": "navigate_to_head", "caption": "跳转到HEAD" },
{ "command": "navigate_to_parent", "caption": "Go to Parent" },
{
"caption": "跳转到Commit…",
"command": "show_command_palette",
"args": {"command": "navigate_to_commit"},
},
{
"caption": "Navigate to Branch…",
"command": "show_command_palette",
"args": {"command": "navigate_to_branch"},
},
{
"caption": "Navigate to Tag…",
"command": "show_command_palette",
"args": {"command": "navigate_to_tag"},
},
{ "caption": "-" },
{ "command": "toggle_select_file", "caption": "Show Contents" },
{ "caption": "-" },
{ "command": "toggle_search", "caption": "查找" },
{ "command": "show_command_palette", "args": {"command": "blame"}, "caption": "Blame…" },
Expand Down Expand Up @@ -242,23 +276,28 @@
{ "command": "edit_gitflow_config", "caption": "配置 Git Flow" },
{
"caption": "Start Git Flow Feature Branch",
"command": "gitflow_start_feature",
"command": "show_command_palette",
"args": { "command": "gitflow_start_feature" },
},
{
"caption": "Start Git Flow Bugfix Branch",
"command": "gitflow_start_bugfix",
"command": "show_command_palette",
"args": { "command": "gitflow_start_bugfix" },
},
{
"caption": "Start Git Flow Release Branch",
"command": "gitflow_start_release",
"command": "show_command_palette",
"args": { "command": "gitflow_start_release" },
},
{
"caption": "Start Git Flow Hotfix Branch",
"command": "gitflow_start_hotfix",
"command": "show_command_palette",
"args": { "command": "gitflow_start_hotfix" },
},
{
"caption": "Start Git Flow Support Branch",
"command": "gitflow_start_support",
"command": "show_command_palette",
"args": { "command": "gitflow_start_support" },
},
{ "caption": "-", "id": "full_screen" },
{ "command": "toggle_full_screen" },
Expand All @@ -270,7 +309,7 @@
"id": "preferences",
"children":
[
{ "command": "show_command_palette", "args": {"command": "preferences"}, "caption": "偏好…" },
{ "command": "open_preferences", "caption": "偏好…" },
{ "caption": "-" },
{
"caption": "编辑设置…",
Expand Down
10 changes: 10 additions & 0 deletions Modified File.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"caption": "Stage",
"command": "stage_file", "args": { "path": "$path" },
},
{
"caption": "Discard",
"command": "discard_file", "args": { "path": "$path" },
},
]
11 changes: 9 additions & 2 deletions Remote Branch.sublime-menu
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
[
{ "command": "create_branch", "args": {"from": "$branch"} },
{ "command": "checkout_branch", "args": {"branch": "$branch"} },
{ "command": "merge_branch", "args": {"branch": "$branch"} },
{
"command": "merge_branch",
"args": { "branch": "$branch" },
},
{ "command": "rebase_branch", "args": {"branch": "$branch"} },
{ "command": "create_branch", "args": {"from": "$branch"} },
{ "command": "delete_branch", "args": {"ref": "$ref"} },
{
"caption": "Copy '$branch'",
"command": "copy_to_clipboard",
"args": {"text": "$branch"}
},
{ "command": "hide_ref", "args": { "ref": "$ref" } },
{ "command": "show_ref", "args": { "ref": "$ref" } },
{ "command": "hide_all_refs_except", "args": { "ref": "$ref" } },
{ "command": "show_all_refs", "args": { "ref": "$ref" } },
{ "caption": "-", "id": "end" }
]
9 changes: 9 additions & 0 deletions Remote Section.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"caption": "Add Remote…",
"command": "show_command_palette", "args":
{
"command": "add_remote",
}
},
]
5 changes: 5 additions & 0 deletions Side Bar.sublime-menu
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
{ "caption": "Delete File", "command": "delete_file", "args": {"files": []} },
{ "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": []} },
Expand Down
2 changes: 1 addition & 1 deletion Submodule Section.sublime-menu
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[
{
"caption": "Add Submodule",
"caption": "Add Submodule",
"command": "show_command_palette", "args":
{
"command": "add_submodule",
Expand Down
9 changes: 9 additions & 0 deletions Tag Section.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"caption": "Create Tag…",
"command": "show_command_palette", "args":
{
"command": "create_tag",
}
},
]
10 changes: 10 additions & 0 deletions Unmerged File.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"caption": "Resolve Conflict",
"command": "resolve_merge_conflict", "args": { "path": "$path" },
},
{
"caption": "Stage",
"command": "stage_file", "args": { "path": "$path" },
},
]
10 changes: 10 additions & 0 deletions Untracked File.sublime-menu
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[
{
"caption": "Stage",
"command": "stage_file", "args": { "path": "$path" },
},
{
"caption": "Delete",
"command": "delete_file", "args": { "path": "$path" },
},
]

0 comments on commit db9b2d1

Please sign in to comment.