josscrowcroft/javascript-sandbox-console — Issue #7: Add support for :history command
Author: pdeschen
Created: 2011-10-21 15:18:28+00:00
State: open

Hello,

I would be nice to have the ability to display the actual history content so that one could save the buffer into clipboard. The user case if the following: once you have type in a long series of javascript code, you might be interested in keeping a copy of these hard working bits :-)

I have currently a fix proposal for this one but I'd like to add the ability for this command to not only display the actual history but also add it directly to the clipboard (which seems harder then I first thought!) I'll send a pull request for this one shortly.

Also, what do you think about the idea of having a command registry so that users could add there own commands to the sandbox? Something along the following line:

````javascript
:register