Skip to content

Add support for 'cd +'  #7189

Description

Now that PR 5051 has implemented issue 2188 (cd - support), we are ready to start thinking about adding cd + support, i.e. not only can one go back in the location history, one should also be able to go forward as well. The behaviour should behave as in the following example and support a similar history range like the cd - operation, which can go back the last 20 history locations

C:\foo> cd C:\bar
C:\bar> cd -
C:\foo> cd +
C:\bar

Currently a stack is used for the location history of cd -, this will need to be changed/adapted to allow for this new scenario, it could possibly be something similar to a circular buffer.

To be clear, this issue is just to discuss and track this feature as I don't have time to implement it now (but might come back to it in the future), so anyone can pick it up.

Environment data

> $PSVersionTable
Name                           Value
----                           -----
PSVersion                      6.1.0-preview.721
PSEdition                      Core
GitCommitId                    v6.1.0-preview.721
OS                             Microsoft Windows 10.0.17134
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Activity

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

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.WG-Cmdletsgeneral cmdlet issues

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions