Sublime Forum

Keybinding is ignored

#1

Today my custom keybinding for save_all stopped working, and it defaults to the save_as.

In my workflow default action, save_as, is almost never an action I perform - much more rare than save_all.

I tried uploading the keybinding files, but some memory limit do not allow this.

Thank you for a great editor,
René

Default/Default (Linux).sublime-keymap:

{ "keys": "ctrl+q"], "command": "exit" },

{ "keys": "ctrl+shift+n"], "command": "new_window" },
{ "keys": "ctrl+shift+w"], "command": "close_window" },
{ "keys": "ctrl+o"], "command": "prompt_open_file" },
{ "keys": "ctrl+shift+t"], "command": "reopen_last_file" },
{ "keys": "alt+o"], "command": "switch_file", "args": {"extensions": "cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} },
{ "keys": "ctrl+n"], "command": "new_file" },
{ "keys": "ctrl+s"], "command": "save" },
{ "keys": "ctrl+shift+s"], "command": "save_all" },
{ "keys": "ctrl+f4"], "command": "close_file" },
{ "keys": "ctrl+w"], "command": "close" },

… more here, but removed because of memory limit …
]

User/Default (Linux).sublime-keymap:

]

0 Likes

#2

Try to add into
User/Default (Linux).sublime-keymap:

{ "keys": "ctrl+shift+s"], "command": "save_all" } ]

0 Likes

#3

It’s possible there is another command executing. In the ST console, enter “sublime.log_commands(True)” to see what is executing. I’d recommend against editing the Default key bindings, and placing them in the User package instead, as iamntz described.

0 Likes

#4

My mistake! I had a new file which wasn’t saved yet, which I misinterpreted as save_as.

Using the console debug tip helped me to this conclusion, thank you.

Thanks for help, and sorry for begin stupid,
René

0 Likes