feat(coc-dictionary): adapt first char case when necessary #75
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This makes
coc-dictionary
adapt the first char case for candidate words to match the case of the user's typed text. The change is made with implementation of similar behaviour in coc-word as a reference.This partially addresses behavior requested by #67, although not taking
infercase
andignorecase
as on/off flags. One drawback is that for full upper case words, still only the first char of candidate words will be adapted, e.g.,zeal
will be adapted toZeal
as candidate forZEAL
.Before (no suggestions for upper case
Z
):simplescreenrecorder-2024-04-06_00.52.05.mp4
After:
simplescreenrecorder-2024-04-06_00.53.09.mp4