JuliaLang / julia

The Julia Programming Language
https://julialang.org/
MIT License
45.43k stars 5.45k forks source link

REPL help `?` fuzzier / startswith matching #51428

Open chris-b1 opened 11 months ago

chris-b1 commented 11 months ago

This is a relatively minor workflow thing, but has happened to me enough times to raise this

Sometimes partially through typing a function call I want to access help, but it doesn't work with a partial parameter list. E.g.

julia> my_function(param_a, param_b   # stop, what is the param order again?

# <home> back to beginning of call and enter a ?

help?> my_function(param_a, param_b 
search:

Couldn't find 'my_function(param_a, param_b'
Perhaps you meant my_function
  No documentation found.

  Binding 'my_function(param_a, param_b' does not exist.

#  need to delete off of the partial parameter list

help?> my_function
search: my_function

  my documentation

I think it could be non-ambigous to search help based on function names with a partial parameter list?

chris-b1 commented 11 months ago

loosely related to #36460