Home Download Buy Blog Forum Support

Reloading/Refresh file from disk?

Reloading/Refresh file from disk?

Postby facelessuser on Sun Oct 30, 2011 5:48 pm

Is there an undocumented command to reload or refresh a file from disk?
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm

Re: Reloading/Refresh file from disk?

Postby tito on Mon Oct 31, 2011 1:00 pm

¿revert?
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 855
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Reloading/Refresh file from disk?

Postby facelessuser on Mon Oct 31, 2011 2:46 pm

Hmm. It seems revert works when launched via ctrl+shift+p. Haven't been able to get it to work in the code yet, need to figure out the context. Thanks tito! I believe this is exactly what I was looking for.
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm

Re: Reloading/Refresh file from disk?

Postby facelessuser on Mon Oct 31, 2011 4:03 pm

Got it. Apparently the "refresh" command cannot be run from a Text command due to the fact you have an open edit object. You can run it from a window command though.
facelessuser
 
Posts: 1575
Joined: Tue Apr 05, 2011 7:38 pm


Return to Plugin Development

Who is online

Users browsing this forum: jchannon and 5 guests