Skip to content

Completion on abbreviated pathname elements - #2222

Merged
rolandwalker merged 1 commit into
mainfrom
RW/abbrev-path-element-completion
Sep 8, 2026
Merged

Completion on abbreviated pathname elements#2222
rolandwalker merged 1 commit into
mainfrom
RW/abbrev-path-element-completion

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

Now that pathname completions are working at all, we can add a popular completion method adapted from fish. The example path

./directory/subdirectory/example.sql

can be completed on leading abbreviations after each slash, including abbreviations of a single letter, such as

./d/s/e<tab>

This abbreviation method applies only to pathnames.

xref #2211.

Example:

last image

Checklist

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

Now that pathname completions are working at all, we can add a popular
completion method adapted from fish.  The example path

    ./directory/subdirectory/example.sql

can be completed on leading abbreviations after each slash, including
abbreviations of a single letter, such as

    ./d/s/e<tab>

This abbreviation method applies only to pathnames.
@rolandwalker rolandwalker self-assigned this Sep 8, 2026
@rolandwalker
rolandwalker merged commit 87845b1 into main Sep 8, 2026
11 checks passed
@rolandwalker
rolandwalker deleted the RW/abbrev-path-element-completion branch September 8, 2026 11:26
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.

1 participant