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
@@ -343,6 +343,8 @@ func completeCmd(acc []rune) (matches []string, longestAcc []rune) {
|
||||
break
|
||||
}
|
||||
switch f[1] {
|
||||
case "filtermethod", "searchmethod":
|
||||
matches, longest = matchWord(f[2], []string{"glob", "regex", "text"})
|
||||
case "selmode":
|
||||
matches, longest = matchWord(f[2], []string{"all", "dir"})
|
||||
case "sortby":
|
||||
|
||||
Reference in new issue
Block a user