awesome-print/awesome_print

config or params for truncate very long string.

ranska opened this issue · 1 comments

In some big hash. For example api payload.
There are sometimes text and many other keys and value.
Mainly when we use ap the wall object is print but when there is big text. It takes sometime many screens and needs to scroll a lot just to see if a simple attribute is well set.
It can be good if we can truncate those text by passing a truncate param to ap.
like

ap my_object, truncate: 4
# or
ap my_object, string_trucate: 4

# and it will print on screen only the first 4th char of a string

thank for this awesome gem and all your work

Ps: how can I set label feature request?