Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I made this simple extension for ex-Windows users who addicted to 'Refresh' button on the desktop and in the Explorer file manager. It is a port of 'nautilus-refresh' extension for Nautilus created by Dr. Amr Osman. It simply adds an item in Caja context menu that reloads the current opened folder. The point is that it is in the context menu, not the button on toolbar or a shortcut. Some of ex-Windows users are strange, they like to right-click on the desktop and press
Refresh
from time to time:)The extension depends on
xautomation
package. It simulates pressing F5 button by executing a commandxte 'keydown F5' 'keyup F5'
.It looks like a hack, but I have not found a better way to perform a reload. Seems that
Caja
andwindow
objects don't have a method for this action. Dr. Amr Osman's extension had been simaluting Ctrl+R key combination. If you point me to the more convenient way to make a reload, I fix it.I'd be happy if you include this extension in Caja disabled by default, so addicted people like me could easily enable it :)
Tested in MATE 1.14.1 GTK3, Ubuntu MATE 16.10 daily build.