-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Add support for 'cd +' #7206
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
Merged
Merged
Add support for 'cd +' #7206
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
5aedb47
Simple (not working yet) prototype
bergmeister 30b0149
first working prototype
bergmeister b82ae2c
Merge branch 'master' of https://github.com/PowerShell/PowerShell int…
bergmeister d94218d
Merge branch 'master' of https://github.com/PowerShell/PowerShell int…
bergmeister f422ce2
Limit Redo count. TODO: empty redo stack when performing certain actions
bergmeister f668215
add Pester tests
bergmeister a1672f6
Tweak behaviour by invalidating the redo stack and making a cd + push…
bergmeister 806665e
remove comment as it is clear now why the expected behaviour is like …
bergmeister 82f9594
address space/newline CodeFactor issues and add comment
bergmeister 94f3124
Merge branch 'master' of https://github.com/PowerShell/PowerShell int…
bergmeister ef781a6
address PR feedback (style issues and use switch statement
bergmeister b015dda
make whitespace consistent
bergmeister 287a0e0
Add XUnit test for HistoryStack and use uint for location history to …
bergmeister ad3c184
Add Xunit test for BoundedStack
bergmeister ee91d9c
Add more assertions about returned objects in XUnit tests
bergmeister c2583b2
fix codefactor issues in XUnit tests
bergmeister 612a882
Simplify implementation, make Undo/Redo symmetric and move the core l…
bergmeister 7e4fd43
tweak comment
bergmeister bb9af07
Address PR style comments
bergmeister 4854f55
remove unnecessary parenthesis
bergmeister 8a83c45
Merge branch 'master' into CdPlus
bergmeister 2ce06dd
[feature]
bergmeister be4fdc2
Merge branch 'master' of https://github.com/PowerShell/PowerShell int…
bergmeister 09e50f3
Merge branch 'CdPlus' of https://github.com/bergmeister/PowerShell in…
bergmeister 3fce0e6
Address all comments on PR https://github.com/PowerShell/PowerShell/p…
bergmeister 44bad7e
Address PR comments by @iSazonov: rename of private variable for more…
bergmeister 0cada08
Merge branch 'master' of https://github.com/PowerShell/PowerShell int…
bergmeister a561498
Merge branch 'master' of https://github.com/PowerShell/PowerShell int…
bergmeister File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder - how do this related to the PR?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I was writing the XUnit unit tests for the 2 classes, I was thinking about the case of someone passing in a negative number, hence why I made it unsigned to get that for free. We could even make it an
ushortbut with modern processor architecture and runtimes, there is usually no speed advantage any more.