Skip to content

Support AcceptAndGetNext for Forward/ReverseSearchHistory - #1

Closed
sharpchen wants to merge 1 commit into
accept-and-get-nextfrom
accept-and-get-next-for-histroy-search
Closed

sharpchen wants to merge 1 commit into
accept-and-get-nextfrom
accept-and-get-next-for-histroy-search

Conversation

@sharpchen

Copy link
Copy Markdown
Owner

PR Summary

Resolves PowerShell#514
Depends on PowerShell#5208

The solution is simple, just assign _getNextHistoryIndex a value when searching(UpdateHistoryDuringInteractiveSearch), and the value will be used to load next history on the next loop.

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:

@sharpchen
sharpchen marked this pull request as draft September 13, 2026 16:34
@sharpchen sharpchen closed this Sep 13, 2026
@sharpchen
sharpchen deleted the accept-and-get-next-for-histroy-search branch September 13, 2026 16:41
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