Sublime Forum

Sublime Merge key combinations

#1

Hi,

I’m currently looking for a way to set a key combination for the commit move down, up and squash options.Under Windows I would simply like to press “Ctrl+Down” to move a commit down and so on.
Sadly the documentation isn’t so far now, that I can easily configure it on my own. But it would be really nice, if someone could help me there.

Greetings
Arne

P.S.: I don’t want to leave my message with just a negative feeling: I’m using Sublime Text since 2011 and it’s the year I also bought my first licence. Sublime Text is awesome and I can’t wait to see Sublime Merge arrive the same level.

0 Likes

#2

This post was very helpful to me.

I wound up with this Default.sublime-keymap file:

[
    { "keys": ["super+up"]        , "command": "move_commit", "args": { "commit": "$commit", "down": false } },
    { "keys": ["super+down"]      , "command": "move_commit", "args": { "commit": "$commit", "down": true  } },
    { "keys": ["super+shift+down"], "command": "squash_commit" },
    { "keys": ["super+backspace"] , "command": "drop_commits" }
]
1 Like