Repository navigation
feat(chat): quote a room message with :quote - #126
Merged
Merged
Conversation
: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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replies in the room have no way to show which message they answer.
:quotefills the input line with> author: textand a line that mentions the author, then enters INSERT mode. With no argument it quotes the newest message from someone else.:quote 3counts further back, and:quote alicepicks 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 intnt-chat(7)and covered bytests/test_quote_reply.sh.