feat: click-to-position cursor and backspace-delete-selection#103
Closed
JakubKontra wants to merge 1 commit intocontember:mainfrom
Closed
feat: click-to-position cursor and backspace-delete-selection#103JakubKontra wants to merge 1 commit intocontember:mainfrom
JakubKontra wants to merge 1 commit intocontember:mainfrom
Conversation
Add Warp-style terminal interaction features: - Click on the shell prompt line to move the cursor to that position by sending the appropriate number of arrow key escape sequences - Select text in the prompt and press Backspace to delete the selection by moving cursor to the end and sending backspace characters Both features are guarded to only activate in a plain shell prompt: - Disabled when a child process is running (vim, less, claude CLI, etc.) - Disabled in mouse mode (tmux) or alternate screen (TUI apps) - Click-to-cursor only on the cursor's row, single click without drag - Backspace-delete only for single-row selections on cursor's row - Wide characters (CJK, emoji) handled correctly
Member
|
Hey @JakubKontra, thanks a ton for this PR and the kind words! 🙏 I cherry-picked it into
Thanks again — really nice feature, it's been great to use day to day. ❤️ |
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.
Hello guys, awesome piece of sofware, thanks!
The only thing I’m missing is the ability to click in the terminal and be able to delete a specific part and possibly move the cursor within the command wherever I need.
It should only work in the main process and not in subprocesses (eq. claudecode, vim... etc)