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

Terminal suggest: Make sure cd - completions play nice in pwsh #234382

Open
Tyriar opened this issue Nov 21, 2024 · 0 comments
Open

Terminal suggest: Make sure cd - completions play nice in pwsh #234382

Tyriar opened this issue Nov 21, 2024 · 0 comments
Assignees

Comments

@Tyriar
Copy link
Member

Tyriar commented Nov 21, 2024

I see this coming in #234363:

			{
				name: '-',
				description: 'Switch to the last used folder',
				hidden: true,
			}

In pwsh it's actually - as in -/+ and they navigate a history stack, not just toggle between the last directory ($OLDPWD in bash). We could improve the wording for pwsh and add cd + as well (especially if hidden does what I think it does and doesn't show it unless typed), similar to the pwsh support from the script:

Image

When I looked into it this history stack is internal so we can't resolve the folder and stick it on the right for pwsh unfortunately, we might be able to do it on shells that use $OLDPWD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants