hackchat-client icon indicating copy to clipboard operation
hackchat-client copied to clipboard

Preview Feature?

Open lutalli opened this issue 3 years ago • 4 comments

Hi,

How about adding a preview block, which shows the result of the real-time rendering from the message's source code? It would be neat since then I could directly check some possible typing mistakes, especially in typesetting of LaTeX equations.

Thanks a lot!

lutalli avatar Jan 11 '22 08:01 lutalli

We could make that preview area hidable or switchable with the edit area (like Markdown editors from many websites), so that the UI could still stay clean.

lutalli avatar Jan 11 '22 08:01 lutalli

I've transferred your suggestion into the new client repo.

If I'm understanding this correctly; you're looking for a feature that will allow a user to click a ui element (like a button) that when clicked, will change a message into it's source / non-rendered text?

marzavec avatar Jan 11 '22 16:01 marzavec

That's not what I meant - what I wish is that we could have a preview for the render result of the message that we are currently editing. In this way, we could check if the written code produces the right result we want, before sending it. This would avoid the problem like, I only realized some mistake in my LaTeX code only after I sent the message.

This kind of feature is supported by many forums, whose Markdown editors usually have an area for editing and another one for previewing. Just like GitHub: image

But, the "View Source" feature, as what you described, is also worth realizing. In addition, it can provide convenience as well if the user is allowed to re-edit some message sent by himself via modifying the message's source code.

lutalli avatar Jan 11 '22 18:01 lutalli

Ah, I see what you mean now. I'll keep this issue open and we'll see if we can get it added

marzavec avatar Jan 13 '22 21:01 marzavec