feat(config): add sub-category granularity to opinionated components #107

Merged
rootiest merged 30 commits from worktree-opinionated-subcategories into main 2026-08-19 01:42:26 +00:00
3 changed files with 8 additions and 5 deletions
Showing only changes of commit db21efee0c - Show all commits
+3 -1
View File
@@ -62,7 +62,8 @@ set -g __fish_config_op_registry_keys \
tmux-logging: \ tmux-logging: \
top: \ top: \
tricks:aliases-tricks \ tricks:aliases-tricks \
tricks:overrides-tricks \ tricks:tricks-bang \
tricks:tricks-manpager \
upgrade: \ upgrade: \
wakatime:wakatime-autoexec \ wakatime:wakatime-autoexec \
wakatime:wakatime-hook \ wakatime:wakatime-hook \
@@ -127,6 +128,7 @@ set -g __fish_config_op_registry_values \
"logging/multiplexer-capture" \ "logging/multiplexer-capture" \
"aliases/monitor" \ "aliases/monitor" \
"aliases/filesystem" \ "aliases/filesystem" \
"overrides/key-bindings" \
"overrides/environment" \ "overrides/environment" \
"integrations/pkg-upgrade" \ "integrations/pkg-upgrade" \
"autoexec/telemetry" \ "autoexec/telemetry" \
+4 -3
View File
@@ -9,7 +9,8 @@
# COMPONENT # COMPONENT
# site aliases-tricks: aliases/filesystem # site aliases-tricks: aliases/filesystem
# site overrides-tricks: overrides/environment # site tricks-manpager: overrides/environment
# site tricks-bang: overrides/key-bindings
## Environment setup ## Environment setup
# Apply .profile: use this to put fish compatible .profile stuff in # Apply .profile: use this to put fish compatible .profile stuff in
@@ -28,7 +29,7 @@ end
# Format man pages using bat (only if bat is installed) # Format man pages using bat (only if bat is installed)
# Overriding $MANPAGER is opinionated (C3 overrides) # Overriding $MANPAGER is opinionated (C3 overrides)
if type -q bat; and __fish_config_op_enabled (status basename) overrides-tricks if type -q bat; and __fish_config_op_enabled (status basename) tricks-manpager
set -gx MANROFFOPT -c set -gx MANROFFOPT -c
set -gx MANPAGER "sh -c 'col -bx | bat -l man -p'" set -gx MANPAGER "sh -c 'col -bx | bat -l man -p'"
end end
@@ -41,7 +42,7 @@ set -gx __done_notification_urgency_level low
# Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang # Functions needed for !! and !$ https://github.com/oh-my-fish/plugin-bang-bang
# The bang-bang system is opinionated (C3 overrides) and is gated atomically # The bang-bang system is opinionated (C3 overrides) and is gated atomically
# here, in conf.d/abbr.fish, conf.d/puffer.fish, and functions/expand_*.fish. # here, in conf.d/abbr.fish, conf.d/puffer.fish, and functions/expand_*.fish.
if __fish_config_op_enabled (status basename) overrides-tricks if __fish_config_op_enabled (status basename) tricks-bang
function __history_previous_command function __history_previous_command
switch (commandline -t) switch (commandline -t)
case "!" case "!"
+1 -1
View File
@@ -7,7 +7,7 @@
# ───────────────────── Opinionated component guards ───────────────────── # ───────────────────── Opinionated component guards ─────────────────────
# Opinionated components (AGENTS.md Task #3) are wrapped in # Opinionated components (AGENTS.md Task #3) are wrapped in
# __fish_config_op_enabled <category> guards throughout this file and conf.d/. # __fish_config_op_enabled <identity> [<site>] guards throughout this file and conf.d/.
# The helper always evaluates the master switch __fish_config_opinionated # The helper always evaluates the master switch __fish_config_opinionated
# first (falsy disables everything), then the per-category opt-out variable: # first (falsy disables everything), then the per-category opt-out variable:
# __fish_config_op_aliases C1 — command shadows / flag injection # __fish_config_op_aliases C1 — command shadows / flag injection