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

Autocompletion for generic words. #12971

Closed
1 task done
Siebjee opened this issue Jun 13, 2024 · 5 comments
Closed
1 task done

Autocompletion for generic words. #12971

Siebjee opened this issue Jun 13, 2024 · 5 comments
Labels
autocompletions Feedback for code completions in the editor duplicate Additional reports of an existing issue editor Feedback for code editing, formatting, editor iterations, etc enhancement [core label]

Comments

@Siebjee
Copy link

Siebjee commented Jun 13, 2024

Check for existing issues

  • Completed

Describe the feature

I used atom in the past (till it got killed). And switched back to vim.
And with both editors I had the ability to auto complete generic words instead of only the things from an language server.

VIM (9.1.250 (+bunch of addons)):
Screenshot 2024-06-13 at 10 51 04

Zed (0.139.3):
Screenshot 2024-06-13 at 10 51 56

The goal of this is to lessen potential "retyping" typing errors.

I've searched the docs, tried different settings, searched here in the issues. But can't find anything that remotely resembles what VIM does for me.

@Siebjee Siebjee added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Jun 13, 2024
@notpeter notpeter added editor Feedback for code editing, formatting, editor iterations, etc autocompletions Feedback for code completions in the editor and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Jun 13, 2024
@notpeter
Copy link
Member

That's an interesting use-case, I'm not sure I've seen an editor that does this. What extensions are you using to this now?

At a bare minimum to implement something like this we'd need to support language specific dictionaries (and likely custom dictionaries) for completion which might be available if we had some form of spell check. See:

@Siebjee
Copy link
Author

Siebjee commented Jun 13, 2024

That's a good question. It is part of this stack: https://github.com/Siebjee/vimrc.

But! It's also VIM native (ctrl+n). I think either "youcompleteme" or "coc" is just presenting it in a nice way.

It's not a language server behind it. But rather a language server constructed of all words within the buffer or even all open buffers in VIM. So not a spell check. This way allows you to make the same typo constantly.

@someone13574
Copy link
Contributor

VSCode does this by default based on words in the currently open file.

@d1y
Copy link
Contributor

d1y commented Jun 14, 2024

Duplicate of

@notpeter notpeter added the duplicate Additional reports of an existing issue label Jun 14, 2024
@Siebjee
Copy link
Author

Siebjee commented Jun 14, 2024

Sorry about that! I didn't spot that issue. Thanks for referencing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autocompletions Feedback for code completions in the editor duplicate Additional reports of an existing issue editor Feedback for code editing, formatting, editor iterations, etc enhancement [core label]
Projects
None yet
Development

No branches or pull requests

4 participants