Sublime Forum

Keybinding for merge branch

#1

Hi, I cannot find the proper key binding to merge a branch.

The only working one is:
[
{ “keys”: [“ctrl+shift+m”], “command”: “merge_branch” }
]

But with that, you don’t see the typical pop-up to choose the original branch to merge from

0 Likes

#2

image

0 Likes

#3

thanks for the no answer. I found:

[
{ “keys”: [“ctrl+shift+m”], “command”: “merge_branch”,“args”: {“branch”: “BRANCHNAME”}}
]

1 Like

#4

I’m working with this issue to get branch name our of selected commit context, but fail it partially.

But what i’ve found that there’s a working context var $commit which sets commit hash into merge command correctly.

Would be cool if someone provide any others var here.

0 Likes

#5

In the end i’ve got this:

    {
        "keys": ["super+."],
        "command" : "show_command_palette",
        "args": {"command": "merge_branch"}
    }
0 Likes