feat(functions): derive the shared help palette from the fish theme #159
No Reviewers
Labels
Clear labels
Area/CI
Area/Completions
Area/Components
Area/Config
Area/Docs
Area/Functions
Area/Integrations
Area/Prompt & Theme
Area/Scripts
Area/Tests
Compat/Breaking
Kind/Bug
Kind/Chore
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Performance
Kind/Refactor
Kind/Security
Kind/Testing
good first issue
help wanted
.github/workflows and repository automation
completions/ - tab-completion scripts
The opinionated-component system (C1-C6)
config.fish and conf.d/ - startup and environment
docs/manual/ and the generated manual, man page, and site
functions/ - user-facing functions and helpers
integrations/ - third-party tool wiring
themes/ and prompt appearance
scripts/ - standalone helper scripts
tests/ - the syntax lint and functional suite
Breaking change that won't be backward compatible
Something is not working
Tooling, dependencies, and housekeeping
Documentation changes
Improve existing functionality
New functionality
Makes existing behavior faster or lighter
Restructures code without changing behavior
This is security issue
Issue or pull request related to testing
Well-scoped and self-contained; a good place to start
Maintainer is looking for someone to pick this up
Priority
Critical
1
The priority is critical
Priority
High
2
The priority is high
Priority
Medium
3
The priority is medium
Priority
Low
4
The priority is low
Reviewed
Confirmed
1
Issue has been confirmed
Reviewed
Duplicate
2
This issue or pull request already exists
Reviewed
Invalid
3
Invalid issue
Reviewed
Won't Fix
3
This issue won't be fixed
Status
Blocked
1
Something is blocking this issue or pull request
Status
Need More Info
2
Feedback is required to reproduce issue or to continue work
Status
Abandoned
3
Somebody has started to work on this but abandoned work
Milestone
No items
No Milestone
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: rootiest/fish-config#159
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
__fish_palette'sc_cmd/c_flag/c_arg/c_dimnow read fish's own highlighter variables (fish_color_command/option/param/autosuggestion) when set, andc_headreads the pager'sfish_pager_color_prefix, so--helptext matches whatever the user's actual theme renders at the prompt instead of a fixed guess at it. Each role keeps its previous static value as a fallback (e.g. a--no-configscript, or the theme variable being unset or empty).__fish_help_header's title/section colors andconfig-help's,gi's, andgit-clean's own hand-rolled--helpblocks through the palette instead of their hardcodedset_colorcalls, which fixes the--help-vs-actual-prompt color mismatch across most of the config's functions in one place (__fish_help_headerbacks the majority of user-facing--helpoutput).dockup,fish-deps,pkg,play-media,dng2avif) were coloring their<placeholder>/[bracket]argument text withc_diminstead ofc_arg, andscrub's "Aggressive Targets:" heading was still a hardcodedset_colorcall sitting next to an otherwise-converted help block.Test plan
fish -non every changed filepython3 docs/verify-manual.py(84/84)fish tests/run-tests.fish(758/758 assertions, including the palette-role and colored-help-output checks, and the 250-file indent lint)--helpforgi,git-clean,scrub,dockup,fish-deps,pkg,play-media, andconfig-helpin an interactive Catppuccin Mocha shell — confirmed theme-correct colors (command=blue, flag=green, arg=flamingo/pink, heading=bold mauve) and no runtime errors--no-config(no theme variables set)