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

Vim like word based completion #2586

Closed
jeremycostanzo opened this issue May 27, 2022 · 3 comments
Closed

Vim like word based completion #2586

jeremycostanzo opened this issue May 27, 2022 · 3 comments
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@jeremycostanzo
Copy link

Describe your feature request

I tried switching from nvim to helix, but when editing my config file, I noticed that it was not possible to use this vim feature (C-x doesn't do anything).

This is quite annoying because there are some functions that I called often, such as extend_line.

On the second time I call it, I'd do it with ex<C-p> in vim, but here I either need to type the full thing, or bother to go and yank the word.

The lack of this feature is the main reason why I cannot use vscode's vim mode or fully switch to helix, because I find it extremely useful for editing text inside of strings or non code files.

What it should do

Typing <prefix>C-p starts word based completion with any word that has the same prefix in all opened buffers, sorted by the ones that are closer before the (highest?) cursor.

Typing <prefix>C-n starts word based completion with any word that has the same prefix in all opened buffers, sorted by the ones that are closer after the (lowest?) cursor.

It wouldn't have to be C-p or C-n of course, it is just the standard in Vim.

@jeremycostanzo jeremycostanzo added the C-enhancement Category: Improvements label May 27, 2022
@the-mikedavis
Copy link
Member

This falls under #1015 but I think it's good to have an issue that focus specifically on word-based completion rather than file-path for example. See also #2403

@the-mikedavis the-mikedavis added the A-helix-term Area: Helix term improvements label May 27, 2022
@the-mikedavis the-mikedavis linked a pull request May 27, 2022 that will close this issue
@jeremycostanzo
Copy link
Author

Oh you are right, I didn't find the issue that you mentioned.

But indeed, closing this one would be a good first step 👍 .

@the-mikedavis
Copy link
Member

Ah whoops I didn't notice #1063

@the-mikedavis the-mikedavis added the R-duplicate Duplicated issue: please refer to the linked issue label Jun 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-helix-term Area: Helix term improvements C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants