feat(config-help): add --html and --man flags; add config-update function #36
Reference in New Issue
Block a user
Delete Branch "feat/config-help-flags-and-updater"
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 --html/-w: opensdocs/html/index.htmlin the default browser using smart browser detection — queries thex-scheme-handler/httpsMIME entry viaxdg-mimeto find the real browser binary, falls back through known binaries (firefox, chromium, vivaldi, etc.), thenxdg-openas last resort. Bypassesxdg-open'stext/htmlMIME lookup which could route to non-browser apps (e.g. ebook readers).config-help --man/-m: opens the compileddocs/fish-config.1man page directly viaman -l, skipping the pager fallback chain.config-update: new function that pulls the latest config from the hard-coded upstream URL (https://git.rootiest.dev/rootiest/fish-config.git) without requiring a configured git remote. Git output is suppressed; colored messages report fetch/merge status. Supports--dry-run(preview only) and--force(auto-stash local changes).Manual Verification
config-help --helpshows--htmland--manin USAGE, ARGUMENTS, and EXAMPLESconfig-help --htmlprints "Opening HTML docs in <browser>…" and opensdocs/html/index.htmlin a web browser (not an ebook reader)config-help --manopens the fish-config man page in the terminalconfig-help --manprints an error ifdocs/fish-config.1is missingconfig-update --dry-runfetches upstream and reports commits available without modifying anythingconfig-update(when already up to date) prints "✓ Already up to date."config-update --forceon a dirty tree stashes, pulls, and restores the stashconfig-updateon a dirty tree (without--force) warns and exits cleanly278dc6571ctode07040c16