gcollazo / BrowserRefresh-Sublime

This plugin will switch from ST2 and ST3 to Google Chrome, Google Chrome Canary, Safari, Firefox or Opera and reload the active tab
http://gcollazo.github.com/BrowserRefresh-Sublime
565 stars 62 forks source link

Save File Pre-Delay #31

Closed SchuylerTowne closed 9 years ago

SchuylerTowne commented 11 years ago

I'm using the browser-refresh plugin in concert with the Sublime SFTP plugin.

Ideally anytime I use the browser refresh key binding my file would save, which triggers SFTP to upload it, then the delay I have set in my preferences would be carried out, to give the upload time to finish, then the browser refreshes.

Presently the save appears to take place after the delay and my browser often beats the upload so I have to either re-reload or save, then refresh.

Obviously saving manually before refreshing isn't a huge deal, and I love the plugin. Thanks for any consideration!

gcollazo commented 10 years ago

I think that's a great idea.

LikeTazman commented 9 years ago

Just add a greater 'delay' at keymap-user. For example, at default keymap it was set as "0.5" and I was having the same problem (no refresh), although it was refreshing after pressing ctrl+shift+r twice (save+save...). Then I increase the delay at user side to "1.0" and is refreshing perfectly.