feat(logging): add C5 — Logging & Capture opinionated guard #39
Reference in New Issue
Block a user
Delete Branch "feat/logging-toggle-c5"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
__fish_config_op_loggingas C5 — Logging & Capture in the opinionated-component guard system, controlling all scrollback and AUR-helper logging--on-variableevent handlers: toggling the variable immediately removes/restores paru/yay wrappers and creates/removes a sentinel file in every running shellwatcher.pychecks the sentinel file ($XDG_CONFIG_HOME/fish/.logging_disabled) at the top ofsave_scrollback_safely, so the Python-side capture also respects the toggle without any subprocess coordination__fish_config_op_overrides) controls thesmart_exitwrapper itself; C5 controls only the scrollback-capture block inside it; master__fish_config_opinionated=0disables all five categories at onceFiles Changed
.gitignore.logging_disabledsentinelfunctions/__fish_config_sync_logging.fishfunctions/__fish_config_logging_changed.fish--on-variable __fish_config_op_loggingevent handlerfunctions/__fish_config_opinionated_changed.fish--on-variable __fish_config_opinionatedevent handlerfunctions/smart_exit.fishconf.d/paru-wrapper.fishconf.d/yay-wrapper.fishdocs/fish-config.md__fish_config_op_loggingto variable table; update category countREADME.mdNote:
~/.config/kitty/watcher.pywas updated in a separate commit to the kitty config repo (commit3f7eab7).Manual Verification
set -U __fish_config_op_logging 0— confirm~/.local/bin/paru(if present) is removed and~/.config/fish/.logging_disabledis createdset -Ue __fish_config_op_logging— confirm sentinel is removed and paru wrapper is regenerated (if/usr/bin/paruexists)exit— confirm shell exits cleanly without attempting scrollback capture~/.terminal_history/set -U __fish_config_opinionated 0— confirm master switch also disables C5 (sentinel created, wrappers removed)help config opinionated— confirm__fish_config_op_loggingappears in the variable table