feat: add prompt input to send text directly to Claude Code sessions#13
Merged
Conversation
Press 'i' to enter input mode in the details panel, type a prompt, and press Enter to send it to the selected Claude Code session via wezterm cli send-text. Supports multi-line input (Ctrl+O), vim-style cursor movement (Ctrl+hjkl), and auto-scrolling for long input.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ito enter input mode,Enterto send prompt and auto-focus the target paneCtrl+Ofor newline) with automatic text wrapping and scrollingCtrl+H/J/K/L)Changes
src/cli/mod.rs: AddWeztermCli::send_text()method (bracketed paste + Enter key submission)src/ui/app.rs: Input mode state management, keybind handling, send logicsrc/ui/render.rs: Input field rendering (CJK character width support, auto-wrapping, scrolling)Cargo.toml: Addunicode-widthdependencyREADME.md: Document new keybindingsKeybindings (Input Mode)
iEnterCtrl+OCtrl+H/LCtrl+J/KCtrl+A/ECtrl+UEscTest plan
make allpasses (fmt + clippy + test)ito enter input mode — input field appears at bottom of details panelCtrl+Oinserts newline — input field expands to multiple linesEntersends prompt — text is sent to Claude Code pane and auto-submitted, focus moves to paneEscapecancels input mode