Skip to content

[REQUEST] Completion ranking sort order include proximity #5470

@xrchz

Description

@xrchz

Feature

In (neo)vim I am used to C-n/C-p completion list taking proximity of words to the cursor into account. Like if I have

fun long_name_of_func_32(n):
  return lo[]

with my cursor at the [], I want completion (C-n) to give me long_name_of_func_32 as one of the first candidates, but I think the current ranking logic sorts alphabetically or something giving load_file or whatever first, which means I have to press C-n many more times than I would like.

I think proximity is generally a good feature to use here. But if not everyone agrees I would at least like the option to turn it on.

Usecase

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions