Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

window():title doesn't return stable names for Chrome anymore #3721

Open
kennyeni opened this issue Dec 4, 2024 · 0 comments
Open

window():title doesn't return stable names for Chrome anymore #3721

kennyeni opened this issue Dec 4, 2024 · 0 comments

Comments

@kennyeni
Copy link

kennyeni commented Dec 4, 2024

Basically, the behavior described here doesn't work anymore: https://www.reddit.com/r/hammerspoon/comments/pcn425/psa_assign_stable_names_to_windows_in_chrome/

There's a "Window > Name Window" main menu item as well as a context menu item if you right click an empty part of the window frame. This title is stable as you navigate to different sites and switch tabs. This makes it much easier to programmatically reference particular windows in hammerspoon code. The window:title() function will return "Your Window Name - Google Chrome" which is easy enough to match/filter on.

Now, it returns the name of the currently focused tab on each Chrome window.

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

No branches or pull requests

1 participant