CoffeeTable: A Browser Console for CoffeeScript
code.alecperkins.net
code.alecperkins.net
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).
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 Until then, `log` and `dir` are shortcuts for the ordinary console commands.
1. I submit a command, and then the auto suggest pops up after suggesting a giant list of commands that obscures the page i'm on and I can't pick any of them or clear it.
2. How do I pick from the autosuggest? can't click anything.
3. Multi-line mode. How do I submit? no hints? oh, shift-enter? I should have know, i'm a stupid user.
Hope this helps refine it.
There are instructions for submitting, but only when there are no previous commands. (Shame on me.)
Sounds like there are some good things for v0.2 to take care of. I've updated the issues list with these and others: https://github.com/alecperkins/coffeetable/issues/
Thanks!
Edit: Just saw you made it a bookmarlet. Now I just have to hope that Google Chrome will also understand coffescript on its console.
Is there anyway to make this work in the web inspector?
Requires more than just a bookmarklet or script tag, but looks really promising.