Skip to content

Open any file in your favourite text editor from any web page.

License

Notifications You must be signed in to change notification settings

luigifab/webext-openfileeditor

Repository files navigation

Stop russian war. 🇺🇦 Free Ukraine!

openfileeditor

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

Extension installation

For Firefox, install the bash script:

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:

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:

  • Firefox
  • Chrome/Chromium not yet available
  • Edge not yet available
  • Opera
  • Safari not yet available

Extension upgrade

It's automatic with your browser.

But it's not the case for openfileeditor.sh and openfileeditor.json, follow again the installation for them.

Website update

You must update your web page error, read demo examples.

Compatibility:

Usage

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.