Sublime Forum

Override existing key binding?

#1

Hi,

I am desperate to find the following answer… Although the question seems very easy, it does not succeed for me to find the solution. I am trying to override the key binding from ‘Delete Line’ to ‘ctrl+e’… I copied the line in the ‘Default (Windows)… User’ and set the key combination to my preferred key combination, but it fails to work because the key combination is already binded in the Default keymap (the ‘Delete Line command’ works when I use an not chosen key combination). How can I still use my favorite key combination for ‘Delete Line’?

My ‘Default (Windows).sublime-keymap — User’
[
{ “keys”: [“ctrl+e”], “command”: “run_macro_file”, “args”: {“file”: “res://Packages/Delete Line.sublime-macro”} }
]

0 Likes

#2

You’re missing Default/ in the path to the macro file.

3 Likes

#3

Ah thanks… I put the ‘Default/’ to the path, but unfortunately it still does not work :frowning:

{ "keys": ["ctrl+e"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }
0 Likes