feat(options): notify when long commands finish by default
The notification only happened if notify_on_cmd_finish was passed on the command line or written in kitty.conf, so a fresh build looked like it had no such feature at all. Long-running commands now notify by default once the window loses focus; the 5 second threshold keeps short commands silent.
This commit is contained in:
3 files changed
+9
-2
No files matched your search
@@ -3342,12 +3342,14 @@ first valid match, in the order specified, is sourced.
|
||||
|
||||
opt(
|
||||
'notify_on_cmd_finish',
|
||||
'never',
|
||||
'unfocused',
|
||||
option_type='notify_on_cmd_finish',
|
||||
long_text="""
|
||||
Show a desktop notification when a long-running command finishes
|
||||
(needs :opt:`shell_integration`).
|
||||
The notification gives the command line, how long it ran and its exit status.
|
||||
By default commands running longer than 5 seconds are reported when the window
|
||||
loses focus, set the value to :code:`never` to disable this.
|
||||
The possible values are:
|
||||
|
||||
:code:`never`
|
||||
|
||||
Reference in new issue
Block a user