5 ms·
Author of the CoffeeScript book here. This is really, really cool! I especially like that there's annotated source (http://code.alecperkins.net/coffeetable/docs
by TrevorBurnham 15y ago
Author of the CoffeeScript book here. This is really, really cool! I especially like that there's annotated source (http://code.alecperkins.net/coffeetable/docs/coffeetable.html http://code.alecperkins.net/coffeetable/docs/coffeetable.htm...).
A couple of things:
1. I can't seem to add linebreaks in multiline mode; both `Return` and `Shift+Return` submits the command. Looking at the source, I think the problem is that `settings.multi_line` isn't modified when you click the checkbox; only `settings.showing_multi_line` is.
2. It'd be great to have detailed object output instead of just "[object Object]". A simple way to do this would be to run everything through JSON.stringify; or you could go prettier with nested indentation levels and such (there are several existing libs for this).
- alecperkins 15y agoThanks for the feedback. First time really using Docco, and now I feel crazy for not using it before. 1. Good catch! I recently did a complete refactor as part of the docco-ification. Thought I caught everything but apparently not. I'll fix that ASAP. 2. Totally agree, and it's already on the todo list: https://github.com/alecperkins/coffeetable/issues/4 https://github.com/alecperkins/coffeetable/issues/4 Until then, `log` and `dir` are shortcuts for the ordinary console commands.
- autotelicum 15y agoA temporary workaround for newlines is to copy/paste them in the box. Adding the bookmarklet and then going to http://arcturo.github.com/library/coffeescript/ http://arcturo.github.com/library/coffeescript/ gives a good way of experimenting with CoffeeScript.
- alecperkins 15y agoMulti-line mode should be fixed. Now the whole intercepting tab thing is actually useful.