Skip to content

feat(picker): add focus option to resume()#2729

Open
dpetka2001 wants to merge 1 commit intofolke:mainfrom
dpetka2001:feat/resume_focus
Open

feat(picker): add focus option to resume()#2729
dpetka2001 wants to merge 1 commit intofolke:mainfrom
dpetka2001:feat/resume_focus

Conversation

@dpetka2001
Copy link
Contributor

Description

Adds a focus field to Snacks.picker.resume() to explicitly define which window to focus. Additionally, I've added the functionality in cycle_win action to store the current window focused in picker.init_opts, since that's what's used in resume() states in order to provide the same functionality.

Related Issue(s)

Closes #2726

Screenshots

@github-actions github-actions bot added picker size/s Small PR (<10 lines changed) labels Feb 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

picker size/s Small PR (<10 lines changed)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feature: Snacks.picker.resume options like { focus = "list" }

1 participant