-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brief and extensive docs with ?
and ??
#25930
Comments
Users might expect |
Brief docs with Additionally, if the brief display became standard it would be a forcing function for the convention of supplying a quick summary sentence at the start of a docstring, which would lend itself well to tooling (e.g. hover a function name in your editor to see a tooltip with the signature and brief description). |
If this is implemented, it would be nice to have separate REPL-modes for brief and full help. E.g. typing |
I do think that |
It would be best if that was customizable, eg for opening nicely formatted HTML in a browser. |
Is it really needed? Some users know some functions to have long text, but for new users all functions potentially have long docs. Wouldn't something simple like this be ok:
That last line wouldn't actually display for this function, as there's nothing more to display or any function with shorter text than this or 6-8 lines. But for longer ones, if would be there in bold or other color, and be overwritten with the next few lines (or all?) when not-q pressed. Sometimes I would like docs to display as with, i.e. take the full screen and then disappear and safe screen space (this could be an ENV option, to pipe to e.g. less and potentially a threshold length that would trigger this):
|
A level-1 header "Extended help" indicates that the content that follows requires `??foo` rather than just `?foo`.
A level-1 header "Extended help" indicates that the content that follows requires `??foo` rather than just `?foo`.
A level-1 header "Extended help" indicates that the content that follows requires `??foo` rather than just `?foo`.
Most methods have short documentation, but there are a few exceptions. It might be nice to have
??foo
mean something like "print only the first few lines of help forfoo
," basically for experienced users to remind themselves what arguments should be supplied in what order. EDIT: or the opposite, long docs with??
and short docs with?
.Inspired by some extremely thorough (and useful) documentation in JuliaImages/ImageFiltering.jl#54.
The text was updated successfully, but these errors were encountered: