How can I make a keyboard shortcut for Navigate > File History... in Sublime Merge?
Sublime Merge - keyboard shortcut for "File History"
1.3k views Asked by CrazyTim At
1
How can I make a keyboard shortcut for Navigate > File History... in Sublime Merge?
The command for this is
file_history; it will prompt you interactively in the command palette and commands of that nature need to be invoked via theshow_command_palettecommand.So, a key binding that duplicates what the menu item
Navigate > File History...does would look like the following (using an example key; change that as desired):This binding goes into the
Default (<PLATFORM>).sublime-keymapfile in your MergeUserpackage, where<PLATFORM>is one ofLinux,WindowsorOSXdepending on what platform you're using.You can locate the
Userpackage by choosing thePreferences > Browse Packagescommand from the menu and then navigating inside of theUserpackage.Note that just like Sublime, the
sublime-keymapfile is a JSON file that is a list of key bindings; thus if you don't already have key bindings, you need to wrap the key binding above in[and]characters to make it the first item in the list.