Repository navigation
feat(chat): copy, quote or ask by the way about text selected in the conversation - #1301
Merged
Merged
Conversation
…conversation - A bar over text selected in the conversation: Copy, Quote and By the Way. It shows as soon as the selection is made, over it as a document's editor has it (under it where there is no room), and is placed as it is painted: it goes with the selection as it is dragged, and with the text as it scrolls, in that frame. It only fades in and out. - Quote puts the text in the message being written as a tag; the model gets it with a note that the user quoted it from the conversation, and a long one as a file, as a long paste is. By the Way does the same in a /btw message (added once, before what is typed). - The history's right-click menu is the IDE's: Copy, Quote, By the Way, Select All. - The markdown format bar (the IDE's preview, the stash) shows while the drag is held, over the selection's middle, follows it in the same frame and fades in and out, on the bar and follower they now share. Co-Authored-By: BaoCode <noreply@baocode.dev>
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.
What
Text selected in the conversation gets a bar over it: Copy, Quote and By the Way.
/btwmessage (the command added once, before what is typed).SvgIcons.The markdown format bar (the IDE's markdown preview, the stash) shares the bar and how it follows: it shows while the drag is held, sits over the selection's middle, follows it in the same frame, and fades in and out instead of popping.
Tests
test/chat/history_selection_test.dart: the bar while dragging, Quote handing the text over, following scroll and the selection in the same frame, fading out at the next press, placement within a line and across lines, a drag begun beside a message.test/composer_test.dart: quotes go in as tags; By the Way makes the message a/btw, once.test/chat/composer_files_test.dart: the quote's appendix round-trips (inline and kept as a file).test/ide/markdown/markdown_preview_test.dart: the format bar over the selection's middle, following in the same frame, fading out where it was.🤖 Generated with BaoCode