From cff2739f25115c7b7016e3585adc26e4d5d98612 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Mon, 7 Aug 2023 13:04:00 +0900 Subject: [PATCH] Add smartCase --- denops/ddu/base/source.ts | 1 + denops/ddu/types.ts | 1 + doc/ddu.txt | 9 ++++++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/denops/ddu/base/source.ts b/denops/ddu/base/source.ts index 28596ea..6e7d16e 100644 --- a/denops/ddu/base/source.ts +++ b/denops/ddu/base/source.ts @@ -85,6 +85,7 @@ export function defaultSourceOptions(): SourceOptions { matchers: [], maxItems: 10000, path: "", + smartCase: false, sorters: [], volatile: false, }; diff --git a/denops/ddu/types.ts b/denops/ddu/types.ts index d6d0528..57f29b9 100644 --- a/denops/ddu/types.ts +++ b/denops/ddu/types.ts @@ -142,6 +142,7 @@ export type SourceOptions = { matchers: UserFilter[]; maxItems: number; path: TreePath; + smartCase: boolean; sorters: UserFilter[]; volatile: boolean; }; diff --git a/doc/ddu.txt b/doc/ddu.txt index 89c9dc4..45b08f0 100644 --- a/doc/ddu.txt +++ b/doc/ddu.txt @@ -726,7 +726,7 @@ defaultAction (string) *ddu-source-option-ignoreCase* ignoreCase (boolean) - If it is True, ddu ignores case. + If it is True, |ddu-filters| ignores case when input match. Default: v:false @@ -769,6 +769,13 @@ path (string | string[]) ["/", "aa", "bb", "cc"] (string[]) NOTE: It must be full path. + *ddu-source-option-smartCase* +smartCase (boolean) + If it is True, |ddu-filters| don't ignore case when input + contains upper case characters. + + Default: v:false + *ddu-source-option-sorters* sorters (string[] | dictionary[]) It is a list of registered filter names or elements which are