Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using GEDIT and I would like to have a shortcut key that allows me to tell GEDIT (on Ubuntu) to force reloading from file system the currently opened file.

How can I do that?

share|improve this question
Actually, gedit will not automatically reload file if the file is located in network (sharing file). In my case, the file is share on MS-OS machine, accessed through smb connection. In this situation, reload or refresh button will be usefull, to tell gedit to reopen the file with single click, without the need to click file, click close and than click the name of the file in history (three times click). The drawback is, during the work, reload/refresh button can be accidentally clicked, destroying un-save work. Perhaps, additional prompt, "are you sure" can prevent that. – user115723 Jan 28 '12 at 14:45

Not forced reloading, but revert to last saved version. File/Revert. The keystroke combination is Alt-R, R, Alt-R.

share|improve this answer

This functionality is not yet present in Gedit, but it's on the Requested plugins list

share|improve this answer
any updates on this? – becko Oct 9 '14 at 23:48
Any update on this? – Tim Apr 2 '15 at 17:46

What are you trying to accomplish? If an external program touches the file, gedit will already notice that and offers to reload the file. This is the case at least with Ubuntu 10.04 LTS.

If you want to undo all the changes instead, the already mentioned File->Revert gives you the latest saved version.

share|improve this answer
I assume he's annoyed about having to aim-and-click the "Reload" button in the GUI, and would rather use a keyboard shortcut for doing that action. It currently takes 7 tabs or 2 shift-tabs and an enter to switch to the correct button - a direct shortcut would be much more comfortable. – Ilari Kajaste Jul 29 '10 at 16:46
On my machine, gedit will not automatically notice. If you switch to a different open document, and then back, only then will it pop up to reload it. – Kevin Mills Jun 22 '15 at 21:54

Try this for gedit 3.8+:, said by author:

Upon starting Gedit, this plugin will try restore all open documents from the last Gedit window that was closed.

share|improve this answer
Please read the question again carefully. Your answer does not answer the original question. He wants to force reload the current file from disk. Nothing to do with restoring open documents or restarting gedit. – DavidPostill Jul 13 at 9:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .