Skip to content

feat(chat): quote a room message with :quote - #126

Merged
m1ngsama merged 1 commit into
mainfrom
feat/quote-reply
Nov 17, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/quote-reply

Conversation

@m1ngsama

Copy link
Copy Markdown
Owner

Replies in the room have no way to show which message they answer.

:quote fills the input line with > author: text and a line that mentions the author, then enters INSERT mode. With no argument it quotes the newest message from someone else. :quote 3 counts further back, and :quote alice picks Alice's newest message. Long lines are cut to 60 columns, and quoting a reply quotes its own text, not the quote it carries.

A line starting with > renders dimmed with its marker kept, so the log format and exec clients are unchanged. Documented in tnt-chat(7) and covered by tests/test_quote_reply.sh.

:quote fills the input line with a "> author: text" line and a mention
of the author, then enters INSERT mode. With no argument it picks the
newest message someone else sent; a number counts further back and a
name picks that author's newest message.

A line that starts with "> " is drawn dimmed, so quotes stand apart
from the reply without changing the log format.
@m1ngsama
m1ngsama merged commit c51cf31 into main Nov 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant