Complete ./ script paths in terminal tab completion
This commit is contained in:
@@ -187,7 +187,7 @@ class GitRepositoryRuntime private constructor(
|
||||
?: sandboxRoot
|
||||
if (!workingDir.exists() || !workingDir.isDirectory) return emptyList()
|
||||
|
||||
return workingDir.walkTopDown()
|
||||
val relativeCandidates = workingDir.walkTopDown()
|
||||
.drop(1)
|
||||
.filter { file -> !directoriesOnly || file.isDirectory }
|
||||
.map { file ->
|
||||
@@ -196,6 +196,8 @@ class GitRepositoryRuntime private constructor(
|
||||
}
|
||||
.filter { it.isNotBlank() }
|
||||
.toList()
|
||||
|
||||
return relativeCandidates + relativeCandidates.map { "./$it" }
|
||||
}
|
||||
|
||||
fun commandReferenceLines(): List<String> {
|
||||
|
||||
Reference in New Issue
Block a user