Skip to content

feat: Add message history navigation with arrow keys#30

Merged
adamdotdevin merged 2 commits into
anomalyco:devfrom
mark3labs:message-history
May 17, 2025
Merged

feat: Add message history navigation with arrow keys#30
adamdotdevin merged 2 commits into
anomalyco:devfrom
mark3labs:message-history

Conversation

@ezynda3
Copy link
Copy Markdown
Contributor

@ezynda3 ezynda3 commented May 17, 2025

Summary

  • Added message history navigation using up/down arrow keys
  • Up arrow navigates to previous messages when cursor is on the first line
  • Down arrow navigates to next messages when cursor is on the last line
  • Preserves normal arrow key functionality for editing multi-line messages

Test plan

  1. Type a message and send it
  2. Type another message and send it
  3. Press up arrow to navigate to previous message
  4. Press down arrow to navigate back
  5. Type a multi-line message using backslash+enter
  6. Verify that arrow keys work normally for editing within the message
  7. Verify that up arrow only navigates to history when on the first line
  8. Verify that down arrow only navigates to history when on the last line

🤖 Generated with opencode

@adamdotdevin adamdotdevin merged commit c84918c into anomalyco:dev May 17, 2025
@Artmann
Copy link
Copy Markdown

Artmann commented May 24, 2025

This fixes #42

randomm referenced this pull request in randomm/opencode Jan 9, 2026
…operations (#30)

- Replace broad text searches with filtered queries (--owner, --state, --project)
- Add 'Performance & Context Efficiency' section with clear patterns:
  - Context-efficient patterns: direct lookups, workspaces, filtered searches
  - Context-consuming anti-patterns to avoid (broad text search, unfiltered listings)
  - Complete search operator reference (-o, -s, -p, -t, -y, -l, -i)
- Emphasize workspace pattern as PRIMARY for repeated queries
- Update epic/project listing examples to use filtering
- Add visual hierarchy to query optimization (🏆 ✅ ⚠️ ❌)
- Expand from 414 to 532 lines with practical guidance

Aligns with official Shortcut CLI documentation and prevents operations
that would dump large result sets into AI context windows.
sorted-ai-bot pushed a commit to sorted-ai/opencode that referenced this pull request Apr 15, 2026
…anomalyco#28, anomalyco#30)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 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.

3 participants