[PR #1025] [CLOSED] Adds up and down arrow commands for reusing previous user-message inputs #9779

Closed
opened 2026-02-16 18:14:09 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1025
Author: @ggaabe
Created: 7/15/2025
Status: Closed

Base: devHead: dev


📝 Commits (6)

  • 69c631d Merge pull request #1 from sst/dev
  • 2dbec29 tui: add input history
  • 98b7508 Merge pull request #2 from ggaabe/codex/add-command-history-navigation-with-arrow-keys
  • 7d468e5 ignore: update download stats 2025-07-16
  • 97ca035 ignore: update download stats 2025-07-17
  • 90af3e5 ignore: update download stats 2025-07-18

📊 Changes

5 files changed (+83 additions, -17 deletions)

View changed files

📝 STATS.md (+20 -17)
📝 packages/tui/internal/commands/command.go (+12 -0)
📝 packages/tui/internal/components/chat/editor.go (+37 -0)
📝 packages/tui/internal/tui/tui.go (+8 -0)
📝 packages/tui/sdk/config.go (+6 -0)

📄 Description

Most terminals let you use the up arrow key to iterate through previous commands and then rerun one of them. Cursor has something similar when hitting CMD + K and using the up / down arrow keys.

When testing different models with opencode it's a lot easier if we can just use the up arrow key to reuse the command we just tried, or reusing if there was a temporary error and we want to retry the thing we just entered. This adds the feature.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1025 **Author:** [@ggaabe](https://github.com/ggaabe) **Created:** 7/15/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (6) - [`69c631d`](https://github.com/anomalyco/opencode/commit/69c631d032a1b74cf4a76bcf90098238bf54411e) Merge pull request #1 from sst/dev - [`2dbec29`](https://github.com/anomalyco/opencode/commit/2dbec29f0c6d4900c835b15ec74989097b7e61e2) tui: add input history - [`98b7508`](https://github.com/anomalyco/opencode/commit/98b7508d6859909838a06896fd6b95a30e7dc76f) Merge pull request #2 from ggaabe/codex/add-command-history-navigation-with-arrow-keys - [`7d468e5`](https://github.com/anomalyco/opencode/commit/7d468e545760e1638bc6cfe1a3312642ae1afd34) ignore: update download stats 2025-07-16 - [`97ca035`](https://github.com/anomalyco/opencode/commit/97ca035ff1ac335109cf7db9b3771b6200a87859) ignore: update download stats 2025-07-17 - [`90af3e5`](https://github.com/anomalyco/opencode/commit/90af3e58c5615998839194ebe1fd0de2ff686cfa) ignore: update download stats 2025-07-18 ### 📊 Changes **5 files changed** (+83 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `STATS.md` (+20 -17) 📝 `packages/tui/internal/commands/command.go` (+12 -0) 📝 `packages/tui/internal/components/chat/editor.go` (+37 -0) 📝 `packages/tui/internal/tui/tui.go` (+8 -0) 📝 `packages/tui/sdk/config.go` (+6 -0) </details> ### 📄 Description Most terminals let you use the up arrow key to iterate through previous commands and then rerun one of them. Cursor has something similar when hitting CMD + K and using the up / down arrow keys. When testing different models with opencode it's a lot easier if we can just use the up arrow key to reuse the command we just tried, or reusing if there was a temporary error and we want to retry the thing we just entered. This adds the feature. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:09 -05:00
yindo closed this issue 2026-02-16 18:14:09 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9779