Skip to content

Correct the ViBackwardWord description and fix a typo - #5199

Open
xiea-edu wants to merge 2 commits into
PowerShell:masterfrom
xiea-edu:docfix
Open

Correct the ViBackwardWord description and fix a typo#5199
xiea-edu wants to merge 2 commits into
PowerShell:masterfrom
xiea-edu:docfix

Conversation

@xiea-edu

@xiea-edu xiea-edu commented Aug 21, 2026

Copy link
Copy Markdown

PR Summary

Fix the incorrect key handler description for ViBackwardWord so Get-PSReadLineKeyHandler accurately reports that it moves the cursor to the beginning of the current or previous word, and correct a typo in the ViReplaceLine description.

The existing embedded resource incorrectly says that ViBackwardWord deletes text and enters insert mode. This updates both the resource value and its generated designer comment to match the command's actual behavior.

Additionally, the ViReplaceLine description misspells "Replace" as "Repace". This corrects the resource value and its generated designer comment.

Validation:

  • Parsed PSReadLineResources.resx successfully as XML.
  • Verified that the resource values and generated designer comments agree.
  • Ran git diff --check.
  • Built the Debug module successfully with .NET SDK 8.0.415 (3 tasks, 0 errors, 0 warnings).
  • Imported the built module in a clean PowerShell process and verified that <b> resolves to ViBackwardWord with the corrected description.
  • Verified that <S> and <c,c> resolve to ViReplaceLine with the corrected description.

PR Checklist

  • PR has a meaningful title
    • Use the present tense and imperative mood when describing your changes
  • Summarized changes
  • Make sure you've added one or more new tests
  • Make sure you've tested these changes in terminals that PowerShell is commonly used in (i.e. conhost.exe, Windows Terminal, Visual Studio Code Integrated Terminal, etc.)
  • User-facing changes
    • Not Applicable
    • OR
    • Documentation needed at PowerShell-Docs
      • Doc Issue filed:
Microsoft Reviewers: Open in CodeFlow

@xiea-edu

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@xiea-edu
xiea-edu marked this pull request as ready for review August 21, 2026 03:14
@xiea-edu xiea-edu changed the title Correct the ViBackwardWord description Correct the ViBackwardWord description and fix a typo Aug 21, 2026
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.

1 participant