Add filtermethod and searchmethod options (#2058)
* Add `filtermethod` and `searchmethod` options * Rename `re` to `regex` * Remove `globfilter` and `globsearch` options * Add completions for `filtermethod` and `searchmethod` * Update documentation * Remove unnecessary if statement * Fix unrelated typo * Put options in alphabetical order * Fix typo in documentation * Rename variable for consistency --------- Co-authored-by: Joe Lim <50560759+joelim-work@users.noreply.github.com>
This commit is contained in:
1 parent
23b30ae1ee
commit
ab662e6f33
8 files changed
+114
-67
No files matched your search
+1
-1
@@ -60,7 +60,7 @@ func runSearch(t *testing.T, ignorecase, smartcase, ignorediacritics, smartdiacr
|
||||
gOpts.smartcase = smartcase
|
||||
gOpts.ignoredia = ignorediacritics
|
||||
gOpts.smartdia = smartdiacritics
|
||||
matched, _ := searchMatch(base, pattern, false)
|
||||
matched, _ := searchMatch(base, pattern, textSearch)
|
||||
if matched != expected {
|
||||
t.Errorf("False search for ignorecase = %t, smartcase = %t, ignoredia = %t, smartdia = %t",
|
||||
gOpts.ignorecase,
|
||||
|
||||
Reference in new issue
Block a user