Sublime Forum

Bug? Ctrl-D with "Case sensitive" vs. "Whole word" settings

#1

Here’s some behavior that seems like a bug to me, or at least an annoying inconsistency. When using Ctrl-D to multi-select, it respects the “Case sensitive” setting of the Find bar, but NOT the “Whole word” setting. To reproduce:

  1. Bring up the Find bar
  2. Type a word that occurs multiple times in the text, with different casing, and sometimes as a whole word, and sometimes as part of a word; note that all occurences become outlined
  3. Turn on the Case sensitive setting; note that only the instances in the same case remain outlined
  4. Hit Ctrl-D a bunch of times; note that only the case-matching instances (the outlined ones) get selected
  5. Click somewhere to deselect everything
  6. Turn off the Case sensitive setting
  7. Turn on the Whole word setting in the Find bar; note that only the whole word instances are outlined
  8. Select the first outlined instance
  9. Hit Ctrl-D; note that suddenly all of the non-whole word instances have become outlined as well
  10. Hit Ctrl-D a bunch more times; note that all occurrences of the text will get selected, regardless of whether they are whole words, even though the Whole word setting of the Find bar is active

When I do a search and see a bunch of outlined instances with the first one highlighted, I expect that hitting Ctrl-D a bunch of times will select only those instances. It is counterintuitive that the first press of Ctrl-D will suddenly add more candidates for selection, and is often not what I want.

0 Likes

#2
0 Likes