Add service for inotify support (or simulated for non-supporting platforms)
Categories
(Firefox :: File Handling, enhancement)
Tracking
()
People
(Reporter: docwhat, Unassigned)
References
Details
Attachments
(1 file)
|
5.92 KB,
text/plain
|
Details |
| Reporter | ||
Comment 1•18 years ago
|
||
Comment 2•18 years ago
|
||
Updated•18 years ago
|
Comment 4•18 years ago
|
||
Comment 5•17 years ago
|
||
Comment 6•15 years ago
|
||
Updated•3 years ago
|
Comment 7•1 year ago
|
||
This would be really nice to have if it were properly built into the web-development platform. Would love to see it!
I have got something that works decently under Linux, and it's a good self-contained way to easily experience the feature:
https://www.neillconsulting.co.uk/images/misc/refresher.txt
- Be on Linux, and have xdotool and inotifywait installed.
- Go into the project root directory, and invoke this script (rename to .sh and make executable)
- Click the firefox window to identify it.
- Now, every time you Ctrl-S in your text editor, firefox will automatically reload the page!
It works by using inotifywait to watch the directory, then triggers xdotool to give focus to Firefox, send a Ctrl-R (or Ctrl-shift-R),
then focus the mouse back.
This also works well for PHP scripts.
It isn't perfect - because the Ctrl-R goes to the Firefox Window (it is not bound to the tab you were developing in, if that tab is not currently active).
It can also potentially have a race-condition if you move the mouse between windows in the 25ms or so it takes for xdotool to do its work.
Comment 8•1 year ago
|
||
This is a demo, using a shell script (rename from .txt to .sh), and xdotool + inotifywait
(It's the same file I referenced in comment #7, but now uploading it to ensure long-term consistency).
Description
•