warpdotdev / Warp

Warp is a modern, Rust-based terminal with AI built in so you and your team can build great software, faster.
https://warp.dev
Other
20.93k stars 358 forks source link

Tab completion for git force-push syntax with `+` doesn't work #5225

Open staktrace opened 1 month ago

staktrace commented 1 month ago

Dupe Check

Describe the bug

Tab-completion for branch names in git push works when the branch name is undecorated. If the branch name is prefixed with + (to do a force-push) the tab-completion does not work.

To reproduce

git checkout -b foo
git push origin +fo<tab>

Expected behavior

In ITerm with bash and git completion, doing tab-completion on something like git push origin +fo will autocomplete the +fo to matching branch names (e.g. +foo). In warp it does not.

Screenshots

No response

Operating system

MacOS

Operating system and version

macOS Sonoma 14.5 (23F79)

Shell Version

GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)

Current Warp version

v0.2024.08.06.08.01.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 an issue only in Warp?

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

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

None

dannyneira commented 4 weeks ago

Hey @staktrace thanks for letting us know. I was able to reproduce this issue. I'll bring it up with the team as room for improvement with the git force-push completions and we'll post updates on this thread. We are also tracking support for shell-based completions here which may resolve the issue #434

To anyone else facing this issue, please add a 👍 to the original post at the top or comment with your details, and subscribe if you'd like to be notified.