Skip to content

Commit

Permalink
Add smartCase
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Aug 7, 2023
1 parent 2d1d319 commit cff2739
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions denops/ddu/base/source.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ export function defaultSourceOptions(): SourceOptions {
matchers: [],
maxItems: 10000,
path: "",
smartCase: false,
sorters: [],
volatile: false,
};
Expand Down
1 change: 1 addition & 0 deletions denops/ddu/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export type SourceOptions = {
matchers: UserFilter[];
maxItems: number;
path: TreePath;
smartCase: boolean;
sorters: UserFilter[];
volatile: boolean;
};
Expand Down
9 changes: 8 additions & 1 deletion doc/ddu.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cff2739

Please sign in to comment.