You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like to display long web urls in a table, which is difficult to fit in any terminal width alongside other columns. I came up with a nice solution to embed the links using terminal escape characters, for example so that only the text "link" is displayed, but a user can click on it to go to the embedded URL. However ux.table still interprets the width according to how many characters are in the raw string, including all the escape sequence characters and the hidden URL href value.
Describe the solution you'd like
Implement a maxWidth option for columns.
Describe alternatives you've considered
Respect shell escape sequences in strings when calculating width.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered:
I'm going to close this since we've decided to remove the ux module in the next major version. There are much better dedicated libraries for generating tables in the CLI that I recommend you use instead.
@mdonnalley sorry, I'm new to the node ecosystem. Can you suggest some of these CLI table libraries you are talking about? I found this by following the deprecated oclif ux codebase to here which made me think tables should be supported in oclif but I haven't seen anything about it in the docs.
As you are recommending to use others, can you please suggest at least one to look at? Would this be one? https://www.npmjs.com/package/cli-table3
Ideally I wanted to keep my 3rd party dependence graph as small as possible, but maybe that's just not a thing in modern frontend :(
Is your feature request related to a problem? Please describe.
I would like to display long web urls in a table, which is difficult to fit in any terminal width alongside other columns. I came up with a nice solution to embed the links using terminal escape characters, for example so that only the text "link" is displayed, but a user can click on it to go to the embedded URL. However
ux.table
still interprets the width according to how many characters are in the raw string, including all the escape sequence characters and the hidden URL href value.Describe the solution you'd like
Implement a
maxWidth
option for columns.Describe alternatives you've considered
Respect shell escape sequences in strings when calculating width.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: