Skip to content

Complete all Jinja2 keys after --<tab> in /f - #2095

Merged
rolandwalker merged 1 commit into
mainfrom
RW/complete-all-jinja-keys-on-dash-dash
Aug 4, 2026
Merged

Complete all Jinja2 keys after --<tab> in /f#2095
rolandwalker merged 1 commit into
mainfrom
RW/complete-all-jinja-keys-on-dash-dash

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

Because -- means "end of options", there was a slight ambiguity for favorite completions if <tab> was pressed immediately after --. We should see all possible key names, as scraped from the Jinja2 template for the favorite query.

Whereas if there is an intervening space: -- <tab>, no key-name completions should be offered.

This fixes favorite parameter completion so that completions are equally visible after -<tab>, --<tab>, and --<partial><tab>.

The change can be included under a pending changelog entry.

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 .

Because -- means "end of options", there was a slight ambiguity for
favorite completions if <tab> was pressed immediately after --.  We
should see all possible key names, as scraped from the Jinja2 template
for the favorite query.

Whereas if there is an intervening space: "-- <tab>", no key-name
completions should be offered.

This fixes favorite parameter completion so that completions are equally
visible after "-<tab>", "--<tab>", and "--<partial><tab>".

The change can be included under a pending changelog entry.
@rolandwalker rolandwalker self-assigned this Aug 4, 2026
@rolandwalker
rolandwalker merged commit 8912ceb into main Aug 4, 2026
11 checks passed
@rolandwalker
rolandwalker deleted the RW/complete-all-jinja-keys-on-dash-dash branch August 4, 2026 11:28
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