anthonygarvan / marktwo

A seamless, speedy, syncing markdown editor
https://marktwo.app
GNU General Public License v3.0
78 stars 10 forks source link

Can't know what selecting text outside of active area will select #29

Open smltr opened 3 years ago

smltr commented 3 years ago

When an area is inactive, it displays the text formatted with markdown/html. If I try to double click to select, I would expect the formatted text to be selected, but instead whatever is in the text's place after the markdown/html is shown is selected.

I think it would make sense to disable activating an area while user is selecting, and if user has selected text do not activate area. If user clicks in area again, then show markdown/html.

Alternatively, require ctrl + click in an area (or something to that effect) to show markdown/html. I think the app could be much more useful if the user could easily access both formatted/non-formatted document. Maybe if in formatted mode, special characters would be escaped automatically.

To this same point, it would be very useful to be able to select all in either formatted or non-formatted mode. This isn't possible (that I know of) with the current model. Example use case- user is creating a document and wants to copy the entire document markdown to paste to another site/app/etc that uses markdown