Sublime Forum

Why "Default.sublime-keymap" is rewritten each time the editor restarts? *solved*

#1

These two files:

  • Data\Packages\User\Default.sublime-keymap
  • Data\Packages\User\Default (Windows).sublime-keymap

are rewritten each time when Sublime Text restarts.
They are always rewritten, even when the Key Bindings were not neither viewed nor changed.
Moreover, the order of the JSON properties inside of these files is regularly changed: sometimes “key” comes first, the next time “operand” comes first; sometimes “no_outside_adj” comes before “lines”, sometimes - after.
This does not make any sense: the lack of consistency of the JSON properties’ order is a bad idea. As well as re-writing unchanged files.

0 Likes

#2

Sounds like a plugin doing that.

ST itself would modify json resources incrementally to maintains all comments and order of keys . It wouldn’t resort anything, nor does it have any reason to modify those files automatically.

Not to mension me having lots of comments or commented out blocks in those user defined keymaps without having been noticing any automatic modification.

0 Likes

#3

Thank you!
Indeed, it was a package! The guilty one was “Keymap Redefiner”.

0 Likes