Skip to content

simochee/voidenter

Repository files navigation

voidenter

npm version npm downloads License: MIT

A CLI wrapper that prevents accidental Enter key submission when using IME (Input Method Editor).

What it does

When you press Enter twice in quick succession (within 300ms), only the second Enter is sent to the command. This prevents IME confirmation Enter from accidentally submitting your input in interactive CLI tools.

Installation

Prerequisites

This package uses node-pty which requires native compilation. You need to have the following tools installed:

macOS:

  • Xcode Command Line Tools: xcode-select --install

Linux:

  • Python (v3.6 or later)
  • make
  • C/C++ compiler toolchain (e.g., GCC)
    # Debian/Ubuntu
    sudo apt-get install -y make python3 build-essential
    
    # Fedora/RHEL/CentOS
    sudo yum install -y make python3 gcc-c++

Windows:

Install

npm install -g voidenter

Usage

voidenter -- <command> [args...]

Examples

voidenter -- claude
voidenter -- node
voidenter -- python

License

MIT

About

A CLI wrapper that disables Enter

Resources

Stars

Watchers

Forks

Packages

No packages published