0

I am not sure if this is the correct place to ask this or not, if it's not please let me know where would be the right place.

There is a well known issue with LiveReload for Sublime Text in which the changes are not shown unless you save twice.

I'm wondering if there is a way to edit the settings to have ST automatically save twice when you hit save.

1 Answers1

0

You can override the default keybinding to instead save twice. In order to do that you will need a way to call the "save" command more than once. This post tells how to do that. Basically, install the Chain of Command package so that you may call the custom "chain" command, which will run the commands you pass as an array of args. This will allow you to define your new keybinding in your keybindings file.

Default (OSX).sublime-keymap — User

{ "keys": ["super+s"], 
  "command": "chain",   
  "args": {
     "commands": [
       ["save"],
       ["save"]
     ]
  } 
}
Community
  • 1
  • 1
Rob Wise
  • 4,930
  • 3
  • 26
  • 31
  • Ok, I put those commands into the keybindings section and it doesn't seem to work for me. –  Oct 08 '15 at 02:00
  • @ActuallyHelpsPeople Does the example keybinding they provide on the package control page I linked work when you put that in? – Rob Wise Oct 08 '15 at 02:49
  • Nope, no joy I'm afraid. :( –  Oct 08 '15 at 03:59
  • @ActuallyHelpsPeople Hmm, that works for me so something is wrong with your Chain of Command installation. Are you sure you installed it correctly? – Rob Wise Oct 08 '15 at 04:03
  • I went into package control>Install package>chain of command. Once it was done I restarted and I don't see it anymore in the install package list, but I don't see it under Prefs either –  Oct 08 '15 at 18:49
  • @ActuallyHelpsPeople Try reinstalling it; I'm not really sure why it's not working for you. – Rob Wise Oct 09 '15 at 00:21
  • Still no dice I'm afraid :( –  Oct 09 '15 at 18:52