Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response text should be easily selectable #22

Open
psugihara opened this issue Oct 17, 2023 · 5 comments
Open

Response text should be easily selectable #22

psugihara opened this issue Oct 17, 2023 · 5 comments

Comments

@psugihara
Copy link
Owner

psugihara commented Oct 17, 2023

Currently you can only select text 1 paragraph at a time due to the markdown package we use. This is incredibly annoying! There's an issue tracking that here but no line of sight to a solution gonzalezreal/swift-markdown-ui#264

An alternative to get this functionality could be to use libcmark_gfm directly like FSNotes does here then put the resulting HTML in a web view. https://github.com/glushchenko/fsnotes/blob/2d15de3f8148eba312fd3552e86725f264f1497b/FSNotes/Business/Markdown.swift#L13

Maybe there's an even better solution, idk

@cleesmith
Copy link

I know Markdown is a very common thing with it's simple formatting, and looks nice on a screen. But as a writer or just doing research, it would be great to just have plain text; no formatting and no bulleted/numbered lists ... it becomes a tedious editing step after doing a copy/paste into Sublime, Textedit, or Google Docs. Maybe a user selectable on/off option for Markdown would be great.

@psugihara
Copy link
Owner Author

Good suggestion @cleesmith, thanks. Let's definitely implement that! A checkbox in Settings would be a good way to handle it.

@psugihara
Copy link
Owner Author

just have plain text

hey @cleesmith... small clarification. Is your request to see the output as plaintext (e.g. unrendered markdown)? That's what I originally thought you were asking for, but note that it would still include numbered lists, etc. To get it to have a different format you'd need to ask the model (either through the system prompt or your chat). The default system prompt includes a request for markdown, so take that out if you don't want it.

Here's an example of what that would look like (unrendered markdown).
Screenshot 2023-11-30 at 11 37 55 AM

@finallyblueskies

This comment was marked as outdated.

@psugihara
Copy link
Owner Author

Good to know it worked. Happy for any contribution back if the component is portable.

This was referenced Apr 11, 2024
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

No branches or pull requests

3 participants