Merge pull request 'feat(notifications): notify when long commands finish, with duration and exit status' (#37) from feat/cmd-finish-notifications into main

Reviewed-on: #37
This commit is contained in:
BlackAngelTV committed 2026-11-12 07:24:19 +01:00
commit d866fae523
5 files changed
+42 -4

No files matched your search

+4 -1
View File
@@ -3355,11 +3355,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`
+1 -1
View File
@@ -640,7 +640,7 @@ class Options:
mark3_foreground: Color = Color(0, 0, 0)
momentum_scroll: float = 0.96
mouse_hide_wait: MouseHideWait = MouseHideWait(hide_wait=0.0, show_wait=0.0, show_threshold=40, scroll_show=True) if is_macos else MouseHideWait(hide_wait=3.0, show_wait=0.0, show_threshold=40, scroll_show=True)
notify_on_cmd_finish: NotifyOnCmdFinish = NotifyOnCmdFinish(when='never', duration=5.0, action='notify', cmdline=(), clear_on=('focus', 'next'))
notify_on_cmd_finish: NotifyOnCmdFinish = NotifyOnCmdFinish(when='unfocused', duration=5.0, action='notify', cmdline=(), clear_on=('focus', 'next'))
open_url_with: list[str] = ['default']
padding_fill_strategy: choices_for_padding_fill_strategy = 'background'
palette_generate: choices_for_palette_generate = 'fixed'