Autocomplete common pattern: `mkdir <dir> && cd <dir>`

Open
#2,652 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

The issue names no files, tests, or entry points. Start by locating the shell autocomplete handling for chained commands; done means recognizing the directory from the preceding mkdir and suggesting it for the following cd, including when the chain begins with &&.

Written by the indexing model from the issue text.

Description

area:completions enhancement triaged
Discord username (optional)

No response

Describe the solution you'd like?
So there is this very common scenario:

`mkdir <dirname> && cd <dirname>`

Why can't Warp suggest `<dirname>` in the cd part, so that autocomplete would suggest `<dirname>`.

IMO, the pattern is actually so common that typing first `&` could already kick the autocomplete in.
Is your feature request related to a problem? Please describe.

No response

Additional context

No response

How important is this feature to you?

3

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

None

Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

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.

More from warpdotdev/warp

All issues in warpdotdev/warp

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.