GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Home/End keys navigate history instead of moving cursor within prompt · Issue #7190 · anomalyco/opencode

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

New issue
Copy link
New issue
Copy link
Closed
#8347
Closed
Home/End keys navigate history instead of moving cursor within prompt#7190
#8347
Copy link
Assignees
kommander
Labels
bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Description

@bero
bero
opened on Jan 7, 2026
Issue body actions

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

Reacted by tvandenbrugghen-stratalis, JDR, jamminroot, Manav, David Karlsson, KITAMI Taiyoh, carlosvegabuydepa, usrlocalben, Alex Budkar, ArijanJ and 7 more

Activity

  1. bero
    added
    bugSomething isn't working
    on Jan 7, 2026
  2. github-actions
    assigned
    kommander
    on Jan 7, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    windows
    on Jan 7, 2026
  4. github-actions commented on Jan 7, 2026

    @github-actions
    github-actionsBot
    on Jan 7, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Standard keyboard cursor navigation (Home/End key, ctrl+left/right key) #2649: Standard keyboard cursor navigation (Home/End key, ctrl+left/right key)
    • Keyboard shortcuts to edit prompts suck so much! #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

  5. rekram1-node
    added a commit that references this issue on Jan 16, 2026

    fix: make home/end keys work in menu list modal windows (resolves #7190…

    This issue will close once commit f8dc1a6 is merged into the 'dev' branch.
    f8dc1a6
  6. rekram1-node
    closed this as completedin #8347on Jan 16, 2026
  7. github-actions
    added a commit that references this issue on Jan 16, 2026

    fix: make home/end keys work in menu list modal windows (resolves #7190…

    This issue will close once commit 626fa14 is merged into the 'dev' branch.
    626fa14
  8. nulmind
    added a commit that references this issue on Jan 18, 2026

    Merge remote master to local (#1)

    This issue will close once commit ee76114 is merged into the 'dev' branch.
    ee76114
  9. Rwanbt
    added a commit that references this issue on May 5, 2026

    fix: make home/end keys work in menu list modal windows (resolves ano…

    This issue will close once commit 1e9d939 is merged into the 'main' branch.
    1e9d939
  10. Rwanbt
    added a commit that references this issue on Jun 14, 2026

    fix: make home/end keys work in menu list modal windows (resolves ano…

    This issue will close once commit e28eb4b is merged into the 'main' branch.
    e28eb4b
  11. MarsQiu007
    added a commit that references this issue on Jul 31, 2026

    fix: make home/end keys work in menu list modal windows (resolves #71…

    This issue will close once commit ef59633 is merged into the 'main' branch.
    ef59633
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

bugSomething isn't workingopentuiThis relates to changes in v1.0, now that opencode uses opentuiwindows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.