~ihabunek/toot-discuss

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Print visibility in CLI

Details
Message ID
<20240406180609.4187557-1-sandra.snan@idiomdrottning.org>
DKIM signature
pass
Download raw message
Patch: +1 -1
I went with two spaces before and after but feel free to change that
to whatever! Having the visibility printed this way is pretty useful
for us who mostly read posts through the CLI.
---
 toot/output.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toot/output.py b/toot/output.py
index 88f65ed..b5617c9 100644
--- a/toot/output.py
+++ b/toot/output.py
@@ -219,7 +219,7 @@ def status_lines(status: Status) -> t.Generator[str, None, None]:

    reply = f"↲ In reply to {yellow(in_reply_to_id)} " if in_reply_to_id else ""
    boost = f"↻ {blue(reblogged_by_acct)} boosted " if reblogged_by else ""
    yield f"ID {yellow(status_id)} {reply} {boost}"
    yield f"ID {yellow(status_id)}  visibility: {status.visibility}  {reply} {boost}"


def html_lines(html: str, width: int) -> t.Generator[str, None, None]:
-- 
2.39.2
Details
Message ID
<64c0dea1-e1f0-489f-9a5b-d92b22ec479b@app.fastmail.com>
In-Reply-To
<20240406180609.4187557-1-sandra.snan@idiomdrottning.org> (view parent)
DKIM signature
pass
Download raw message
Thanks!

-- Ivan
Reply to thread Export thread (mbox)