Use menu behavior when completing doc

We can complete every valid argument.
This commit is contained in:
Johannes Altmanninger 2022-07-29 20:47:57 +02:00
parent 69053d9623
commit 0b5dcf062f

View File

@ -160,7 +160,7 @@ define-command -params 0..2 \
' < $page | tr '[A-Z ]' '[a-z-]' ' < $page | tr '[A-Z ]' '[a-z-]'
fi;; fi;;
esac esac
} \ } -menu \
doc -docstring %{ doc -docstring %{
doc <topic> [<keyword>]: open a buffer containing documentation about a given topic doc <topic> [<keyword>]: open a buffer containing documentation about a given topic
An optional keyword argument can be passed to the function, which will be automatically selected in the documentation An optional keyword argument can be passed to the function, which will be automatically selected in the documentation