Closed kevva closed 6 years ago
Looks good. Can you fix the conflict?
Yup, what do you want to do with the truncating of the name? Currently it looks like this for Google Chrome:
I think we just limit it to the width of the terminal and just do …
after. No point in showing this many ports. Could maybe use https://github.com/sindresorhus/cli-truncate
Hmm, or not. We should truncate it on spaces, not in the middle of a port.
Hmm, or not. We should truncate it on spaces, not in the middle of a port.
Would this make sense as an option in https://github.com/sindresorhus/cli-truncate? Or maybe add space
to the position
option.
Would this make sense as an option in sindresorhus/cli-truncate?
Yes, something like {preferBreakingOnSpaces: true}
. If there are no spaces or it has to break more than half the line to do it, it should just truncate normally. Need a better name than preferBreakingOnSpaces
though.
cli-truncate
issue: https://github.com/sindresorhus/cli-truncate/issues/8
Fixes #39.