Hello guys, how can I reload the current file from disk use sublime plugin ?
Any hlep will welcome ,thanks!
How can I reload the current file use sublime plugin?
msmark
#1
0 Likes
NoxArt
#2
sublime.active_window().active_view().run_command("revert")
Unfortunately I forgot who told me that, so I canât credit him
0 Likes
Refresh current view
msmark
#3
[quote=âNoxArtâ]sublime.active_window().active_view().run_command("revert")
Unfortunately I forgot who told me that, so I canât credit him :/[/quote]
Thank u,it can work in sublime console but doesnât work in code.
0 Likes
NoxArt
#4
Works for me. Itâs been a part of my plugin for a decent time, I experience it almost daily. Itâs used after the plugin downloads a file to refresh the view to see the changes. Thereâs probably an issue with using it in your code ⌠or you have some particular weird scenario when it does not work :/. No error is reported?
0 Likes