--
You received this message because you are subscribed to the Google Groups "Mozilla Skywriter" group.
To post to this group, send email to skyw...@googlegroups.com.
To unsubscribe from this group, send email to skywriter+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/skywriter?hl=en.
Cool. This is also something I am missing.
As David said, the current skywriter has changed a lot. Today it is
basically the ACE editor plus Bespin's plugin system and keyboard
handling.
> The obvious solution to me would be Skywriter. I guess these are the
> requirements:
> - Skywriter needs to work inside a XUL panel
This is reported to work. I have just pushed a fix for the last remaining issue.
> - We need to be able to save the contents by clicking on either an
> internal or external save button
This is trivial.
> - The styles etc. need to be customizeable to fit the Firebug theme
You can define your own themes using CSS or import any TextMate theme
> - We need to be able to map <ctrl><enter> to the Firebug run button
No problem either.
> - We need to be able to get the contents of the Skywriter window when
> the run button is clicked and pass it to our internal methods to be
> evaluated
This is the same as the save button.
> I am no stranger to working with extensions but I see that Skywriter
> uses JQuery etc. Obviously this also needs to run offline. Is there
> some kind of Skywriter package designed for use by extension
> developers?
There are no external dependencies anymore. The new Skywriter/ACE is
completely self contained. Kevin's team has made great progress in
packaging ACE. I'm sure they can point you to the right sources.
> I guess in a nutshell I am asking you guys if you have any tips?
This sounds like a very good match. All the features you request are
already there. Just let is know if you need any further help.
Best,
Fabian
> Well, we had it working fairly well but then I grabbed the latest
> version :o/
doh
> I have it ostly working again apart from 2 issues:
> 1. Toggling the gutter no longer collapses the lines to the left ...
> resizing the window fixes them but strangely calling window.resize()
> doesn't.
> 2. We were using the following to add the <ctrl><enter> shortcut to
> run the code:
> Firebug.Ace.rightWindow.addCommand({
> name:'execute',
> key:'Ctrl-Enter',
> exec: function() {
> Firebug.CommandLine.enter(Firebug.currentContext);
> }
> });
This is now two fold:
1. define the command e.g.
var canon = require("pilot/canon");
canon.addCommand({
name: "selectall",
exec: function(env, args, request) {
env.editor.getSelection().selectAll(); }
});
2. add the keybinding. This is currently more complicated than
necessary. You have to extend an existing key binding and configure
the editor with it:
var HashHandler = require("ace/keyboard/hash_handler").HashHandler;
var ue = require("pilot/useragent");
if (ue.isMac)
var bindings = require("ace/keyboard/keybinding/default_mac").bindings;
else
var bindings = require("ace/keyboard/keybinding/default_mac").bindings;
bindings["execute"] = "Ctrl-Enter";
editor.setKeyboardHandler(new HashHandler(bindings));
> --
> You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
> To post to this group, send email to ace-d...@googlegroups.com.
> To unsubscribe from this group, send email to ace-discuss...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ace-discuss?hl=en.
>
>
Forgot to answer this one :)
This looks like a regression to me. Can you open an issue at
https://github.com/ajaxorg/ace/issues for this?
Best,
Fabian