cli-table2 icon indicating copy to clipboard operation
cli-table2 copied to clipboard

string wrap

Open celevra opened this issue 9 years ago • 13 comments

hi,

is there the possability to also wrap long strings (without spaces)?

regards

celevra

celevra avatar Mar 02 '16 17:03 celevra

Can you give an example of what it does now, vs what you want it to do?

jamestalmage avatar Mar 04 '16 03:03 jamestalmage

now it does

├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤
│ ns                 │ SSHFP    │ 3600     │ 2 2                                                        │ false    │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b1… │          │                                                  │
├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤

and i want it like that

├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤
│ ns                 │ SSHFP    │ 3600     │ 2 2                                                        │ false    │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b   │          │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b   │          │                                                  │
│                    │          │          │ b07ec6d71eb48690e9961a225d3c7e319f2582634ad055687e94271b   │          │                                                  │
├────────────────────┼──────────┼──────────┼────────────────────────────────────────────────────────────┼──────────┼──────────────────────────────────────────────────┤

celevra avatar Mar 08 '16 14:03 celevra

How do you propose users enable that behavior vs. the current default?

I'm thinking some sort of option flag, but not sure what to call it.

jamestalmage avatar Mar 09 '16 22:03 jamestalmage

Like CSS break-word?

Von: James Talmage [email protected] Gesendet: 09.03.2016 11:24 nachm. An: jamestalmage/cli-table2 Cc: Philipp Zeitschel Betreff: Re: [cli-table2] string wrap (#18)

How do you propose users enable that behavior vs. the current default?

I'm thinking some sort of option flag, but not sure what to call it.

— Reply to this email directly or view it on GitHub.

celevra avatar Mar 09 '16 22:03 celevra

sure, but decamelized: breakWord

jamestalmage avatar Mar 09 '16 22:03 jamestalmage

@celevra Want to make a PR

jamestalmage avatar Mar 09 '16 22:03 jamestalmage

i will do it, but i'm the whole next week on CeBit, after that i will look into it

celevra avatar Mar 11 '16 11:03 celevra

I request you to please fix the text wrapping issue..!

msahil-juniper avatar Mar 31 '16 04:03 msahil-juniper

PR Welcome!

jamestalmage avatar Mar 31 '16 07:03 jamestalmage

Did this ever happen? I need this very thing myself. I am using latest build, but I dont see how to configure this.

mikeerickson avatar Dec 14 '16 17:12 mikeerickson

https://www.github.com/tecfu/tty-table provides text wrapping by default.

tecfu avatar Jul 27 '17 16:07 tecfu

Hi, What is the status of this feature?

GiladShoham avatar Sep 06 '17 09:09 GiladShoham

Still need this in 2018. The readme says: "Automatic word wrapping." but now I don't know what that means if it doesn't mean this feature.

Ok I read the basic-usage.md file mentioned in the readme file. Looks like you need to manually add \n newlines to your text to get it to wrap to the next row.

ORESoftware avatar Sep 05 '18 23:09 ORESoftware