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 — Add configurable readline-style text transformations to TUI prompt · Issue #9234 · anomalyco/opencode

Add configurable readline-style text transformations to TUI prompt #9234

New issue
Copy link
New issue
Copy link
Closed
Closed
Add configurable readline-style text transformations to TUI prompt#9234
Copy link
Assignees
kommander
Labels
discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

Description

@aspiers
aspiers
opened on Jan 18, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Summary

Add configurable Emacs/readline-style text editing shortcuts to the TUI (terminal) prompt input to improve text editing efficiency and provide power users with familiar keybindings.

Problem Statement

Currently, users working in the terminal UI must manually retype text to perform common text editing operations such as:

  • Changing word case (uppercase, lowercase, capitalize)
  • Pasting previously deleted text
  • Transposing characters

This slows down text editing workflows and prevents users from customizing keybindings to match their preferred editor shortcuts (particularly Emacs/readline style).

Desired Features

The following text transformation operations should be available as configurable keybindings:

Case Transformations

  • Uppercase word - Convert word from cursor position to uppercase
  • Lowercase word - Convert word from cursor position to lowercase
  • Capitalize word - Capitalize word from cursor position

Kill Ring / Paste Buffer

  • Yank - Paste the last deleted text at cursor position
  • Support for storing deleted text from existing delete operations (ctrl+k, ctrl+u, ctrl+w, alt+d)

Character Manipulation

  • Transpose characters - Swap character under cursor with previous character

Expected Behavior

All new shortcuts should be fully configurable via opencode.json keybindings configuration, allowing users to customize or disable them as needed. Default bindings should not conflict with existing TUI functionality.

Example Configuration

{
  "keybinds": {
    "input_lowercase_word": "alt+l",
    "input_uppercase_word": "alt+u",
    "input_capitalize_word": "alt+c",
    "input_yank": "ctrl+y",
    "input_transpose_characters": "ctrl+t"
  }
}

Implementation Notes

  • Word boundary detection should follow readline/Emacs behavior
  • Case transformations should respect word boundaries
  • Kill buffer could start as a simple single-entry buffer with future expansion to a full kill ring
  • Tests should verify word boundary detection and transformation functions
Reacted by Ariane Emory and Peter Tripp

Activity

  1. aspiers
    added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 18, 2026
  2. github-actions
    assigned
    kommander
    on Jan 18, 2026
  3. github-actions
    added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Jan 18, 2026
  4. github-actions commented on Jan 18, 2026

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

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

    • Keybinds #4997: Pinned keybinds issue covering many TUI keybind problems including word deletion (option+delete), emacs bindings (ctrl+a, ctrl+k), and general keybind navigation issues
    • yank (ctrl-y) does not work #7098: yank (ctrl-y) does not work - directly related to the proposed 'input_yank' functionality
    • Keyboard shortcuts to edit prompts suck so much! #4938: Keyboard shortcuts to edit prompts suck - covers broader text editing and navigation issues in TUI input
    • Emacs keybindings frustratingly inconsistent #4877: Emacs keybindings frustratingly inconsistent - related to emacs-style keybindings support
    • feat: add keyboard-based copy/cut for input field selection #7516: feat: add keyboard-based copy/cut for input field selection - related functionality for input text manipulation

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

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

  5. aspiers commented on Feb 12, 2026

    @aspiers
    aspiers
    on Feb 12, 2026
    ContributorAuthor
    More actions

    It's not a duplicate and the PR fixing this is ready for review.

  6. github-actions commented on Apr 13, 2026

    @github-actions
    github-actionsBot
    on Apr 13, 2026 – with GitHub Actions
    Contributor
    More actions

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

  7. github-actions
    closed this as completedon Apr 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @kommander
    kommander

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussionopentuiThis relates to changes in v1.0, now that opencode uses opentui

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.