Skip to content

Per directory history #5336

Open
Open

Description

@snez

Dupe Check

Describe the solution you'd like?

Warp is amazing, but there is one feature that I miss from zsh: Per directory history. I used to have this set up via https://github.com/jimhester/per-directory-history. It would allow you to have a history of commands that were ran from inside a specific directory, and would also allow you to switch to global history as needed with ^G. I hardly ever used the global history though.

If this is selected for implementation, one variation from jimhester's implementation that would be great, is for the directory history to be updated in realtime between multiplexed windows.

I have found 2 similar feature requests
#2932 - this seems to have been neglected due to Workflows as an alternative, however Workflows look like a hassle. The easiest way to use this feature is simply with Up/Down arrows and nothing else.
#4987 - similar, but suggests using Alt-Left/Right arrows which I strongly disagree with because you'd loose the IDE-style navigation between words.

A workable alternative is to somehow allow zsh plugins to be installed, that way I could simply switch back to https://github.com/jimhester/per-directory-history

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

This is very useful when working with git from inside project directories.

Additional context

See https://github.com/jimhester/per-directory-history

How important is this feature to you?

4

Warp Internal (ignore) - linear-label:39cc6478-1249-4ee7-950b-c428edfeecd1

None

Activity

  1. snez commented on Sep 28, 2024

    @snez
    Author

    Adding more duplicates found:

    #2193 #2582

  2. added
    area:searchGlobal search, command palette, and content discovery.
    triagedIssue has received an initial automated triage pass.
    on Apr 17, 2026
  3. added
    ready-to-specThe issue is ready for a product and technical spec.
    moonshotAn issue were interested in solving that needs significant product or technical problem-solving.
    on Apr 21, 2026
  4. edgardmello commented on Oct 23, 2026

    @edgardmello

    Picking this up: I opened a spec PR with a product + tech spec for directory-scoped up-arrow history (opt-in setting, off by default, with a Ctrl+G toggle back to global history, mirroring the zsh per-directory-history plugin) — see #16636. Feedback on the design there is welcome; implementation would follow on the same PR once the specs are approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:searchGlobal search, command palette, and content discovery.enhancementNew feature or request.moonshotAn issue were interested in solving that needs significant product or technical problem-solving.ready-to-specThe issue is ready for a product and technical spec.triagedIssue has received an initial automated triage pass.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions