2

Sublime: “Open Git Repository” Hotkey

 2 years ago
source link: https://www.shellhacks.com/sublime-open-git-repository-hotkey/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Sublime: “Open Git Repository” Hotkey

To open a Sublime Merge from a Sublime Text it is required to open a context menu with the right-click and select the “Open Git Repository”.

By default, there is no a keyboard shortcut to open the Sublime Merge quickly, that is not very handy.

This short note shows how to create a key binding that permits to “Open Git Repository” in the Sublime Merge using a hotkey.

Cool Tip: How to add a newline at the EOF on save in Sublime Text! Read more →

“Open Git Repository” in Sublime Merge using Hotkey

In the Sublime Text, go to the PreferencesKey Bindings and in the right panel specify a keyboard shortcut for the sublime_merge_open_repo command, for example:

[
    // Open Git Repository in Sublime Merge
    { "keys": ["ctrl+alt+z"], "command": "sublime_merge_open_repo"}
]

Save with Ctrl + S and close the window with the key binding settings.

Now you can simply press the Ctrl + Alt + Z in the Sublime Text to open the current project in the Sublime Merge.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK