Windows: Make the Ctrl+RightArrow key accepts the next suggestion word in addition to its default by-word movement.
#4290
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
NextWordhandler to accept the next suggestion word for consistently using theCtrl+RightArrowkeyCtrl+RightArrownow moves the cursor word-by-word for both editing the line and accepting suggestionsNextWordhandler did not operate on the suggestion text when the cursor was at the end of the lineNextWordis now an alternative to the less consistent custom bindingForwardCharAndAcceptNextSuggestionWorddefined in theSamplePSReadlineProfile.ps1scriptForwardCharAndAcceptNextSuggestionWordis less consistent because it mixes word movement, line movement, and character movement in a single keyNextWordis now consistent because theCtrl+RightArrowkey moves the cursor uniformly in the editing and suggestion casesNextWordis not in the list of the advertised functionsCtrl+RightArrowkey in WindowsPR Checklist
Microsoft Reviewers: Open in CodeFlow