Repository navigation
fix(help): give every selector key a rule and list every selector command - #5028
Conversation
…mand A term can be a bare boolean key, checked is three-valued, appname and windowtitle say which snapshots report them, and the command lists add gesture pinch and screenshot --crop-on (selectors.md also adds click, hover and gesture drag).
|
Thanks for the clear fix. At 23d94bf the code looks ready to merge, and no conflicts were reported. The only checks not passing are two Body rules jobs. Both were cancelled rather than failed, and the diff touches no body-check script or workflow file, so they look unrelated and a re-run should settle them. Not blocking, and fine to take or leave: the list of selector-taking commands is hand-written in two places with no test tying it to the command surface, the |
Summary
Follow-up to #5009, from its review notes.
key=valueor a bare boolean key (checkedmeanschecked=true).appnameandwindowtitlesay what they match and which snapshots report them: Linux, the macOS desktop, frontmost-app and menubar surfaces, and macOS app sessions on the native backend.checkedstates its three values:checked=trueandchecked=falsematch only an explicit state; mixed or absent match neither.gesture pinch(feat(gesture): pinch an element by ref or selector #4998) andscreenshot --crop-on. selectors.md also addsclick,hoverandgesture drag.cli-help-selectors.test.tsparses everyagent-deviceexample selector in the topic and selectors.md. Nine rule examples (bare key, escaped quote,button="Save"rejected, whole-field match, bothcheckedvalues,||order) must appear in both texts and get the expected parser or matcher result. Every parser key must open a rule clause in the topic's Matching section and have a table row or Boolean keys entry in selectors.md. The prose around an example is not checked.Before / after
Validation
check:affected --run --head 23d94bfc7: format, lint, typecheck, layering, fallow, build and vitest-related pass.check:doc-linksandcheck:doc-prosepass.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.