Sublime Forum

Own mouse double click definitions over commits tree

#1

I already did a lot with
/Application Support/Sublime Merge/Packages/User/Default (OSX).sublime-keymap
for example:

[
    { "keys": ["ctrl+super+up"], "command": "move_commit", "args": { "commit": "$commit", "down": false },
    },
    { "keys": ["ctrl+super+down"], "command": "move_commit", "args": { "commit": "$commit", "down": true },
    },
    { "keys": ["ctrl+shift+super+enter"],  "command": "edit_commit_contents",  "args": { "commit": "$commit" },
    },
    { "keys": ["ctrl+shift+super+s"], "command": "hide_all_refs_except" },
    { "keys": ["ctrl+super+enter"], "command": "edit_commit" },
]

And this works well.

Now I want to add some mouse mappings, in:
/Application Support/Sublime Merge/Packages/User/Default (OSX).sublime-mousemap

[
    { "button": "button1", "count": 1, "modifiers": ["alt"],
        "command": "checkout_branch", "args": {"branch": "$commit"} },
]

This one works after SM reload, and I created “alt+click” to have a proof of concept, because it works only inside text fields (commit messages or commit code) and there’s double-click has another usage (select words).

But I want to be able to “check out commit” when I alt-click commit itself (but actually I am aimed for double-click) in the list of commits, in those column vertical tree items…

I tried to reverse engineer all packs for hints, but didn’t succeed, need community or great Author @wbond help.

0 Likes

#3

Hi @nugged,

I don’t believe this is currently possible, though I encourage you to submit a feature request!
You can do this at https://github.com/sublimehq/sublime_merge/issues/new/choose

Kind regards,
- Dylan

0 Likes