Ask HN: Any text editors plugins/extensions to help with coding web extensions?

1 points by mbork_pl ↗ HN
Hi HN, I'm studying MDN docs regarding web extensions. It occurred to me that it could be very useful to have some helpers when coding them. An obvious thing is an extension skeleton, and it seems there are plenty of them. However, what I'm thinking about in particular is a "snippet on steroids". It would be pretty cool if I could, for example, insert a template of the code sending a message (e.g. using `browser.tabs.sendMessage`) in a background script I'm editing, and at the same time a template for the listener (using `browser.runtime.onMessage.addListener`) would be inserted in the content script. I assume other helpful things could also be possible. Does anyone know of a package/plugin/extension for any text editor having such capabilities? What other things may be useful in such context? (I may be tempted to code something simple for Emacs, but it would be nice to see some "prior art".)

0 comments

[ 2.9 ms ] story [ 9.7 ms ] thread

No comments yet.