Skip to content

Commit 679c00d

Browse files
preetmishraneiljp
authored andcommitted
FAQ/boxes: Wrap long footlinks with an ellipsis.
FAQ entry added to indicate why the change was made, and methods to use to reveal the full links. Co-written-by: neiljp (Neil Pilgrim) <[email protected]>
1 parent f249497 commit 679c00d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

docs/FAQ.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ If you are still facing problems, please discuss it at
4545
[#zulip-terminal](https://chat.zulip.org/#narrow/stream/206-zulip-terminal) or open an issue
4646
for it mentioning your terminal name, version, and OS.
4747

48+
## Links don't render completely as a footlink
49+
50+
Links that don't fit on one line are cropped with an ellipsis in the footlinks, since typically they are not recognized as a link across multiple lines in terminal emulators, copy/pasting can be challenging, and this also saves screen real estate. However, they will become visible with each message if you can widen your terminal window, and they're rendered completely in the Message Information view (see also [#622](https://www.github.com/zulip/zulip-terminal/issues/622)).
51+
4852
## Mouse does not support *performing some action/feature*
4953

5054
We think of Zulip Terminal as a keyboard-centric client. Consequently, while functionality via the mouse does work in places, mouse support is not currently a priority for the project (see also [#248](https://www.github.com/zulip/zulip-terminal/issues/248)).

zulipterminal/ui_tools/boxes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def footlinks_view(
476476
return None
477477

478478
footlinks[-1] = footlinks[-1][:-1] # Remove the last newline.
479-
return urwid.Padding(urwid.Text(footlinks),
479+
return urwid.Padding(urwid.Text(footlinks, wrap='ellipsis'),
480480
align='left', left=8, width=('relative', 100),
481481
min_width=10, right=2)
482482

0 commit comments

Comments
 (0)