aptakube icon indicating copy to clipboard operation
aptakube copied to clipboard

Option to toggle on/off wrap lines

Open goenning opened this issue 3 years ago • 3 comments

What problem are you trying to solve?

Some logs can be quite long and it's useful to toggle off wrap lines

Describe the solution you'd like

A toggle to turn on/off wrapped lines, similar to timestamp

goenning avatar Dec 16 '22 13:12 goenning

@goenning, would adding support to toggle on/off line wrapping in logs be difficult to implement? A lot of devs in my team are asking for it and some of them prefer to keep using k9s because of this 😦

mboutet avatar Jun 11 '24 21:06 mboutet

@mboutet it is difficult because I had major performance issues with extremely long lines. However I just had a look at how VSCode does it and it seems like they have a hard limit, so even if you activate wrap lines, it might still wrap the ones that are too long.

I might try this option on the next version as it should remove the performance issue + help in most cases if log lines are not too long.

goenning avatar Jun 12 '24 10:06 goenning

@goenning, thanks for getting back 😄 How long was extremely long in your tests? I just checked, and the longest line I could find was around 1800 characters wide. Quite wide indeed, but when I paste it in a text editor, it doesn't look too long visually 😛

Anyway, a hard limit sounds reasonable. Maybe this limit could be configurable in case the performance issues are dependent on the specs of the machine on which Aptakube runs on.

mboutet avatar Jun 12 '24 11:06 mboutet