Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dirhistory doesn't preserve future directories on cd #11954

Open
mcornella opened this issue Oct 11, 2023 · 0 comments
Open

dirhistory doesn't preserve future directories on cd #11954

mcornella opened this issue Oct 11, 2023 · 0 comments
Assignees
Labels
Area: plugin Issue or PR related to a plugin Bug Something isn't working

Comments

@mcornella
Copy link
Member

Describe the bug

Say the user has navigated the directory history such that the past directories are (/tmp /tmp/a) and the future directories are (/usr /usr/bin). At this point if the user did 'cd /bin', then the past directories would become (/tmp /tmp/a /bin). That is, the future directories (/usr /usr/bin) are lost.

Steps to reproduce

  1. Enable dirhistory plugin
  2. cd to a bunch of directories:
    cd ~
    cd /usr
    cd share
    cd doc
  3. Go back a few directories with Alt-Left
  4. cd to a different directory: cd /tmp
  5. Future directories are lost

Expected behavior

Future directories should be preserved in the stack.

Screenshots and recordings

No response

OS / Linux distribution

Ubuntu 22.04

Zsh version

5.8

Oh My Zsh version

master (b1821a2)

Terminal emulator

GNOME Terminal

If using WSL on Windows, which version of WSL

None

Additional context

Related #9328

@mcornella mcornella added Bug Something isn't working Area: plugin Issue or PR related to a plugin labels Oct 11, 2023
@mcornella mcornella self-assigned this Oct 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: plugin Issue or PR related to a plugin Bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant