aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/help.fish
diff options
context:
space:
mode:
authorGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2012-12-19 09:58:10 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-12-26 21:09:50 -0800
commit27e4ece24f0913e561ad7cddc2ff91dc1ce6be30 (patch)
tree37e995e30bb0c8039ba727a7c3989e86e5cb5ba1 /share/functions/help.fish
parentfc898eff65a19f6e0869a189e405a7bc8b44ac7e (diff)
add __fish_print_commands and use it for help
Diffstat (limited to 'share/functions/help.fish')
-rw-r--r--share/functions/help.fish7
1 files changed, 1 insertions, 6 deletions
diff --git a/share/functions/help.fish b/share/functions/help.fish
index 4164c01a..88b87dbb 100644
--- a/share/functions/help.fish
+++ b/share/functions/help.fish
@@ -92,12 +92,7 @@ function help --description "Show help for the fish shell"
set fish_help_page difference.html
case globbing
set fish_help_page "index.html\#expand"
-
- # This command substitution should locate all commands with
- # documentation. It's a bit of a hack, since it relies on the
- # Doxygen markup format to never change.
-
- case (sed -n 's/.*<h[12]><a class="anchor" \(id\|name\)="\([^"]*\)">.*/\2/p' $__fish_help_dir/commands.html)
+ case (__fish_print_commands)
set fish_help_page "commands.html\#$fish_help_item"
case $help_topics
set fish_help_page "index.html\#$fish_help_item"