Skip to content

support forward slash for directory completion in Windows#3201

Merged
sophiajt merged 1 commit intonushell:mainfrom
naftali-g:forward_slash_for_windows
Mar 23, 2021
Merged

support forward slash for directory completion in Windows#3201
sophiajt merged 1 commit intonushell:mainfrom
naftali-g:forward_slash_for_windows

Conversation

@naftali-g
Copy link
Copy Markdown
Contributor

While the "main" path separator in Windows is the backslash, it supports the
forward slash as a separator too.
Add support for this so that the behavior is similar to the way Windows
PowerShell handles the forward slash: it is recognized as a separator,
and when using for path completion the slash is reversed.

@naftali-g naftali-g force-pushed the forward_slash_for_windows branch from 99f2846 to 3ecb80c Compare March 21, 2021 10:43
While the "main" separator in Windows is the backslash, it supports the
forward slash as a separator too.
Add support for this so that the behavior is similar to the way Windows
PowerShell handles the forward slash: it is recognized as a separator,
and when using <tab> for path completion the slash is reversed.
@naftali-g naftali-g force-pushed the forward_slash_for_windows branch from 3ecb80c to d8d8d89 Compare March 21, 2021 11:59
@naftali-g naftali-g closed this Mar 21, 2021
@naftali-g naftali-g reopened this Mar 21, 2021
@sophiajt
Copy link
Copy Markdown
Contributor

Looks good!

@sophiajt sophiajt merged commit 840bd98 into nushell:main Mar 23, 2021
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

Successfully merging this pull request may close these issues.

3 participants