warpdotdev / warpdotdev/warp

"last word of last command" is highlighted

Open
#3,991 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug ready-to-implement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Discord username (optional)

No response

Describe the bug

When using the "last word of last command" shortcut, the word is highlighted. Often I'd like to append to that word or append to the command. Because the phrase is highlighted, instead of just continuing to type, I must first use a navigation key (e.g. right arrow) to deselect the text, otherwise the phrase is overwritten.

To reproduce
  1. Use the "last word of last command" shortcut
  2. Without moving cursor, begin typing
  3. Notice that the recalled word is now missing
Expected behavior
  1. Use the "last word of last command" shortcut
  2. Without moving cursor, begin typing
  3. Whatever is typed is immediately appended after the recalled word
Screenshots

Current:

  1. image
  2. image

Expected:

  1. image
  2. image
Operating system

MacOS

Operating system and version

13.4.1

Shell Version

zsh 5.9 (x86_64-apple-darwin22.0)

Current Warp version

v0.2023.12.19.08.02.stable_00

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Reproduce the shortcut on macOS with zsh, then trace the command-line editing and selection behavior responsible for recalling the last word. Done means typing immediately after the shortcut appends text instead of replacing the recalled word, without requiring a navigation key.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, zsh
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.