You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be nice to search for a specific kind (value, type, module, ...).
I take the opportunity of suggesting a syntax for this :)
valx : t(** word *)
Search a value with name containing x and type containing t and docstring containing work (the "docstring" search is not really part of the proposal for this particular issue, but I could not resist having a "complete" example!)
Some other examples with different kinds:
typenamemoduleModule_namemodule type Module_type_nametypet = Constructor_name : int -> ttype_ = Constructor_nametype_ = { field_name }
type_ = { field_name : int -> int }
exceptionException_nameexceptionException_name : string -> stringclassclass_nameclasstypeclass_type_namemethodmethod_name : t
More complex but very satisfying syntax for me!
The text was updated successfully, but these errors were encountered:
Ha yes that would be cool! Perhaps we could start with the prefix kind syntax? (the constructors / record fields will be harder to support, but are also less likely to be useful (?))
One thing to keep in mind is that some keywords might be useful search terms (for example print exception to find Printexc), what do you think of toggling this only when the keyword is at the very beginning of the query? (such that a savvy user can always prefix them with a space to recover a text query, e.g. type)
It would be nice to search for a specific kind (value, type, module, ...).
I take the opportunity of suggesting a syntax for this :)
Search a value with name containing
x
and type containingt
and docstring containingwork
(the "docstring" search is not really part of the proposal for this particular issue, but I could not resist having a "complete" example!)Some other examples with different kinds:
More complex but very satisfying syntax for me!
The text was updated successfully, but these errors were encountered: