From be9d17b08ac25f98e4a032fe793c733212d21ec3 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 5 Aug 2020 17:51:47 +0200 Subject: [PATCH] help: Add the other pages --- share/completions/help.fish | 6 ++++++ share/functions/help.fish | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/share/completions/help.fish b/share/completions/help.fish index 583f9a766..e6197cb5b 100644 --- a/share/completions/help.fish +++ b/share/completions/help.fish @@ -99,3 +99,9 @@ complete -c help -x -a tut-universal -d 'Universal Variables' complete -c help -x -a tut-variables -d Variables complete -c help -x -a tut-why_fish -d 'Why fish?' complete -c help -x -a tut-wildcards -d Wildcards + +# Other pages +complete -c help -x -a changelog -d "Fish's CHANGELOG" +complete -c help -x -a completions -d "How to write completions" +complete -c help -x -a faq -d "Frequently Asked Questions" +complete -c help -x -a fish-for-bash-users -d "Differences from bash" diff --git a/share/functions/help.fish b/share/functions/help.fish index 9fc53312c..bc3285934 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -125,6 +125,14 @@ function help --description 'Show help for the fish shell' set fish_help_page "tutorial.html#"(string sub -s 5 -- $fish_help_item | string replace -a -- _ -) case tutorial set fish_help_page "tutorial.html" + case changelog + set fish_help_page changelog.html + case completions + set fish_help_page completions.html + case faq + set fish_help_page faq.html + case fish-for-bash-users + set fish_help_page fish_for_bash_users.html case '' set fish_help_page "index.html" case "*"