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
Now that PR 5051 has implemented issue 2188 (
cd -support), we are ready to start thinking about addingcd +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 thecd -operation, which can go back the last 20 history locationsCurrently 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