awesome-print/awesome_print

[Feature Request] Add options to Awesome.pry!/irb! to allow set global config.

zw963 opened this issue · 5 comments

zw963 commented

image

Thanks

Aeyk commented

This is done with the index: false argument like so:

irb(main):023:0> ap [1,2,3,4], index: false
  [
      1,
      2,
      3,
      4
  ]
  => nil
zw963 commented

@Aeyk , Cool, i thought i read all document before create this issue, but, nowhere told me this usage?

zw963 commented

Is there an global config for this?

in most case, i am not use ap directly, it just combind with pry, auto print returned _ value.

zw963 commented

I do a quick hack for support config when setting Awesome.pry!(index: false)

image

If maintainer consider add this feature, i will add to Awesome.irb! too.

Thanks.

Would you consider to open a PR with this changes ?

And the same with irb!.

that's could be awesome !

Thank you