silverbulletmd / silverbullet

The hackable notebook
https://silverbullet.md
MIT License
2.01k stars 138 forks source link

Typing a " or ' when text is selected, should surround the text with these quotes #896

Closed zefhemel closed 1 week ago

zefhemel commented 1 week ago

This is how it works with brackets, but not quotes yet.

MrMugame commented 1 week ago

Btw, what's the reason for actually replacing the characters with the special unicode characters rather than just rendering them differently?

zefhemel commented 1 week ago

How would you just render them differently? Ah, you mean in the editor? Good question actually, never considered that option.

zefhemel commented 1 week ago

That would be another way to approach this. What I would want, then, is that when copy & pasting (or sharing) content, they'd be copied in the "curly" form, if that makes sense. So not sure that would be worth reimplementing in the editor.

MrMugame commented 1 week ago

For me not copying those unicode characters would actually be the reason to implement it further down. I guess there are different needs/expectations here.