codegram / rack-webconsole

Rack-based interactive console (à la Rails console) for your web application's front-end
http://codegram.github.com/rack-webconsole
248 stars 50 forks source link

Added command history to prompt via up/down on the keyboard #28

Closed cannikin closed 13 years ago

cannikin commented 13 years ago

Hey guys check it out. I added a command history via pressing up/down on the keyboard when you're in the prompt.

It only keeps the history per-page for now but it would be neat if it could remember your history across requests...maybe by saving to a cookie? That's phase 2. :)

josepjaume commented 13 years ago

Awesome! :) Thank you very much!

Maybe the best way would be to store the commands in a array inside the ruby backend and ask for autocompletion via AJAX. Or maybe a hybrid between this (ask for the history the first time, and the rest do it via javascript). This way the history would persist between requests.

I'll check it out later. Thanks again!

Josep Jaume

On Thu, Aug 4, 2011 at 1:20 AM, cannikin < reply@reply.github.com>wrote:

Hey guys check it out. I added a command history via pressing up/down on the keyboard when you're in the prompt.

It only keeps the history per-page for now but it would be neat if it could remember your history across requests...maybe by saving to a cookie? That's phase 2. :)

Reply to this email directly or view it on GitHub: https://github.com/codegram/rack-webconsole/pull/28

jeffkreeftmeijer commented 13 years ago

Awesome work, Rob! This one was on my todo list too. :)

cannikin commented 13 years ago

Sweet! I've been using this locally and have started taking it for granted. It's really handy!