-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Use Markdown in AI chat messages #12234
Copy link
Copy link
Labels
component: aicomponent: uigood second issueIssues that involve a tour of two or three interweaved components in JabRefIssues that involve a tour of two or three interweaved components in JabRef📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)Assigned by assign-issue-action (or manually assigned)
Metadata
Metadata
Assignees
Labels
component: aicomponent: uigood second issueIssues that involve a tour of two or three interweaved components in JabRefIssues that involve a tour of two or three interweaved components in JabRef📌 Pinned📍 AssignedAssigned by assign-issue-action (or manually assigned)Assigned by assign-issue-action (or manually assigned)
Type
Fields
Give feedbackNo fields configured for feature.
Projects
StatusShow more project fields
Done
Is your suggestion for improvement related to a problem? Please describe.
Currently, chat messages are formatted in a
TextArea. This allows text to be selected, but the formatting is ugly. Markdown is a de-facto standard for chat LLMs.Describe the solution you'd like
Use Markdown in AI chat messages with the ability to select and copy text.
Additional context
There is a long-standing problem with JavaFX: you cannot select
TextorLabel. Only text inTextFieldorTextAreacan be selected. However, text inWebViewcan be selected, and it is already used in JabRef in entry preview!Thus, you have 2 options:
TextorLabels and add a buttonCopyin the sidebar of a chat message (place where "Delete" button).WebView.Option 1 is, I think, easier to implement.
But Option 2 is tricky: at first glance it would solve the problem, but the question is -- performance overhead?
WebViewis like a tiny browser. Thus, a better option is to format the whole chat UI (only messages, not prompt) in aWebView.Though the best way is to find a way to make
TextorLabelbe selectable and copyable.