Skip to content

Prompt history on arrow press - #2138

Open
AntekOlszewski wants to merge 3 commits into
spectreconsole:mainfrom
AntekOlszewski:prompt-history-on-arrow-press
Open

Prompt history on arrow press#2138
AntekOlszewski wants to merge 3 commits into
spectreconsole:mainfrom
AntekOlszewski:prompt-history-on-arrow-press

Conversation

@AntekOlszewski

Copy link
Copy Markdown
Contributor

Fixes #158

  • I have read the Contribution Guidelines
  • I have checked that there isn't already another pull request that solves the above issue
  • All newly added code is adequately covered by tests
  • All existing tests are still running without errors

Changes

Added InputHistory to AnsiConsole and retriving history input on up/down arrow in AnsiConsoleExtensions.Input
Reopening the previous PR after resolving conflicts.

Previous PR: #2109

# Conflicts:
#	src/Spectre.Console.Tests/Unit/Prompts/TextPromptTests.cs
#	src/Spectre.Console/Extensions/AnsiConsoleExtensions.Input.cs
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.

Up key listener for prompt history

1 participant