cordless icon indicating copy to clipboard operation
cordless copied to clipboard

Display strikethrough text properly

Open avahe-kellenberger opened this issue 5 years ago • 5 comments

What do you want

I'd like discord markup strikethrough text (e.g. ~~strikethrough~~) to be displayed as ~~strikethrough~~

Why

Would be a nice QOL feature

Implementation hints

Many terminals support escape sequences for strikethrough

echo -e "\e[9mstrikethrough\e[0m"

I think it would be very easy to write this as a plugin, but should probably be in the client by default

avahe-kellenberger avatar Feb 23 '20 18:02 avahe-kellenberger

This should deffo not be a plugin

Bios-Marcel avatar Feb 23 '20 19:02 Bios-Marcel

Relevant: https://github.com/gdamore/tcell/issues/256 https://github.com/gdamore/tcell/issues/245 https://github.com/gdamore/tcell/issues/171

Bios-Marcel avatar Feb 23 '20 19:02 Bios-Marcel

Should we attempt fixing upstream or try to find a cordless-centric fix?

avahe-kellenberger avatar Feb 24 '20 18:02 avahe-kellenberger

upstream

Bios-Marcel avatar Feb 24 '20 19:02 Bios-Marcel

There's support for this in tcell now. BUt it's gonna land in the next major release. We'll see what it brings.

Bios-Marcel avatar Sep 13 '20 19:09 Bios-Marcel