Skip to content

Conversation

@rolandwalker
Copy link
Contributor

Description

  • Filenames first, except for the special directory candidates which have always been given: ., .., /, ~.
  • Don't suggest dotfiles.

xref #1488.

Listing the special directory prompts first when there is no content is highly debatable! I left them there on the theory that those have always been first, and change should be gradual. That reasoning could be wrong here:

Screenshot 2026-01-28 at 6 19 10 AM

Once some letters have been typed that issue is no longer relevant:

last image

We can count this under the existing Feature entry in the changelog for #1488.

Checklist

  • I've added this contribution to the changelog.md.
  • I've added my name to the AUTHORS file (or it's already there).
  • I ran uv run ruff check && uv run ruff format && uv run mypy --install-types . to lint and format the code.

 * filenames first, except for the special directory candidates which
   have always been given: ".", "..", "/", "~"
 * don't suggest dotfiles
@rolandwalker rolandwalker self-assigned this Jan 28, 2026
@rolandwalker rolandwalker changed the title Better sorting for filename completions in source Better sorting for filename completions in source Jan 28, 2026
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