Skip to content

Multiline editing #3193

Closed
Closed

Description

@jcubic

It seems not supported.

SHIFT+ENTER
CTRL+ENTER

Don't create a newline, only execute the prompt. Most chat based interfaces use SHIFT+ENTER to insert a newline.

It would be nice if OpenCode have this feature that is de facto standard.

a workaround is to copy/paste the newline.

Activity

  1. changed the title [-]Multiline editiing[/-] [+]Multiline editing[/+] on Oct 15, 2025
  2. github-actions commented on Oct 15, 2025

    @github-actions
    Contributor

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

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

  3. rekram1-node commented on Oct 15, 2025

    @rekram1-node
    Collaborator

    We support shift + enter, some terminals send it differently than others tho. I think our capturing of it will be improved soon we are rewriting the tui to be more compatible everywhere.

    This is a duplicate of #1505

    But can you tell me what emulator you are using @jcubic

  4. jcubic commented on Oct 15, 2025

    @jcubic
    Author

    I use Xfce terminal, which uses VTE library from GNOME. If something doesn't work as expected on your end, you can report an issue on their Gitlab, you can also ask question if something is not working.

    They were helpful when I reported an issue with flickering in some CLI applications.

  5. Tmeister commented on Oct 20, 2025

    @Tmeister

    Same issue here.

    I'm having issues when working within a tmux session my setup is:

    • alacritty 0.16.1 (42f49eeb)
    • tmux 3.5a

    When I run opencode in a regular Alacritty panel it works, if I start a new Tmux session the same keybidding doesn't work.

    Hope this extra info helps.

  6. rekram1-node commented on Oct 20, 2025

    @rekram1-node
    Collaborator

    @Tmeister I don't use tmux but I think someone provided a work around in linked issue

  7. shardator commented on Mar 1, 2026

    @shardator

    Claude code allows backslash at line end to simulate shift+enter, if the terminal is crappy. I use it a lot with terminal + tmux setups. OpenCode could allow backslash multi line too.

  8. uudashr commented on Mar 6, 2026

    @uudashr

    Try to add this on your tmux.conf

    set -s extended-keys on
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions