Skip to content

Apply selected-column extraction without a map command - #100

Merged
Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/selector-columns
Oct 13, 2026
Merged

Gubarz merged 1 commit into
cheatmd-dev:mainfrom
echo8134:fix/selector-columns

Conversation

@echo8134

Copy link
Copy Markdown
Contributor

Summary

UI and headless callers skipped the selector transform unless --map was also present, so --select-column returned the entire row. Always apply the transform, whose no-option behavior is unchanged.

Related issues

No linked issue.

Verification

Single/multi UI selection and headless full-row choices now extract the requested column. Display-only controls remain unchanged. The separate headless display-label/original-value protocol issue remains outside this patch.

Local checks passed on Go 1.27.1. The CI workflow uses Go 1.26.3.

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
  • Docs/wiki changes are not needed for this fix

@Gubarz
Gubarz marked this pull request as ready for review October 13, 2026 04:22
@Gubarz
Gubarz merged commit 6044a6c into cheatmd-dev:main Oct 13, 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.

2 participants