From 8c9f2e8b7bfe1e448c51533d4fb22227052dfbeb Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Mon, 15 Jul 2024 01:52:37 -0700 Subject: [PATCH 1/7] feat: add environment variables for changing fzf keys --- gh-notify | 62 ++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/gh-notify b/gh-notify index 9b85a1c..086bda4 100755 --- a/gh-notify +++ b/gh-notify @@ -26,6 +26,20 @@ export GH_FORCE_TTY=1 export GH_NOTIFY_PER_PAGE_LIMIT=50 # Assign 'GH_NOTIFY_DEBUG_MODE' with 'true' to see more information export GH_NOTIFY_DEBUG_MODE=${GH_NOTIFY_DEBUG_MODE:-false} + +# Customize the fzf keys using environment variables +export GH_NOTIFY_RESIZE_PREVIEW_KEY="${GH_NOTIFY_RESIZE_PREVIEW_KEY:-"btab"}" +export GH_NOTIFY_TOGGLE_PREVIEW_KEY="${GH_NOTIFY_TOGGLE_PREVIEW_KEY:-"tab"}" +export GH_NOTIFY_VIEW_KEY="${GH_NOTIFY_VIEW_KEY:-"enter"}" +export GH_NOTIFY_TOGGLE_HELP_KEY="${GH_NOTIFY_TOGGLE_HELP_KEY:-"?"}" +export GH_NOTIFY_VIEW_DIFF_KEY="${GH_NOTIFY_VIEW_DIFF_KEY:-"ctrl-d"}" +export GH_NOTIFY_VIEW_PATCH_KEY="${GH_NOTIFY_VIEW_PATCH_KEY:-"ctrl-p"}" +export GH_NOTIFY_MARK_READ_KEY="${GH_NOTIFY_MARK_READ_KEY:-"ctrl-t"}" +export GH_NOTIFY_MARK_ALL_READ_KEY="${GH_NOTIFY_MARK_ALL_READ_KEY:-"ctrl-a"}" +export GH_NOTIFY_OPEN_BROWSER_KEY="${GH_NOTIFY_OPEN_BROWSER_KEY:-"ctrl-b"}" +export GH_NOTIFY_RELOAD_KEY="${GH_NOTIFY_RELOAD_KEY:-"ctrl-r"}" +export GH_NOTIFY_COMMENT_KEY="${GH_NOTIFY_COMMENT_KEY:-"ctrl-x"}" + if $GH_NOTIFY_DEBUG_MODE; then export gh_notify_debug_log="${BASH_SOURCE%/*}/gh_notify_debug.log" @@ -111,18 +125,18 @@ ${WHITE_BOLD}Flags${NC} ${GREEN}-w ${NC} display the preview window in interactive mode ${WHITE_BOLD}Key Bindings fzf${NC} - ${GREEN}? ${NC} toggle help - ${GREEN}enter ${NC} view the selected notification in the 'less' pager - ${GREEN}tab ${NC} toggle notification preview - ${GREEN}shift+tab${NC} resize the preview window + ${GREEN}${GH_NOTIFY_TOGGLE_HELP_KEY} ${NC} toggle help + ${GREEN}${GH_NOTIFY_VIEW_KEY} ${NC} view the selected notification in the 'less' pager + ${GREEN}${GH_NOTIFY_TOGGLE_PREVIEW_KEY} ${NC} toggle notification preview + ${GREEN}${GH_NOTIFY_RESIZE_PREVIEW_KEY}${NC} resize the preview window ${GREEN}shift+↑↓ ${NC} scroll the preview up/ down - ${GREEN}ctrl+a ${NC} mark all displayed notifications as read and reload - ${GREEN}ctrl+b ${NC} browser - ${GREEN}ctrl+d ${NC} view diff - ${GREEN}ctrl+p ${NC} view diff in patch format - ${GREEN}ctrl+r ${NC} reload - ${GREEN}ctrl+t ${NC} mark the selected notification as read and reload - ${GREEN}ctrl+x ${NC} write a comment with the editor and quit + ${GREEN}${GH_NOTIFY_MARK_ALL_READ_KEY} ${NC} mark all displayed notifications as read and reload + ${GREEN}${GH_NOTIFY_OPEN_BROWSER_KEY} ${NC} browser + ${GREEN}${GH_NOTIFY_VIEW_DIFF_KEY} ${NC} view diff + ${GREEN}${GH_NOTIFY_VIEW_PATCH_KEY} ${NC} view diff in patch format + ${GREEN}${GH_NOTIFY_RELOAD_KEY} ${NC} reload + ${GREEN}${GH_NOTIFY_MARK_READ_KEY} ${NC} mark the selected notification as read and reload + ${GREEN}${GH_NOTIFY_COMMENT_KEY} ${NC} write a comment with the editor and quit ${GREEN}esc ${NC} quit ${WHITE_BOLD}Table Format${NC} @@ -481,24 +495,24 @@ select_notif() { output=$( SHELL="$(which bash)" command fzf \ --ansi \ - --bind "btab:change-preview-window(75%:nohidden|75%:down:nohidden:border-top|nohidden)" \ + --bind "${GH_NOTIFY_RESIZE_PREVIEW_KEY}:change-preview-window(75%:nohidden|75%:down:nohidden:border-top|nohidden)" \ --bind "change:first" \ - --bind "ctrl-a:execute-silent(mark_all_read {})+reload:print_notifs || true" \ - --bind "ctrl-b:execute-silent:open_in_browser {}" \ - --bind "ctrl-d:toggle-preview+change-preview:if command grep -q PullRequest <<<{10}; then command gh pr diff {11} --repo {5} | highlight_output; else view_notification {}; fi" \ - --bind "ctrl-p:toggle-preview+change-preview:if command grep -q PullRequest <<<{10}; then command gh pr diff {11} --patch --repo {5} | highlight_output; else view_notification {}; fi" \ - --bind "ctrl-r:reload:print_notifs || true" \ - --bind "ctrl-t:execute-silent(mark_individual_read {})+reload:print_notifs || true" \ - --bind "enter:execute:view_notification --all_comments {} | less ${less_args[*]} >/dev/tty" \ - --bind "tab:toggle-preview+change-preview:view_notification {}" \ - --bind "?:toggle-preview+change-preview:print_help_text" \ + --bind "${GH_NOTIFY_MARK_ALL_READ_KEY}:execute-silent(mark_all_read {})+reload:print_notifs || true" \ + --bind "${GH_NOTIFY_OPEN_BROWSER_KEY}:execute-silent:open_in_browser {}" \ + --bind "${GH_NOTIFY_VIEW_DIFF_KEY}:toggle-preview+change-preview:if command grep -q PullRequest <<<{10}; then command gh pr diff {11} --repo {5} | highlight_output; else view_notification {}; fi" \ + --bind "${GH_NOTIFY_VIEW_PATCH_KEY}:toggle-preview+change-preview:if command grep -q PullRequest <<<{10}; then command gh pr diff {11} --patch --repo {5} | highlight_output; else view_notification {}; fi" \ + --bind "${GH_NOTIFY_RELOAD_KEY}:reload:print_notifs || true" \ + --bind "${GH_NOTIFY_MARK_READ_KEY}:execute-silent(mark_individual_read {})+reload:print_notifs || true" \ + --bind "${GH_NOTIFY_VIEW_KEY}:execute:view_notification --all_comments {} | less ${less_args[*]} >/dev/tty" \ + --bind "${GH_NOTIFY_TOGGLE_PREVIEW_KEY}:toggle-preview+change-preview:view_notification {}" \ + --bind "${GH_NOTIFY_TOGGLE_HELP_KEY}:toggle-preview+change-preview:print_help_text" \ --border horizontal \ --color "border:dim" \ --color "header:green:italic:dim" \ --color "prompt:80,info:40" \ --delimiter '\s+' \ - --expect "esc,ctrl-x" \ - --header "? help · esc quit" \ + --expect "esc,${GH_NOTIFY_COMMENT_KEY}" \ + --header "${GH_NOTIFY_TOGGLE_HELP_KEY} help · esc quit" \ --info=inline \ --no-multi \ --pointer="▶" \ @@ -522,7 +536,7 @@ select_notif() { # quit with exit code 0; 'fzf' returns 130 by default exit 0 ;; - ctrl-x) + "${GH_NOTIFY_COMMENT_KEY}") if command grep -qE "Issue|PullRequest" <<<"$type"; then command gh issue comment "$num" --repo "$repo_full_name" mark_individual_read "$selected_line" || die "Failed to mark the notification as read." From 4994e44fd4645173fee8d0cd10cc2620f315d1e1 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Mon, 15 Jul 2024 02:14:51 -0700 Subject: [PATCH 2/7] docs: add key environment variables to readme --- readme.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/readme.md b/readme.md index ece8b3d..1b15e58 100644 --- a/readme.md +++ b/readme.md @@ -48,21 +48,21 @@ gh notify [Flags] ### Key Bindings fzf -| Keys | Description | -| ------------------------------ | --------------------------------------------------- | -| ? | toggle help | -| enter | view the selected notification in the 'less' pager | -| tab | toggle notification preview | -| shifttab | resize the preview window | -| shift↑↓ | scroll the preview up/ down | -| ctrla | mark all displayed notifications as read and reload | -| ctrlb | browser | -| ctrld | view diff | -| ctrlp | view diff in patch format | -| ctrlr | reload | -| ctrlt | mark the selected notification as read and reload | -| ctrlx | write a comment with the editor and quit | -| esc | quit | +| Keys | Description | Customization Environment Variable | +| ------------------------------ | --------------------------------------------------- | --------------------------------------- | +| ? | toggle help | GH_NOTIFY_TOGGLE_HELP_KEY | +| enter | view the selected notification in the 'less' pager | GH_NOTIFY_VIEW_KEY | +| tab | toggle notification preview | GH_NOTIFY_TOGGLE_PREVIEW_KEY | +| shifttab | resize the preview window | GH_NOTIFY_RESIZE_PREVIEW_KEY | +| shift↑↓ | scroll the preview up/ down | | +| ctrla | mark all displayed notifications as read and reload | GH_NOTIFY_MARK_ALL_READ_KEY | +| ctrlb | browser | GH_NOTIFY_OPEN_BROWSER_KEY | +| ctrld | view diff | GH_NOTIFY_VIEW_DIFF_KEY | +| ctrlp | view diff in patch format | GH_NOTIFY_VIEW_PATCH_KEY | +| ctrlr | reload | GH_NOTIFY_RELOAD_KEY | +| ctrlt | mark the selected notification as read and reload | GH_NOTIFY_MARK_READ_KEY | +| ctrlx | write a comment with the editor and quit | GH_NOTIFY_COMMENT_KEY | +| esc | quit | | ### Table Format From 5e7d30bab63a75512286b5f9b55072713b033a05 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 16 Jul 2024 00:04:45 -0700 Subject: [PATCH 3/7] refactor: pull request review changes --- gh-notify | 22 +++++++++++----------- readme.md | 43 ++++++++++++++++++++++++++++--------------- 2 files changed, 39 insertions(+), 26 deletions(-) diff --git a/gh-notify b/gh-notify index 086bda4..0eb38c4 100755 --- a/gh-notify +++ b/gh-notify @@ -28,17 +28,17 @@ export GH_NOTIFY_PER_PAGE_LIMIT=50 export GH_NOTIFY_DEBUG_MODE=${GH_NOTIFY_DEBUG_MODE:-false} # Customize the fzf keys using environment variables -export GH_NOTIFY_RESIZE_PREVIEW_KEY="${GH_NOTIFY_RESIZE_PREVIEW_KEY:-"btab"}" -export GH_NOTIFY_TOGGLE_PREVIEW_KEY="${GH_NOTIFY_TOGGLE_PREVIEW_KEY:-"tab"}" -export GH_NOTIFY_VIEW_KEY="${GH_NOTIFY_VIEW_KEY:-"enter"}" -export GH_NOTIFY_TOGGLE_HELP_KEY="${GH_NOTIFY_TOGGLE_HELP_KEY:-"?"}" -export GH_NOTIFY_VIEW_DIFF_KEY="${GH_NOTIFY_VIEW_DIFF_KEY:-"ctrl-d"}" -export GH_NOTIFY_VIEW_PATCH_KEY="${GH_NOTIFY_VIEW_PATCH_KEY:-"ctrl-p"}" -export GH_NOTIFY_MARK_READ_KEY="${GH_NOTIFY_MARK_READ_KEY:-"ctrl-t"}" -export GH_NOTIFY_MARK_ALL_READ_KEY="${GH_NOTIFY_MARK_ALL_READ_KEY:-"ctrl-a"}" -export GH_NOTIFY_OPEN_BROWSER_KEY="${GH_NOTIFY_OPEN_BROWSER_KEY:-"ctrl-b"}" -export GH_NOTIFY_RELOAD_KEY="${GH_NOTIFY_RELOAD_KEY:-"ctrl-r"}" -export GH_NOTIFY_COMMENT_KEY="${GH_NOTIFY_COMMENT_KEY:-"ctrl-x"}" +: "${GH_NOTIFY_MARK_ALL_READ_KEY:=ctrl-a}" +: "${GH_NOTIFY_OPEN_BROWSER_KEY:=ctrl-b}" +: "${GH_NOTIFY_VIEW_DIFF_KEY:=ctrl-d}" +: "${GH_NOTIFY_VIEW_PATCH_KEY:=ctrl-p}" +: "${GH_NOTIFY_RELOAD_KEY:=ctrl-r}" +: "${GH_NOTIFY_MARK_READ_KEY:=ctrl-t}" +: "${GH_NOTIFY_COMMENT_KEY:=ctrl-x}" +: "${GH_NOTIFY_RESIZE_PREVIEW_KEY:=btab}" +: "${GH_NOTIFY_VIEW_KEY:=enter}" +: "${GH_NOTIFY_TOGGLE_PREVIEW_KEY:=tab}" +: "${GH_NOTIFY_TOGGLE_HELP_KEY:=?}" if $GH_NOTIFY_DEBUG_MODE; then export gh_notify_debug_log="${BASH_SOURCE%/*}/gh_notify_debug.log" diff --git a/readme.md b/readme.md index 1b15e58..679424c 100644 --- a/readme.md +++ b/readme.md @@ -48,21 +48,21 @@ gh notify [Flags] ### Key Bindings fzf -| Keys | Description | Customization Environment Variable | -| ------------------------------ | --------------------------------------------------- | --------------------------------------- | -| ? | toggle help | GH_NOTIFY_TOGGLE_HELP_KEY | -| enter | view the selected notification in the 'less' pager | GH_NOTIFY_VIEW_KEY | -| tab | toggle notification preview | GH_NOTIFY_TOGGLE_PREVIEW_KEY | -| shifttab | resize the preview window | GH_NOTIFY_RESIZE_PREVIEW_KEY | -| shift↑↓ | scroll the preview up/ down | | -| ctrla | mark all displayed notifications as read and reload | GH_NOTIFY_MARK_ALL_READ_KEY | -| ctrlb | browser | GH_NOTIFY_OPEN_BROWSER_KEY | -| ctrld | view diff | GH_NOTIFY_VIEW_DIFF_KEY | -| ctrlp | view diff in patch format | GH_NOTIFY_VIEW_PATCH_KEY | -| ctrlr | reload | GH_NOTIFY_RELOAD_KEY | -| ctrlt | mark the selected notification as read and reload | GH_NOTIFY_MARK_READ_KEY | -| ctrlx | write a comment with the editor and quit | GH_NOTIFY_COMMENT_KEY | -| esc | quit | | +| Keys | Description | Customization Environment Variable | +| ------------------------------ | --------------------------------------------------- | ---------------------------------- | +| ? | toggle help | `GH_NOTIFY_TOGGLE_HELP_KEY` | +| enter | view the selected notification in the 'less' pager | `GH_NOTIFY_VIEW_KEY` | +| tab | toggle notification preview | `GH_NOTIFY_TOGGLE_PREVIEW_KEY` | +| shifttab | resize the preview window | `GH_NOTIFY_RESIZE_PREVIEW_KEY` | +| shift↑↓ | scroll the preview up/ down | | +| ctrla | mark all displayed notifications as read and reload | `GH_NOTIFY_MARK_ALL_READ_KEY` | +| ctrlb | browser | `GH_NOTIFY_OPEN_BROWSER_KEY` | +| ctrld | view diff | `GH_NOTIFY_VIEW_DIFF_KEY` | +| ctrlp | view diff in patch format | `GH_NOTIFY_VIEW_PATCH_KEY` | +| ctrlr | reload | `GH_NOTIFY_RELOAD_KEY` | +| ctrlt | mark the selected notification as read and reload | `GH_NOTIFY_MARK_READ_KEY` | +| ctrlx | write a comment with the editor and quit | `GH_NOTIFY_COMMENT_KEY` | +| esc | quit | | ### Table Format @@ -100,6 +100,19 @@ export FZF_DEFAULT_OPTS=" --bind 'ctrl-w:preview-half-page-up,ctrl-s:preview-half-page-down'" ``` +You can also customize the keybindings created by this extension to avoid conflicts with +the ones defined by `fzf`. For example, change `ctrl-p` to `ctrl-u`: + +```sh +GH_NOTIFY_VIEW_PATCH_KEY="ctrl-u" gh notify +``` + +**NOTE:** The assigned key must be a valid key listed in the `fzf` man page: + +```sh +man --pager='less -p "^\s+AVAILABLE_KEYS"' fzf +``` + ### GitHub Command Line Tool (gh) In the `gh` tool's config file, you can specify your preferred editor. This is particularly useful when you use the ctrlx hotkey to comment on a notification. From f84880fecbe1dc18ad81fea63953323979177880 Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Tue, 16 Jul 2024 09:40:15 +0200 Subject: [PATCH 4/7] chore: move env variables up --- gh-notify | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/gh-notify b/gh-notify index 0eb38c4..6b43bcc 100755 --- a/gh-notify +++ b/gh-notify @@ -15,18 +15,6 @@ set -o errexit -o nounset -o pipefail # The minimum fzf version that the user needs to run all interactive commands. MIN_FZF_VERSION="0.29.0" - -# export variables for use in child processes -# https://docs.github.com/en/rest/overview/api-versions -export GH_REST_API_VERSION="X-GitHub-Api-Version:2022-11-28" -# Enable terminal-style output even when the output is redirected. -export GH_FORCE_TTY=1 - -# The maximum number of notifications per page (set by GitHub) -export GH_NOTIFY_PER_PAGE_LIMIT=50 -# Assign 'GH_NOTIFY_DEBUG_MODE' with 'true' to see more information -export GH_NOTIFY_DEBUG_MODE=${GH_NOTIFY_DEBUG_MODE:-false} - # Customize the fzf keys using environment variables : "${GH_NOTIFY_MARK_ALL_READ_KEY:=ctrl-a}" : "${GH_NOTIFY_OPEN_BROWSER_KEY:=ctrl-b}" @@ -40,6 +28,17 @@ export GH_NOTIFY_DEBUG_MODE=${GH_NOTIFY_DEBUG_MODE:-false} : "${GH_NOTIFY_TOGGLE_PREVIEW_KEY:=tab}" : "${GH_NOTIFY_TOGGLE_HELP_KEY:=?}" +# export variables for use in child processes +# https://docs.github.com/en/rest/overview/api-versions +export GH_REST_API_VERSION="X-GitHub-Api-Version:2022-11-28" +# Enable terminal-style output even when the output is redirected. +export GH_FORCE_TTY=1 + +# The maximum number of notifications per page (set by GitHub) +export GH_NOTIFY_PER_PAGE_LIMIT=50 +# Assign 'GH_NOTIFY_DEBUG_MODE' with 'true' to see more information +export GH_NOTIFY_DEBUG_MODE=${GH_NOTIFY_DEBUG_MODE:-false} + if $GH_NOTIFY_DEBUG_MODE; then export gh_notify_debug_log="${BASH_SOURCE%/*}/gh_notify_debug.log" From f6f12cb8dff18e238c94b205ca622856a5fa7d00 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 16 Jul 2024 00:48:41 -0700 Subject: [PATCH 5/7] ci: try pull_request_target event --- .github/workflows/code-quality.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/code-quality.yml b/.github/workflows/code-quality.yml index ccab02f..3c7fc2b 100644 --- a/.github/workflows/code-quality.yml +++ b/.github/workflows/code-quality.yml @@ -3,7 +3,7 @@ name: code-quality on: push: branches: [main] - pull_request: + pull_request_target: workflow_dispatch: jobs: code-quality: From 4b016d2a9cd674afa16916328eee23e6c30b5a08 Mon Sep 17 00:00:00 2001 From: Ben Elan Date: Tue, 16 Jul 2024 00:50:06 -0700 Subject: [PATCH 6/7] chore: move keybinds back down --- gh-notify | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/gh-notify b/gh-notify index 6b43bcc..bcbac43 100755 --- a/gh-notify +++ b/gh-notify @@ -15,6 +15,13 @@ set -o errexit -o nounset -o pipefail # The minimum fzf version that the user needs to run all interactive commands. MIN_FZF_VERSION="0.29.0" + +# export variables for use in child processes +# https://docs.github.com/en/rest/overview/api-versions +export GH_REST_API_VERSION="X-GitHub-Api-Version:2022-11-28" +# Enable terminal-style output even when the output is redirected. +export GH_FORCE_TTY=1 + # Customize the fzf keys using environment variables : "${GH_NOTIFY_MARK_ALL_READ_KEY:=ctrl-a}" : "${GH_NOTIFY_OPEN_BROWSER_KEY:=ctrl-b}" @@ -28,12 +35,6 @@ MIN_FZF_VERSION="0.29.0" : "${GH_NOTIFY_TOGGLE_PREVIEW_KEY:=tab}" : "${GH_NOTIFY_TOGGLE_HELP_KEY:=?}" -# export variables for use in child processes -# https://docs.github.com/en/rest/overview/api-versions -export GH_REST_API_VERSION="X-GitHub-Api-Version:2022-11-28" -# Enable terminal-style output even when the output is redirected. -export GH_FORCE_TTY=1 - # The maximum number of notifications per page (set by GitHub) export GH_NOTIFY_PER_PAGE_LIMIT=50 # Assign 'GH_NOTIFY_DEBUG_MODE' with 'true' to see more information From 4e14713c3e0c9ee832b97534b2b7157d707dfcda Mon Sep 17 00:00:00 2001 From: LangLangBart <92653266+LangLangBart@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:56:03 +0200 Subject: [PATCH 7/7] chore: export environment variables for print_help_text --- gh-notify | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gh-notify b/gh-notify index bcbac43..9b0ff20 100755 --- a/gh-notify +++ b/gh-notify @@ -22,6 +22,8 @@ export GH_REST_API_VERSION="X-GitHub-Api-Version:2022-11-28" # Enable terminal-style output even when the output is redirected. export GH_FORCE_TTY=1 +# Need to be exported because of its use in the 'print_help_text' function +set -o allexport # Customize the fzf keys using environment variables : "${GH_NOTIFY_MARK_ALL_READ_KEY:=ctrl-a}" : "${GH_NOTIFY_OPEN_BROWSER_KEY:=ctrl-b}" @@ -34,12 +36,12 @@ export GH_FORCE_TTY=1 : "${GH_NOTIFY_VIEW_KEY:=enter}" : "${GH_NOTIFY_TOGGLE_PREVIEW_KEY:=tab}" : "${GH_NOTIFY_TOGGLE_HELP_KEY:=?}" +set +o allexport # The maximum number of notifications per page (set by GitHub) export GH_NOTIFY_PER_PAGE_LIMIT=50 # Assign 'GH_NOTIFY_DEBUG_MODE' with 'true' to see more information export GH_NOTIFY_DEBUG_MODE=${GH_NOTIFY_DEBUG_MODE:-false} - if $GH_NOTIFY_DEBUG_MODE; then export gh_notify_debug_log="${BASH_SOURCE%/*}/gh_notify_debug.log"