Stop russian war. 🇺🇦 Free Ukraine!
Tired of copying and pasting the file path when an error occurs?
With this browser extension, clic on a link to open the file in your favourite text editor.
WARNING: THIS EXTENSION IS INTENDED FOR WEB DEVELOPERS ONLY
For Firefox, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: ~/.mozilla/native-messaging-hosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Mozilla/NativeMessagingHosts/ (docs)
For Chrome, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: ~/.config/google-chrome/NativeMessagingHosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/ (docs)
For Chromium, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: ~/.config/chromium/NativeMessagingHosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Chromium/NativeMessagingHosts/ (docs)
For Opera, install the bash script:
- Download openfileeditor.sh and openfileeditor.json
- for Linux put them into: /etc/opt/chrome/native-messaging-hosts/ (docs)
- for macOS put them into: ~/Library/Application Support/Google/Chrome/NativeMessagingHosts/ (docs)
Secondly:
- Update the path of openfileeditor.sh in openfileeditor.json (it must exists)
- Be sure that openfileeditor.sh is executable (
chmod +x openfileeditor.sh
) - By default, the script will try to run geany, and if it's not available, it will run xdg-open, so feel free to update it with your favourite text editor
Thirdly, install the extension:
It's automatic with your browser.
But it's not the case for openfileeditor.sh and openfileeditor.json, follow again the installation for them.
You must update your web page error, read demo examples.
Compatibility:
- OpenMage: with PR 3679
- opemange/maillog 5.9.0+
- opemange/cronlog 4.6.0+
- opemange/modules 4.6.0+
- opemange/versioning 4.6.0+
- BlackFire.io: not yet
- Sentry.io: not yet
- GitHub: not yet
- GitLab: not yet
Open your favourite text editor, when an error occur in your website, click on the link to open the file.
Try the demo.
There are logs in your browser console (OpenFileEditor: ...
) and in your tmp directory (/tmp/openfileeditor.txt
).
Don't be stupid! You must have the file on your computer.
If you like, take some of your time to improve some translations, go to https://bit.ly/2HyCCEc.