mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 01:04:36 +00:00
Autocomplete allow searchs with /'s like: folder1/folder2 (#882)
* Extend fd autocomplete tests * Renamed fixture type in autocomplete test
This commit is contained in:
parent
69d02b8a5f
commit
7dc652f304
2 changed files with 182 additions and 2 deletions
|
|
@ -11,7 +11,17 @@ function walkDirectoryWithFd(
|
|||
query: string,
|
||||
maxResults: number,
|
||||
): Array<{ path: string; isDirectory: boolean }> {
|
||||
const args = ["--base-directory", baseDir, "--max-results", String(maxResults), "--type", "f", "--type", "d"];
|
||||
const args = [
|
||||
"--base-directory",
|
||||
baseDir,
|
||||
"--max-results",
|
||||
String(maxResults),
|
||||
"--type",
|
||||
"f",
|
||||
"--type",
|
||||
"d",
|
||||
"--full-path",
|
||||
];
|
||||
|
||||
// Add query as pattern if provided
|
||||
if (query) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue