-
Notifications
You must be signed in to change notification settings - Fork 38
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
Feature request: Adding trailing slash for directory when tab completion. #259
Comments
I think it can be done with removing the conditional statement below, but maybe there have been a reason for its existence... Lines 324 to 340 in cba20d2
↓ #if ($script:continueCompletion) {
$isQuoted = $str.EndsWith("'")
$resultTrimmed = $str.Trim(@('''', '"'))
if (Test-Path "$resultTrimmed" -PathType Container) {
if ($isQuoted) {
$str = "'{0}{1}'" -f "$resultTrimmed", $script:TabContinuousTrigger
}
else {
$str = "$resultTrimmed" + $script:TabContinuousTrigger
}
}
else {
# no more paths to complete, so let's stop completion:
$str += ' '
$script:continueCompletion = $false
}
#} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please add a trailing slash option for directory when tab completion.
Example
Pressing <Tab>:
Current
Trailing slash
Thank you for your consideration.
The text was updated successfully, but these errors were encountered: