Open segln opened 4 months ago
I think it can be done with removing the conditional statement below, but maybe there have been a reason for its existence...
↓
#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
}
#}
Please add a trailing slash option for directory when tab completion.
Example
Pressing \<Tab>:
Current
Trailing slash
Thank you for your consideration.