Home/End keys navigate history instead of moving cursor within prompt #4356

Closed
opened 2026-02-16 17:43:33 -05:00 by yindo · 1 comment
Owner

Originally created by @bero on GitHub (Jan 7, 2026).

Originally assigned to: @kommander on GitHub.

Description

Parent Issue

Part of #4997 (Keybinds)

Summary

Home and End keys navigate to first/last prompt in history instead of moving the cursor to the beginning/end of the current line.

Current Behavior

  • Home → Goes to first prompt in history
  • End → Goes to last prompt in history

Expected Behavior

  • Home → Move cursor to beginning of current line
  • End → Move cursor to end of current line

Standard text editing behavior - these keys should control cursor position, not history navigation.

Suggested options ofr fix

  1. Swap: Use Ctrl+Home/Ctrl+End for history, Home/End for cursor
  2. Config: Add setting like keybinds.home_end: "cursor" | "history"

Plugins

oh-my-opencode

OpenCode version

1.1.3

Steps to reproduce

  1. Start OpenCode TUI (opencode)
  2. Send a few prompts to build up history (e.g., "hello", "test", "another prompt")
  3. Type a new prompt but don't send it: this is my current prompt
  4. Position cursor somewhere in the middle of the text
  5. Press Home key
  6. Actual: Jumps to first prompt in session history
  7. Expected: Cursor moves to beginning of "this is my current prompt"
    Same issue with End key - jumps to last history item instead of end of current line.

Screenshot and/or share link

No response

Operating System

Windows 10 Professional

Terminal

Windows Terminal 7.5.4

Originally created by @bero on GitHub (Jan 7, 2026). Originally assigned to: @kommander on GitHub. ### Description ### Parent Issue Part of #4997 (Keybinds) ### Summary Home and End keys navigate to first/last prompt in history instead of moving the cursor to the beginning/end of the current line. ### Current Behavior - Home → Goes to first prompt in history - End → Goes to last prompt in history ### Expected Behavior - Home → Move cursor to beginning of current line - End → Move cursor to end of current line - Standard text editing behavior - these keys should control cursor position, not history navigation. ### Suggested options ofr fix 1. **Swap**: Use Ctrl+Home/Ctrl+End for history, Home/End for cursor 2. **Config**: Add setting like keybinds.home_end: "cursor" | "history" ### Plugins oh-my-opencode ### OpenCode version 1.1.3 ### Steps to reproduce 1. Start OpenCode TUI (opencode) 2. Send a few prompts to build up history (e.g., "hello", "test", "another prompt") 3. Type a new prompt but don't send it: this is my current prompt 4. Position cursor somewhere in the middle of the text 5. Press Home key 6. **Actual**: Jumps to first prompt in session history 7. **Expected**: Cursor moves to beginning of "this is my current prompt" Same issue with End key - jumps to last history item instead of end of current line. ### Screenshot and/or share link _No response_ ### Operating System Windows 10 Professional ### Terminal Windows Terminal 7.5.4
yindo added the windowsopentuibug labels 2026-02-16 17:43:33 -05:00
yindo closed this issue 2026-02-16 17:43:33 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #2649: Standard keyboard cursor navigation (Home/End key, ctrl+left/right key)
  • #4938: Keyboard shortcuts to edit prompts suck so much! (includes Home/End navigation issues)

Feel free to ignore if none of these address your specific case.

For keybind-related issues, please also check our pinned keybinds documentation: #4997

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #2649: Standard keyboard cursor navigation (Home/End key, ctrl+left/right key) - #4938: Keyboard shortcuts to edit prompts suck so much! (includes Home/End navigation issues) Feel free to ignore if none of these address your specific case. For keybind-related issues, please also check our pinned keybinds documentation: #4997
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4356