Search code examples
sublimetext3sublimetext

How do I disable or lower the priority of a package's keybinds?


I'm using a package (in this case, MarkdownEdit) that has keybinds that are conflicting with those of my other packages.

Is there any way that I can either disable a given package's keybinds or prevent it from overriding other keybinds?


Solution

  • The easiest thing to do would be to create a Default (yourplatform).sublime-keymap file in Packages/MarkdownEditing with an empty JSON array to override the original.

    1. Create a new JSON file with the contents

      [
      
      ]
      
    2. Select Preferences → Browse Packages… (or, on macOS, Sublime Text → Preferences → Browse Packages…) to open your Packages folder:

      • Linux: ~/.config/sublime-text-3/Packages or ~/.config/sublime-text/Packages
      • OS X: ~/Library/Application Support/Sublime Text 3/Packages or ~/Library/Application Support/Sublime Text/Packages
      • Windows Regular Install: C:\Users\YourUserName\AppData\Roaming\Sublime Text 3\Packages or C:\Users\YourUserName\AppData\Roaming\Sublime Text\Packages
      • Windows Portable Install: InstallationFolder\Sublime Text 3\Data\Packages InstallationFolder\Sublime Text\Data\Packages

      The exact path depends on version and whether or not you upgraded from Sublime Text 3.

    3. In that folder, create a folder called MarkdownEditing. Save your new JSON file in that folder as Default ($YourPlatform).sublime-keymap, where $YourPlatform is one of Windows, OS X, or Linux, depending on your actual platform.

    4. Restart Sublime Text.

    Now, all of the keybindings from MarkdownEditing should be nullified, giving you the originals that shipped with Sublime (or overrides you've already made).