gurk-rs icon indicating copy to clipboard operation
gurk-rs copied to clipboard

Display message body without indent (on narrow terminals)

Open langfingaz opened this issue 3 years ago • 2 comments

Hi there and many thanks for developing gurk!

I think that the terminal screen space is not yet ideally used by gurk. Even with a moderate terminal width (e.g. 52 characters), messages may be displayed very narrow over multiple lines:

20220310_gurk

I have two ideas to improve this:

  1. Add a shortcut to hide the sidebar (chats and groups) resulting in a full-terminal view of the current chat.
  2. If the terminal widht is smaller than a certain threshold (or always?) display the message body without (or with smaller but fixed) indent.

(2.) would mean that instead of

<DATE> <USERNAME-OR-PHONE>: Hallo
                            zusam
                            men,
                            wir
                            ...

it would be displayed as

<DATE> <USERNAME-OR-PHONE>:
  Hallo zusammen, wir wollen für
  eine Winterfreizeit nach
  Österreich fahren ...

Rationale: On a desktop/laptop computer one usually has a wide enough screen, but the above would help make gurk more mobile friendly. On my PinePhone the terminal width is 44 characters. And a more mobile friendly interface would make gurk perfect for slow mobile devices ;)

What do you think about this?

langfingaz avatar Mar 10 '22 12:03 langfingaz

Thank you for your detailed proposal. I will look into it. I think (2) is very useful for using the space better. I think we can even do better with (1) and allow to resize it, eventually collapsing it completely.

boxdot avatar Mar 11 '22 21:03 boxdot

You're welcome. Thanks for having a look!

langfingaz avatar Mar 12 '22 12:03 langfingaz