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
21.41k stars 375 forks source link

Support npm aliases in autocomplete #2801

Open ThaNarie opened 1 year ago

ThaNarie commented 1 year ago

Discord username (optional)

No response

Describe the solution you'd like?

Support npm aliases (that are often shorter) in the command autocompletion.

Is your feature request related to a problem? Please describe.

I'm always frustrated when Warp selects the wrong npm autocomplete command when I use commonly known aliases.

I run `npm i` a lot during the day. It's a valid and commonly used alias to `npm install` (see https://docs.npmjs.com/cli/v9/commands/npm-install).

However, in Warp, the `npm init` command is selected by default, and if I press `[enter]` after typing `npm i`, it executes the init command.

So now i have to purposefully type `npm install` every time, or hit `[esc]` before I press enter.

Additional context

No response

How important is this feature to you?

3

Warp Internal (ignore) - linear-label:770f6576-d6c0-4e4f-a259-fc64b5156087

None

dannyneira commented 1 year ago

@ThaNarie thanks for this feature request!

We appreciate you submitting this. As a workaround, you can try disabling open completions as you type in the settings or perhaps press ESC after typing npm i to cancel out the autocompletion and then press ENTER to run the alias.

https://user-images.githubusercontent.com/16809145/226655360-daa17b48-49a5-4e1f-856e-79938d691125.mp4

Please :+1: and subscribe to this request as it helps us gauge interest. We will post any updates here.

craigharman commented 1 year ago

Agreed, same problem I reported at #3063