Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Refresh Folder example #25

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

meequz
Copy link

@meequz meequz commented Aug 3, 2016

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 command xte 'keydown F5' 'keyup F5'.
It looks like a hack, but I have not found a better way to perform a reload. Seems that Caja and window 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant