Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix command history cycling with DOWN ARROW key #18140

Closed
wants to merge 1 commit into from
Closed

Fix command history cycling with DOWN ARROW key #18140

wants to merge 1 commit into from

Conversation

Laiirton
Copy link

@Laiirton Laiirton commented Nov 3, 2024

Add support for cycling through command history using the DOWN ARROW key.

  • src/host/history.cpp

    • Add CycleCommandHistory method to handle the logic for cycling through command history.
    • Update Retrieve method to handle both UP ARROW and DOWN ARROW keys for navigating command history.
  • src/host/history.h

    • Add CycleCommandHistory method to the CommandHistory class.
    • Update Retrieve method declaration to handle the DOWN ARROW key.

For more details, open the Copilot Workspace session.

Add support for cycling through command history using the DOWN ARROW key.

* **src/host/history.cpp**
  - Add `CycleCommandHistory` method to handle the logic for cycling through command history.
  - Update `Retrieve` method to handle both UP ARROW and DOWN ARROW keys for navigating command history.

* **src/host/history.h**
  - Add `CycleCommandHistory` method to the `CommandHistory` class.
  - Update `Retrieve` method declaration to handle the DOWN ARROW key.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/terminal?shareId=XXXX-XXXX-XXXX-XXXX).
@Laiirton Laiirton closed this Nov 3, 2024
@Laiirton Laiirton deleted the fix-command-history branch November 3, 2024 04:49
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant