Skip to content

Path completion improvement on Windows #782

@ndtoan96

Description

@ndtoan96

Please describe the problem you're trying to solve

I see several things can be improved for path completion (g <space>) on Windows:

  1. Use / separator to trigger folder completion.
  2. Smart case matching (i.e typing "prog" can matches "Program Files").
  3. On Windows, somehow pressing tab for completion turns the \ to /. For example, I'm at .github\ and the completion popup shows ISSUE_TEMPLATES\ and workflows\. If I select workflow\ and press tab then the input becomes .github/workflows\

Would you be willing to contribute this feature?

  • Yes, I'll give it a shot

Describe the solution you'd like

As described above.

Additional context

I was trying to implement the features but can't quite understand the code (e.g I don't know what is word and ticket, and what the Cmd is supposed to do). It would help if you can briefly explain the completion module.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions