Skip to content
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

Fix tab completion for :t and :check #1781

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RyanGlScott
Copy link
Contributor

If the user types :<CMD> ... and <CMD> matches a defined command exactly, then commit to that command's tab completion. (Previously, the tab completion logic would consider all possible commands for which <CMD> is a prefix, but this is silly when you have an exact match with an existing command.)

Fixes #1780.

If the user types `:<CMD> ...` and `<CMD>` matches a defined command exactly,
then commit to that command's tab completion. (Previously, the tab completion
logic would consider all possible commands for which `<CMD>` is a prefix, but
this is silly when you have an exact match with an existing command.)

Fixes #1780.
@RyanGlScott RyanGlScott added the command-line-repl Related to Cryptol's text-based UI label Dec 6, 2024
@RyanGlScott RyanGlScott requested review from yav and marsella December 6, 2024 15:18
@RyanGlScott RyanGlScott force-pushed the T1780-fix-tab-completion-for-t-and-check branch from 7c21461 to 9275d1b Compare December 9, 2024 16:53
@RyanGlScott RyanGlScott force-pushed the T1780-fix-tab-completion-for-t-and-check branch from 9275d1b to e762379 Compare December 9, 2024 17:18
@RyanGlScott RyanGlScott force-pushed the T1780-fix-tab-completion-for-t-and-check branch from e762379 to 18cd8eb Compare December 9, 2024 17:32
@RyanGlScott RyanGlScott force-pushed the T1780-fix-tab-completion-for-t-and-check branch from 18cd8eb to 5312228 Compare December 9, 2024 17:41
This adds a dedicated `cryptol-api-tests` test suite which exercises properties
of the Cryptol API that are inconvenient to check with the Cryptol executable
itself (e.g., properties of the REPL's tab completion). I have also rejigged
the CI so that `cryptol-api-tests` is run on each CI run.
@RyanGlScott RyanGlScott force-pushed the T1780-fix-tab-completion-for-t-and-check branch from 5312228 to 0e8ddd1 Compare December 9, 2024 18:15
This ensures, among other things, that `:check` completes to `:check` (not
`:check `, as was the case before). I have added even more regression tests to
check for this.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command-line-repl Related to Cryptol's text-based UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tab completion on check and friends
2 participants