1
Vote

"Just My Code" + Search in REPL history

description

when youre building up an algorithm, you experiment in the repl and will generally end up with lots of mixed code & output. at some point, i want to see 'just my code', so i can extract the 'good' parts & paste them into the editor window. would be nice to have this option.

related to this, i would really like to have a history search command. in an ideal world, something resembling a bash history feature (where relevant of course). but at the very least, something along these lines:

!Counter -- shows all lines that start with "Counter"
!?Counter -- lines containing "Counter"
!! -- repeat last command
PS1='\d@\t\n\u@\h:!:#:\w$ ' -- enable setting prompt to useful values

etc.

comments