Add option to disable wordWrap altogether (willing to implement)
- Dominant language
- TypeScript
- Stars
- 973
- Forks
- 81
- PR merge metrics
- No merged PRs in 30d
Description
I have links in my table that are being parsed by a parser (Slack).
Currently this makes the tables have a huge amount of space on the linked
```
╔═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╤═══════════╤══════════════╤══════════════╗
║ Setting │ Values │ Last updated │ Authored ║
╟─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼───────────┼──────────────┼──────────────╢
║ SOME_SETTING_NAME │ 50% true │ 19 months │ Jan 10, 2019 ║
╚═════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╧═══════════╧══════════════╧══════════════╝
```
currently using `width`, with or without `wordWrap` enabled give this:
```
╔══════════════════════════════════════════════════╤═══════════╤══════════════╤══════════════╗
║ Setting │ Values │ Last updated │ Authored ║
╟──────────────────────────────────────────────────┼───────────┼──────────────┼──────────────╢
║ │ │ │ ║
╚══════════════════════════════════════════════════╧═══════════╧══════════════╧══════════════╝
```
Which totally makes sense as a default.
I would link to add an option that sets the width but disables wrapping altogether.
This option could either be overloading `wordWrap` aka `wordWrap='disable'` or a new flag like `disableWordWrap`.
Are you open to adding another option for this use case?
Looking for feedback before implementing.
PS thanks for a great tool
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing how the width and wordWrap options are handled, then reproduce the long-URL table example from the issue. Done means a documented option can preserve the configured width without wrapping cell contents, with tests covering the new behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100