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: Add / or \ to the end of directories as appropriate #234621

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

Terminal suggest: Add / or \ to the end of directories as appropriate #234621

Tyriar opened this issue Nov 25, 2024 · 0 comments
Assignees
Labels
feature-request Request for new features or functionality terminal-suggest
Milestone

Comments

@Tyriar
Copy link
Member

Tyriar commented Nov 25, 2024

I fine tuned the pwsh completions to handle this really nicely. The rules are:

  • Add a slash to every folder that's provided
  • Don't add slash to the end of simple . and .. completions. This is done since they're special and are often used on their own, so users are required to add the slash to continue on. This is somewhat of a remnant of runOnEnter being the default but I think it makes sense to keep it this way.
  • Add a slash to the end of compound .. completions (eg. ../ should have the completion ../../)

This allows navigating directories intuitively with arrows + tab

Image
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality terminal-suggest
Projects
None yet
Development

No branches or pull requests

2 participants