Moved partial completion menu next into new menu event
Addresses nushell/nushell#14152 (more context can also be found in #828 ). Creates a separate event, MenuNextComplete, that not only selects the next element but also attempts to partially complete the selection. Reverts MenuNext to simply advancing the next element and quick completing if possible.
The nushell PR to use this new event can be found at nushell/nushell#15063
is there a use case for sending MenuNext without completing? not sure if we should have a new event for this, or just change the behavior of MenuNext. but i'm not super familiar with the completion stuff. (cc @blindFS, @ysthakur)
@132ikl I'd like this because when the only valid options are say foo and foooo, a typical bash behavior of f#tab would complete the repl text to foo without moving the menu item towards foooo
Sorry I didn't check the code, it seems different from what I thought.
@uek-1 I was thinking about a new event with only the partial match blabla side effects (which will cause the repl text to change?), and no next item move. And we can set tab to be any of those events handled first, so the foo example will behave as expected?