Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added a result history to REPL #1120

wants to merge 2 commits into


None yet
7 participants

.$ turns the history in $ on/of (toggle)

$ is an array containing the history of results. Every time a command is executed it is unshifted onto the array.

phidelta added some commits May 28, 2011

ry commented Jun 3, 2011

@isaacs, @felixge I'll leave this issue to you to decide on. I don't really care. If it does land it should go in master.

dmmalam commented Jan 3, 2012

+1 for this

Could easily be rebased to master with a few tweaks. Anyone still want this functionality?

Can one of the admins verify this patch?

hackedy commented Apr 16, 2013

If this is going to end up in master I would recommend following the chrome devtools precedent for special variable names.

@hackedy which means what? Because the only relevant example in the chrome devtools page you linked was $_

Are you saying you would prefer $_ rather than just $ ?

I'll give it another shot and redo it for the current master.

Redid this for current master 3b60d0a

Basically you can trigger it by doing:


From then on the last 10 results will be in that array newest first.

Though I question whether this is even necessary considering we already have the last item in _

Can we just have a decision and close this thing?

If you also want the .$ command to toggle the history the go for 516719e

@indutny indutny closed this Mar 18, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment