Skip to content

Conversation

@bdupras
Copy link

@bdupras bdupras commented Jan 22, 2026

This PR adds the option to specify windows by name when using the -w argument. (I also considered adding a separate -W argument.)

Argument -w matches windows by id or whose title starts with the given string (case-insensitive). If multiple windows match, the window with the lowest ID is selected.

chrome-cli list tabs -w Gmail
chrome-cli list tabs -w "2025 Reports"
chrome-cli close -w GitHub

Also adds a chrome-beta-cli wrapper script for Chrome Beta (com.google.Chrome.beta).

@bdupras
Copy link
Author

bdupras commented Jan 22, 2026

Thanks for this tool @prasmussen! Very cool. I hope you like this contribution - and happy to incorporate any feedback.

Also a quick disclaimer that I'm not experienced with Objective-C and this code was mostly created with AI assistance. If you think it's not correct or not idiomatic in any way, I'm happy to refactor as necessary.

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