Closed jinliu closed 7 months ago
Closing this pull request. Since Kitty will have its own job notification feature in the upcoming release, now there's no point adding Kitty-specific integration, as a Kitty user probably won't use this plugin. Probably the merged https://github.com/franciscolourenco/done/pull/141 can be reverted, too.
@jinliu can you share information about this release? Thanks!
The relevant option: https://github.com/kovidgoyal/kitty/blob/b961e65f2228ed957d17e2fd3b7a1c4b1c478fb1/kitty/options/definition.py#L3152 I don't know when will the next release be. You'll have to build it from source at the moment.
It's a new feature in Kitty 0.31 (which is just released). With that option, the notification is ignored if the window is focused and the tab is active, so we don't have to detect window state.
There's no reliable way to detect Kitty's version, so the user needs to
set -U kitty_notification_unfocused 1
.