Skip to content

fix(headless): preserve custom selector input - #109

Merged
Gubarz merged 1 commit into
mainfrom
fix/headless-selector-custom-values
Nov 25, 2026
Merged

Gubarz merged 1 commit into
mainfrom
fix/headless-selector-custom-values

Conversation

@Gubarz

@Gubarz Gubarz commented Nov 25, 2026

Copy link
Copy Markdown
Member

Summary

  • Preserve the full input when a headless client returns a custom value such as localhost:8080 for a selector with --select-column.
  • Apply column extraction to the original row when a reply identifies an offered option, including when --column shows a different field.
  • Keep explicit map commands working on custom input. The string-only JSON-RPC reply identifies selections by an exact, unambiguous option match.

Related issues

Follow-up to #100.

Verification

The regression tests exercise JSON-RPC replies for custom input, selections, display labels, missing replies, duplicate labels, and mapping. The built CLI preserves custom input and extracts the selected column from the original row.

Checklist

  • go build ./... and go test ./... pass
  • gofmt -l . and go vet ./... are clean
  • Added regression tests for the changed behavior
  • cheatmd --lint examples/ passes

@Gubarz
Gubarz merged commit 7ccf30c into main Nov 25, 2026
1 check passed
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