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

Added partial completions to the MenuNext event #828

Merged
merged 2 commits into from
Sep 24, 2024

Conversation

uek-1
Copy link
Contributor

@uek-1 uek-1 commented Sep 17, 2024

This PR is meant to address a nushell specific issue (nushell/nushell#11251) about the tab button not partially completing suggestions if the menu is already open. I added partial completions to the MenuNext event after checking if they were enabled.

@fdncred fdncred merged commit 660a507 into nushell:main Sep 24, 2024
6 checks passed
@fdncred
Copy link
Contributor

fdncred commented Sep 24, 2024

Thanks!

@blindFS
Copy link
Contributor

blindFS commented Feb 6, 2025

I believe this is the cause of nushell #14152, or there're deeper bugs in the can_partially_complete (the naming is quite confusing TBH), How about we add a new event for that, and move it out from menu next, @uek-1 ?

@uek-1
Copy link
Contributor Author

uek-1 commented Feb 6, 2025

This seems to be a very similar same issue to #833 . The problem seems to be caused by IdeMenu's implementation of can_partially_complete calling update_values if quick completions are off, which resets the selection index to 0 (the first element). I'll get to work on moving this out into a new menu event!

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.

3 participants