Firefox Add-on
dsandstrom opened this issue ยท 13 comments
Is this possible?
A co-worker let me know about GhostText for Sublime:
https://github.com/Cacodaimon/GhostText-for-SublimeText
https://addons.mozilla.org/en-US/firefox/addon/ghosttext-for-firefox/
So it seems like it's possible. Is support planned?
It is of course possible.
As long as we can start a WebSocket server in the editor, the same implementation should be possible.
I have not decided of any plan to support other editors yet, but I am all for it, so help is very welcome.
The Atom plugin can be found here, I think it should not be too complicated to port it to Python and Sublime API.
Thanks for the reply. I was talking about a Firefox port, not a sublime
port.
On Wed, Feb 3, 2016, 5:38 PM Daniel Perez notifications@github.com wrote:
It is of course possible.
As long as we can start a WebSocket server in the editor, the same
implementation should be possible.
I have not decided of any plan to support other editors yet, but I am all
for it, so help is very welcome.The Atom plugin can be found here
https://github.com/tuvistavie/atomic-chrome-atom, I think it should not
be too complicated to port it to Python and Sublime API.โ
Reply to this email directly or view it on GitHub
#5 (comment)
.
Oh, sorry!
I do not have any plan for a Firefox port right now, but almost all the logic could go to be shared as a library, and we could keep only the browser specific implementation in the main plugin package. This should avoid code duplication.
However, my priority right now being to improve the Chrome plugin, help is very welcome for this too.
I'm currently writing this comment with Firefox Nightly and atomic-chrome so it's basically already working. The only thing I did was add
"applications": { "gecko": { "id": "test@gmail.com" } }
to the manifest and removed the 'activeTab' permission since it seemed to cause the extension not to load (and I believe is also redundant with the 'tabs' permission ).
Edit: Also works in the current Firefox Developer Edition (v47).
That's great news, thank you for the info. I did not know Firefox support was progressing so quickly.
I am going to try to package it and distribute it from the release page until normal firefox also supports it.
This is great! How can I test this? sounds like it could maybe be a closed issue, and I would be happy to add to the readme and maybe push to the firefox extensions list if I can test it out and confirm it works.
I did not have a change to try it out yet.
@wiiittttt Would you have more information about how to have it to work with Firefox?
In Firefox 50, the only thing I had to do was go to about:debugging
, click "Enable add-on debugging" and then "Load Temporary Add-on". Choose the manifest file.
It appears the applications
key in the manifest is no longer needed. See https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/applications.
I just used the Chrome Store Foxified Firefox add-on to install the Atomic Chrome Extension directly from the Chrome Store into Firefox.
Now, I'm using it to type this comment. So it seems to be working just fine as is, if you want to make an official port of it.
btw: I'm using Firefox 51.0.1 (64bit) for Linux Mint.
I confirm that this extension works as-is with Firefox 57. I installed it
with Chrome Store Foxified as well, and I am typing this post in Emacs,
using the extension in Firefox 57. I think the extension could be published
to Firefox as it is.
"Chrome Store Foxified" worked for me. This should be added to the README for people looking to add it to Firefox.
Good to hear!
If you would like to add a note in the README and send a PR it would be very nice, thanks!