Comment 6 for bug 1193469

Revision history for this message
Daniele "OpenNingia" Simonetti (oppifjellet) wrote :

a tentative implementation is here:
https://github.com/OpenNingia/notepadqq/tree/plugins/

this is an hello world plugin:

({
 name: "HelloWorld",
 init: function()
 {
  nqq.debug("init called");
  nqq.addMenuItem("HelloWorld", this.hello_world);
 },

 hello_world: function() {
  editor = nqq.create()
        text = nqq.prompt("Text", "EnterText", "Hello world!");
  editor.append(text);
 }
});

save this as helloworld.qs

and place it under ~/.config/notepadqq/scripts/