Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zw963 opened this issue Mar 8, 2019 · 5 comments

Comments

@zw963
Copy link

zw963 commented Mar 8, 2019

image

Thanks

@Aeyk
Copy link

Aeyk commented May 6, 2019

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
Copy link
Author

zw963 commented May 6, 2019

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

@zw963
Copy link
Author

zw963 commented May 6, 2019

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
Copy link
Author

zw963 commented May 6, 2019

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.

@zw963 zw963 changed the title [Feature Request] Add options to allow remove array number [Feature Request] Add options to Awesome.pry!/irb! to allow set global config. May 6, 2019
@guillaumebriday
Copy link

guillaumebriday commented Jul 30, 2019

Would you consider to open a PR with this changes ?

And the same with irb!.

that's could be awesome !

Thank you

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

No branches or pull requests

4 participants