warp icon indicating copy to clipboard operation
warp copied to clipboard

Git completion doesn't work with aliases

Open neelmehta247 opened this issue 4 years ago • 9 comments

Describe the bug

I have various git aliases set up. One of them is git ch => git checkout.

Using another terminal, when I run git ch ma<tab> it would prompt me branches/tags that match. Warp has this functionality when I type git checkout ma<tab> but this doesn't work with the alias.

To Reproduce

Steps to reproduce:

  1. Set a alias
git config --global alias.ch checkout
  1. Try tab completion while using the alias git checkout <tab> vs git ch <tab>

Expected behaviour

Expect the behavior to be the same as if the alias was expanded before pressing the tab.

Screenshots

Screen Shot 2022-01-05 at 11 02 38 AM

Operating System

MacOS

OS Version

11.6.1

Additional context

No response

neelmehta247 avatar Jan 05 '22 16:01 neelmehta247

+1

I have similar aliases setup (co = checkout, cob = checkout -b) and neither benefit from branch suggestion. I do love how the completion shows the aliases and what they are aliases for though.

(macOS : 12.1; warp : v0.2022.01.10.17.24.stable_02)

timbarlotta avatar Jan 15 '22 13:01 timbarlotta

+1 It's a blocker for me personally to adopt Warp. Otherwise, the product seems fantastic

yurilaguta avatar Jan 19 '22 22:01 yurilaguta

+1 Happening to me as well, would be nice to have this. I can live with Warp without it for the meantime, though 😄

Amazing product, by the way 💯

bernardobelchior avatar Feb 08 '22 16:02 bernardobelchior

I'd also like to see this feature, was wondering why it wasn't auto-completing my branches sometimes. Turned out it was only with aliases

veloxy avatar Apr 07 '22 08:04 veloxy

+1 this is stopping me from switching to warp ATM :/

mt-dfrey avatar May 02 '22 02:05 mt-dfrey

this is one of my personal top requests as well. Hopefully it launches in next two quarters!

elviskahoro avatar Jul 06 '22 14:07 elviskahoro

+1

I have even changed my workout flow to type out the full commands. But hoping these auto completions will work soon :)

wesleylether avatar Jul 07 '22 08:07 wesleylether

+1

ThanksSirAlex avatar Jul 20 '22 03:07 ThanksSirAlex

Hey folks! thanks for your patience on this. @kevinyang372 built this and it was shipped as part of v0.2022.09.20.08.08.stable_01! 🎉

szgupta avatar Sep 23 '22 22:09 szgupta