tailscale-dev / tclip

A pastebin for Tailscale users
BSD 3-Clause "New" or "Revised" License
151 stars 16 forks source link

Suggestion: word wrapping #42

Closed mikaelf closed 2 months ago

mikaelf commented 1 year ago

It would be very useful with word wrapping, especially when reading pastes on a mobile device.

Perhaps word wrap could be enabled by default on narrow viewports and possible to control with a toggle.

lucasew commented 1 year ago

I just tested in my instance

If you create your note as a .md file it does word wrapping automatically

lucasew commented 1 year ago

Another tip

If you add /raw at the end of the URL, it will load the content as text directly and that will also word wrap.

mikaelf commented 1 year ago

Thanks!

On Sat Sep 30, 2023, 07:25 PM GMT, Lucas Eduardo @.***> wrote:

Another tip If you add /raw at the end of the URL, it will load the content as text directly and that will also word wrap. — Reply to this email directly, view it on GitHub https://github.com/tailscale-dev/tclip/issues/42#issuecomment-1741842199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKHCHQETAD7LWJMKS5YB3X5BW27ANCNFSM6AAAAAA5J6442U. You are receiving this because you authored the thread.Message ID: @.***>

Erisa commented 2 months ago

Hi @mikaelf! Sorry for the radio silence on this issue. As of https://github.com/tailscale-dev/tclip/commit/f843ec5cd691712fe0930e0a05c7979e1b440c53 you can enable a new setting ENABLE_WORD_WRAP to enable word wrap. All options are listed here: https://github.com/tailscale-dev/tclip?tab=readme-ov-file#configuration

mikaelf commented 2 months ago

Thank you @Erisa! Haven't used tclip in quite a while due to this issue + the tailscale version being a bit behind, but as both of these issues have been fixed I'll give it another try.