Skip to content

feat(headers): add optional dropdown to pick header names and values#489

Open
WkdXeqtr wants to merge 5 commits into
mountain-loop:mainfrom
WkdXeqtr:feature/header-value-dropdowns
Open

feat(headers): add optional dropdown to pick header names and values#489
WkdXeqtr wants to merge 5 commits into
mountain-loop:mainfrom
WkdXeqtr:feature/header-value-dropdowns

Conversation

@WkdXeqtr

@WkdXeqtr WkdXeqtr commented Jun 30, 2026

Copy link
Copy Markdown

Summary

I'm migrating from Advanced REST Client (ARC), where header fields had a dropdown
of common names and values, so you could pick one without knowing the exact string
up front. Yaak already has inline autocomplete for headers - this PR adds an
optional dropdown on top of it, so the same suggestions are discoverable by
clicking, not only by typing.

It is fully opt-in and off by default
(Settings -> Interface -> Editor -> "Header suggestion dropdowns"), so nothing
changes unless you turn it on. When enabled, a small chevron appears on the header
name and value inputs; picking an item inserts it. Inline autocomplete is left
untouched.

The dropdown reuses Yaak's existing header suggestion data (header names, mime
types, encodings, ...) and adds a few common value lists (Cache-Control,
Accept-Language, User-Agent). For values that are long or hard to remember, like
User-Agent, it shows a short label (e.g. "Chrome 120 - Windows") but inserts the
full string, using the completion's apply field so inline autocomplete shows the
same labels.

Submission

  • This PR is a bug fix or small-scope improvement.
  • If this PR is not a bug fix or small-scope improvement, I linked an approved feedback item below.
  • I have read and followed CONTRIBUTING.md.
  • I tested this change locally.
  • I added or updated tests when reasonable.

Approved feedback item (required if not a bug fix or small-scope improvement):

Related

Adds an opt-in chevron dropdown next to header name and value inputs that lists the same suggestions as the inline autocomplete, so values can be picked without knowing what to type. Off by default, toggled in Settings -> Interface -> Editor. Long values like User-Agent show a short label but insert the full string via the completion apply field.
@gschier

gschier commented Jun 30, 2026

Copy link
Copy Markdown
Member

JUst added this to the PR template (for future PRs), but can you please attach screenshots or a screen recording of this? I would also consider it a feature, not a small-scoped improvement, but I'm willing to consider it if it fits the vibe of Yaak.

@WkdXeqtr

WkdXeqtr commented Jul 3, 2026

Copy link
Copy Markdown
Author

Thanks for taking a look! Screenshots below.

The setting (off by default, Settings -> Interface -> Editor):

setting

A header field with it off (unchanged, no chevron) vs on:

off
on

Picking a value from the dropdown:

dropdown

@gschier

gschier commented Jul 3, 2026

Copy link
Copy Markdown
Member

Thanks for that!

I wasn't sure I'd like this at first but, now that I see it, I think I do :)

Going to review and get this in for the next release

@github-actions github-actions Bot added the contribution: policy unmet Community PR does not currently satisfy the contribution policy. label Jul 3, 2026
@gschier gschier added contribution: explicit permission Community PR links feedback where @gschier explicitly allowed the work. and removed contribution: policy unmet Community PR does not currently satisfy the contribution policy. labels Jul 3, 2026
@github-actions github-actions Bot added contribution: policy unmet Community PR does not currently satisfy the contribution policy. and removed contribution: explicit permission Community PR links feedback where @gschier explicitly allowed the work. labels Jul 3, 2026
@mountain-loop mountain-loop deleted a comment from github-actions Bot Jul 3, 2026
@gschier gschier added contribution: explicit permission Community PR links feedback where @gschier explicitly allowed the work. and removed contribution: policy unmet Community PR does not currently satisfy the contribution policy. labels Jul 3, 2026
@github-actions github-actions Bot added contribution: policy unmet Community PR does not currently satisfy the contribution policy. and removed contribution: explicit permission Community PR links feedback where @gschier explicitly allowed the work. labels Jul 3, 2026
@mountain-loop mountain-loop deleted a comment from github-actions Bot Jul 3, 2026
@gschier gschier added contribution: in scope Community PR appears to be in scope for maintainer review. and removed contribution: policy unmet Community PR does not currently satisfy the contribution policy. labels Jul 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution: in scope Community PR appears to be in scope for maintainer review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants