Skip to content

Commit

Permalink
add fuzzy search to ls and remove cd folder preview
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanfalk authored Oct 26, 2023
1 parent 74e0ed5 commit 8af4bbe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/ls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const completionSpec: Fig.Spec = {
args: {
isVariadic: true,
template: ["filepaths", "folders"],
filterStrategy: "fuzzy",
},
options: [
{
Expand Down

0 comments on commit 8af4bbe

Please sign in to comment.