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
Right now, the Cryptol repl supports tab completion within the :prove and :exhaust commands, but not for :check or :type. It would be a very nice quality-of-life improvement to add completion!
I think the reason that :t and :check fail to autocomplete is that there are multiple commands that have them as prefixes:
:t: :type and :time
:check: :check and :check-docstrings
As such, Cryptol refuses to commit to the autocompletion strategy for either command.
One way to improve this: if you have typed :check rev, then arguably you want the :check command, not :check-docstrings, due to the fact that there is a space after the :check prefix. If we see a situation where the a user has typed :<CMD> ... and <CMD> exactly matches a defined command (e.g., :check), then we should commit to that approach over any other ones (e.g., :check-docstrings).
I think this approach would also solve the :type versus :time problem. This is because Cryptol explicitly defines :t as an alias of :type, so :t ... should unambiguously pick :type's autocompletion strategy.
Right now, the Cryptol repl supports tab completion within the
:prove
and:exhaust
commands, but not for:check
or:type
. It would be a very nice quality-of-life improvement to add completion!Related issue #781.
The text was updated successfully, but these errors were encountered: