Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(coc-dictionary): adapt first char case when necessary #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tanloong
Copy link

@tanloong tanloong commented Apr 5, 2024

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 and ignorecase 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 to Zeal as candidate for ZEAL.

Before (no suggestions for upper case Z):

simplescreenrecorder-2024-04-06_00.52.05.mp4

After:

simplescreenrecorder-2024-04-06_00.53.09.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants