irb icon indicating copy to clipboard operation
irb copied to clipboard

Explore the possibility to add a command to copy evaluation result

Open st0012 opened this issue 1 year ago • 0 comments

It could be very helpful to have a command to copy IRB's output without manually selecting a (potentially huge) chunk of text. For example:

copy User.all.to_a # copies and echos all users
copy User.all.to_a; # copies and doesn't echo all users
copy _ # copies the previous output value

Things to consider:

  • We cannot rely on any non-default Ruby gems
  • We may use system commands if they're widely available, at least among UNIX-based systems

st0012 avatar Nov 08 '23 20:11 st0012