Hi there, I’m a software developer and I always take notes with this magnificent app.
I’ll go straight to the point, sometimes, when I take notes, I do not put any formatting at first, but when I finish writing, if I got spare time, I usually put some kind of style and formatting to the document, like putting bold/italic/… .
The problem is that when I press CTRL, to select more then a word at a time instead of going one by one, the formatting gets buggy.
Some selected sentences are repeated and everything is formatted, instead of only the words I’ve selected.
Environment
Platform: Windows
Platform version: 11
App Version: 5.5.3
How to reproduce
Select more then a word and then press the B (or CTRL+B). You’ll see duplicated sentences and a wrong formatting.
No no, I’ll attach some screenshot to let it be more clear.
Let’s say I’ve some text, when I press CTRL and click with mouse on different words, They get selected, then I would like to have only AWS, Cloud and they as bold.
But as you can see this is the behaviour when I click on B(bold).
I get the same bug. I am aware that this bug is known to the author and will be fixed in the future. But I also want to report this “Ctrl-B to bold selected text” bug for single cursor and other conditions.
Environment
Platform: MacBook (I also use Inkdrop on Windows and iOS, but have not yet tested for this bug)
MacOS version: 14.0 (23A344)
Inkdrop version: 5.5.3
How to reproduce
Bug 1: wrong selection when pressing Ctrl-Z after Ctrl-B: the whole selection moves 2 letters to the right. All the time.
Bug 2: select a word with next space together, Ctrl-B => the next word is bold as well, not only the word between the two **.
Bug 3: It’s more complicated and weird if you select text from 2 lines: whole lines or not, with spaces and the end of the selection or not. You can check this yourself.
Thanks for letting me know. I’ll keep those bugs in mind when upgrading CodeMirror to the new version!
Regarding the bug 2: select a word with next space together, Ctrl-B => the next word is bold as well, not only the word between the two **.
It would be an incorrect Markdown: **cooked **foods does not work in the CommonMark specifications.
You can test it here: commonmark.js demo
Regarding Bug 3, how should the editor behave by this, what do you think? CommonMark doesn’t support emphasizing text across multiple list items.
I see, and I agree with you about the bug 2. It’s not a bug.
Regarding bug 3, the only matter is that the selection moves when you press Command-B and Command-Z. (both actions move the selection).