The command associated with this command is navigate_to_parent
(which I got by looking in Main.sublime-menu
in the Packages/Default.sublime-package
in the installation folder of Merge).
You can bind it to a key by creating (or adding to) a Default (<PLATFORM>).sublime-keymap
file in your User
package, where <PLATFORM>
is one of Linux
, Windows
, or OSX
).
An example of that would be the following, assuming you don’t already have any custom key bindings (if you do, just add the binding to the file instead):
[
{ "keys": ["ctrl+shift+left"], "command": "navigate_to_parent" },
]
You can add this to the context menus by creating a file named Commit.sublime-menu
with the following content. This will make the command available in the commit
context menu, which is visible when you right click on a commit in the graph or use the “three dots” menu in the commit information in the top-right of the window.
[
{ "caption": "-", "id": "end" },
{
"caption": "Navigate to Parent",
"command": "navigate_to_parent"
}
]
To add it to the command palette, you would create a sublime-commands
file; for example you could create a Default.sublime-commands
file with the following content:
[
{
"caption": "Navigate to Parent",
"command": "navigate_to_parent"
}
]
In all cases, the files should go in your User
package, which is available by using Preferences > Browse Packages
.