npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mynameistito/opencode-force-input

v1.1.6

Published

OpenCode TUI plugin that interrupts the active run and submits the prompt with Ctrl+Enter.

Downloads

1,421

Readme

@mynameistito/opencode-force-input

OpenCode TUI plugin that interrupts the active run and force-submits the current prompt with Ctrl+Enter.

Install

This package contains the OpenCode v2 TUI plugin and is published from the monorepo main branch using npm's latest dist-tag.

opencode2 plugin add "@mynameistito/opencode-force-input@latest" -g

OpenCode writes the plugin to ~/.config/opencode/cli.json. Verify it is installed with:

opencode2 plugin list

Update or reinstall it by removing and adding the package again:

opencode2 plugin remove "@mynameistito/opencode-force-input@latest" -g
opencode2 plugin add "@mynameistito/opencode-force-input@latest" -g

Uninstall it with:

opencode2 plugin remove "@mynameistito/opencode-force-input@latest" -g

To clear a cached package before reinstalling:

PowerShell:

Remove-Item -LiteralPath "$HOME\.cache\opencode\packages\@mynameistito\opencode-force-input@latest" -Recurse -Force -ErrorAction SilentlyContinue

macOS/Linux:

rm -rf ~/.cache/opencode/packages/@mynameistito/opencode-force-input@latest

The v2 package can also be configured manually in ~/.config/opencode/cli.json:

{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": ["@mynameistito/opencode-force-input@latest"]
}

This package only exposes the /tui entrypoint. It does not provide a server plugin.

Behavior

The plugin registers high-priority v2 keymap commands for ctrl+return and ctrl+enter. Each command dispatches session.interrupt three times, then prompt.submit, preserving OpenCode's guarded abort flow.

Remove ctrl+return from input_newline in cli.json if it is also configured as a newline binding:

{ "keybinds": { "input_newline": "shift+return,alt+return,ctrl+j" } }

Hint

While a session is open the composer shows a state-aware hint in its bottom right corner, inside the prompt box:

| Session state | Hint | | ------------------ | ----------------------------------- | | idle | ⏎ send | | running | ⏎ steer · ctrl+⏎ interrupt & send | | shell mode or home | hidden |

steer matches OpenCode's default delivery for prompts submitted mid-run, so the hint shows what Enter will do before it is pressed, and ctrl+⏎ stays visible while it can interrupt. A retrying session still counts as running, so the steer hint stays until the run succeeds, fails, or is interrupted. The hint renders through the same prompt.footer.status claim that mounts the keymap layer: OpenCode publishes no slot inside the textarea, so the indicator is lifted over the footer row with an absolute overlay (top: -2), landing on the composer's own info row. Disable it with plugin options:

{
  "$schema": "https://opencode.ai/v2/cli.json",
  "plugins": [
    {
      "package": "@mynameistito/opencode-force-input@latest",
      "options": { "hint": false }
    }
  ]
}

Windows Terminal

If Windows Terminal sends plain Enter for Ctrl+Enter, configure a sendInput action for \u001b[13;5u and bind it to ctrl+enter in the terminal settings.