[Issue 23265] New: spell checker could provide better identification of spelling mistakes

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Jul 21 14:47:15 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23265

          Issue ID: 23265
           Summary: spell checker could provide better identification of
                    spelling mistakes
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: schveiguy at gmail.com

This is a small quality-of-life issue. But sometimes symbols are quite long.
The spell checker suggests the correct one, but human brain doesn't register
the difference. Humans can read words the same most of the time as long as the
frist and last lettres match, with the correct letters smoehwere in the middle

for example, I had the symbol intialCustomFields, which really should be
initialCustomFields. Try to see the difference between those quickly.

What I'd like to see is either a colorized diff showing the
deleted/added/swapped letters, or some visual indicator like:

undefined identifier `intialCustomFields`, did you mean variable
`initialCustomFields`? diff: `in>i<tialCustomFields`

Or something to that effect. Or maybe a second line pointing at the difference
spots with carets.

--


More information about the Digitalmars-d-bugs mailing list