Another related behavior that some sites have is, when you have some selected text, typing * or ** will wrap the selected text in asterisks, rather than overwriting the text. Perhaps that is something worth considering as another shortcut.
typing * or ** will wrap the selected text in asterisks
I’ve only seen this behavior in code editors - but not in more general purpose writing apps like IA writer where only cmd-b style shortcuts are supported. My worry is that wrapping txt chars would not be used by most ppl, who would prefer to use cmd-b.
The secondary worry beyond the scope is that wrapping txt chars might instead cause confusion in ppl who would instead expect that the text should be replaced with the character when you select text and type any character.
Acknowledged around the typing * to surround vs overwrite seelction…it certainly increases scope and it is not conventional. It would take some finesse to get the behavior right and not cause confusion.
I think how I would handle it is, after hitting *, you would reselect the text. If the user wanted a raw *, then they could hit backspace to delete the selection, then backspace once more to delete the left asterisk.
I can’t remember what editor I saw this behavior, but I remember experiencing it and liking it a lot. I feel like the instances of selecting the text and intentionally putting asterisks is pretty low, so it’s a nice little shortcut for markdown styling.
But I’m fine with the standard ctrl-B/I shortcut for now.