Ctrl-delete/backspace selects more than previous word
While writing, I often use Ctrl-delete to erase the previous word. But the odd behavior is that the command selects more than just the previous word. Sometimes, it selects the entire row, or whole sentence, while also deleting the previous word. The problem is that it leaves the text randomly selected, so the next thing I type replaces the selected text.
See screen shot

But it's inconsistent! All I want it to do is delete the previous word, and not select anything else. A bug?
There are some cases that determine what should be selected after the word is deleted, but I don't think what you are running into is expected. I'll take a look into it further later today.
Would it be possible for you to create a screen recording of the issue? I was just attempting to recreate it on my end and was unable to.
Additionally, did you mean to say that Control-Backspace is the keyboard shortcut that you use for deleting the previous word? Control-Delete will delete the next word.
One more thing, you mention that using control-delete selects more than the previous word. I just want to make sure we are on the same page. Control-backspace/delete removes the word, it does not select it. If text was selected prior to the word deletion, I do need to adjust the selected text range range to match.
I wonder if this is related to my hardware. I'm running Outliner on a 2011 Mac (which labels the backspace key delete). Again, when I hit that key (Ctrl-backspace), the word to the left is deleted, but then, afterward, sometimes the whole row highlights, or the sentence, or just a word or two, or nothing. I'm away from my laptop right now, but will do the recording later. I haven't selected any text before issuing the command.
On Wed, Mar 3, 2021 at 12:06 PM Trevor Williams [email protected] wrote:
Would it be possible for you to create a screen recording of the issue? I was just attempting to recreate it on my end and was unable to.
Additionally, did you mean to say that Control-Backspace is the keyboard shortcut that you use for deleting the previous word? Control-Delete will delete the next word.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phase1geo/Outliner/issues/71#issuecomment-789982484, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMDL7NEDPAAO4MNWICS7FGLTB2CCXANCNFSM4YRVMNPA .
-- James LaRue
Mobile: 720-530-4294 Website and Blog: jlarue.com Twitter: @jaslar
Thanks for the keyboard clarification. That clears things up for that question.
I believe I have fixed this issue in the master branch.