Skip to content

Conversation

midichef
Copy link
Contributor

@midichef midichef commented Sep 10, 2025

The input palette has a problem after hitting Enter or Space when the typed input has narrowed the matches to nothing. What gets chosen is the previous best match, shown earlier when there were matches.

For example, hit Space and hit zz, there are no matches displayed. When you hit Enter, what gets input is freeze-col, the top match for z.

This PR changes Enter to reject the command with the warning: no choice matching zz.
It changes Space in the input palette (when matching multiple inputs with multiple=True, like for choosing aggregators after +) to keep the input and to let the user keep typing.

Previously it would accept the top matching choice, from the
earlier matches to shorter input.
Copy link
Owner

@saulpw saulpw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, this makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants