refactor(config): migrate C5 logging call sites to self-identifying guard

This commit is contained in:
2026-08-18 02:22:31 -04:00
parent e02919de21
commit c3a2e35465
6 changed files with 33 additions and 6 deletions
+10
View File
@@ -8,7 +8,9 @@
set -g __fish_config_op_registry_keys \
__auto_source_fallback_venv: \
__fish_config_sync_logging: \
__fish_user_dots_link: \
_zellij_dump_log: \
agy: \
auto-pull: \
autopair: \
@@ -23,6 +25,8 @@ set -g __fish_config_op_registry_keys \
help: \
hist: \
key_bindings: \
kitty-logging: \
kitty-watcher-reminder: \
less: \
logs: \
ls: \
@@ -38,6 +42,7 @@ set -g __fish_config_op_registry_keys \
starship: \
tab: \
theme: \
tmux-logging: \
top: \
upgrade: \
yt-dlp: \
@@ -45,7 +50,9 @@ set -g __fish_config_op_registry_keys \
set -g __fish_config_op_registry_values \
"autoexec/venv" \
"logging/terminal-capture" \
"autoexec/sync" \
"logging/multiplexer-capture" \
"aliases/dev-tools" \
"autoexec/sync autoexec/sync" \
"overrides/key-bindings" \
@@ -60,6 +67,8 @@ set -g __fish_config_op_registry_values \
"aliases/shell-tools" \
"integrations/history-logs" \
"overrides/key-bindings" \
"logging/terminal-capture" \
"logging/terminal-capture" \
"aliases/shell-tools" \
"integrations/history-logs" \
"aliases/filesystem" \
@@ -75,6 +84,7 @@ set -g __fish_config_op_registry_values \
"overrides/prompt" \
"integrations/window-mgmt" \
"overrides/prompt" \
"logging/multiplexer-capture" \
"aliases/monitor" \
"integrations/pkg-upgrade" \
"aliases/network" \
+5 -1
View File
@@ -1,5 +1,9 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
# COMPONENT
# logging/terminal-capture
#
# C5 — Logging & Capture: a non-blocking, per-session reminder shown inside Kitty
# when the fish-config scrollback watcher is not yet set up. It never blocks the
@@ -10,7 +14,7 @@
status is-interactive; or exit
type -q kitty; or exit
set -q KITTY_WINDOW_ID; or exit
__fish_config_op_enabled __fish_config_op_logging; or exit
__fish_config_op_enabled (status basename); or exit
__fish_variable_check __fish_config_kitty_watcher_dismissed; and exit
__kitty_logging_has_watcher; and exit
+5 -1
View File
@@ -1,12 +1,16 @@
# Copyright (C) 2026 Rootiest
# SPDX-License-Identifier: AGPL-3.0-or-later
# COMPONENT
# logging/multiplexer-capture
#
# C5 — Logging & Capture: starts a pipe-pane log for the current tmux pane
# when fish launches inside a tmux session. Each fish shell gets its own
# timestamped log file in SCROLLBACK_HISTORY_DIR (default: ~/.terminal_history).
# Naming: tmux_<session>-w<window>-p<pane>_YYYY-MM-DD_HH-MM-SS.log
__fish_config_op_enabled __fish_config_op_logging; or exit
__fish_config_op_enabled (status basename); or exit
status is-interactive; or exit
type -q tmux; or exit
set -q TMUX; or exit