sindresorhus / one-thing

Set the text for the One Thing app
https://sindresorhus.com/one-thing
MIT License
138 stars 3 forks source link

`open --background` still causes frontmost app to lose focus #6

Closed luckman212 closed 1 year ago

luckman212 commented 1 year ago

Thanks for One Thing! 🌈 🦄

Small issue, but when using the URI scheme to set a message

open --background "one-thing:?text=Foo%20Bar"

The frontmost app will lose focus. I have some scripts that set messages using this method and it causes minor frustration when I am e.g. typing in Sublime Text and I have to reach for the mouse to bring it back to the front.

The Node CLI does not have this problem, so I switched to that for now, but the URI scheme is "easier"

edit: actually, the node cli does have the same gotcha.

sindresorhus commented 1 year ago

This only happens when One Thing is not already running, correct?

luckman212 commented 1 year ago

Correct, sorry I left out that detail.

sindresorhus commented 1 year ago

Fixed in 1.11.2