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
NextWord
handler to accept the next suggestion word for consistently using theCtrl+RightArrow
keyCtrl+RightArrow
now moves the cursor word-by-word for both editing the line and accepting suggestionsNextWord
handler did not operate on the suggestion text when the cursor was at the end of the lineNextWord
is now an alternative to the less consistent custom bindingForwardCharAndAcceptNextSuggestionWord
defined in theSamplePSReadlineProfile.ps1
scriptForwardCharAndAcceptNextSuggestionWord
is less consistent because it mixes word movement, line movement, and character movement in a single keyNextWord
is now consistent because theCtrl+RightArrow
key moves the cursor uniformly in the editing and suggestion casesNextWord
is not in the list of the advertised functionsCtrl+RightArrow
key in WindowsPR Checklist
Microsoft Reviewers: Open in CodeFlow