feat(help): integrate config-help into fish's help command #33
Reference in New Issue
Block a user
Delete Branch "feat/help-config-integration"
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
config_help→config-help(kebab-case, matching fish convention for multi-word functions)functions/help.fishwrapper that interceptshelp config [section]and forwards sub-topics toconfig-help; all otherhelptopics pass through to fish's built-in help unchangedREADME.mdanddocs/fish-config.mdto usehelp configas the preferred syntax throughout, with a note thatconfig-helpstill works directlyDetails
The new
helpwrapper backs up the native fishhelpfunction as__original_helpon first load (sourcing it from$__fish_data_dirto trigger lazy-loading correctly), then delegateshelp config [...]toconfig-helpand everything else to the original. This makes offline docs feel like a natural extension of fish's built-in help system — users who already knowhelp stringorhelp forwill intuitively tryhelp config.Manual Verification
help config— offline manual opens in the configured pagerhelp config keybindings— pager opens at the Key Bindings sectionhelp config pkg— pager jumps to the pkg function entryhelp string— standard fish documentation forstringopens (not intercepted)help for— standard fish documentation opens correctlyconfig-helpdirectly — still works as beforeconfig-help keybindingsdirectly — section jump still worksfunctions/config_help.fishis gone andfunctions/config-help.fishexists