From 8af4bbe473bd8c8e87f0c7c1c36a5965f338a3c2 Mon Sep 17 00:00:00 2001 From: Brendan Falk Date: Thu, 26 Oct 2023 13:50:57 -0700 Subject: [PATCH] add fuzzy search to ls and remove cd folder preview --- src/cd.ts | 6 +++--- src/ls.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cd.ts b/src/cd.ts index 6f5bece56730..37cad99ec934 100644 --- a/src/cd.ts +++ b/src/cd.ts @@ -6,9 +6,9 @@ const completionSpec: Fig.Spec = { args: { generators: filepaths({ showFolders: "only", - editFolderSuggestions: { - previewComponent: "cd/folderPreview", - }, + // editFolderSuggestions: { + // previewComponent: "cd/folderPreview", + // }, }), filterStrategy: "fuzzy", // Add an additional hidden suggestion so users can execute on it if they want to diff --git a/src/ls.ts b/src/ls.ts index a9462780df8c..91afc0b75ed9 100644 --- a/src/ls.ts +++ b/src/ls.ts @@ -4,6 +4,7 @@ const completionSpec: Fig.Spec = { args: { isVariadic: true, template: ["filepaths", "folders"], + filterStrategy: "fuzzy", }, options: [ {