![]() In readline, C-b is "go back 1 character", the same as the left arrow. This wouldn't really matter, except that OS X then uses the control key, almost universally, for readline keybindings. On a mac, however, these keybindings doesn't make sense, we use the command key for that. This makes sense on Linux and Windows, which use the control key the way that OS X uses the command key (a mistake on their part, since it leads to collisions, which is why you have to hold shift when you copy and paste in a Linux terminal). ![]() So if you're on a Mac, C-b will insert two asterisks to the left and right of the cursor. However, the way they were bound on dev.to does not consider which operating system you are on. The ⌘ (command key) makes sense on OS X, and the C (control key) makes sense on Linux and Windows. The keybindings C-I, C-k, and C-b, and ⌘-I, ⌘-k, ⌘-b were mapped to different text styling commands. I initially reported this in the PR that introduced it ( here), but as pointed out, it fell off the radar.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |