Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mityu/ddu-filter-matcher_multi_regex
Multiple regexes matcher for ddu.vim
https://github.com/mityu/ddu-filter-matcher_multi_regex
ddu-filter ddu-vim
Last synced: 23 days ago
JSON representation
Multiple regexes matcher for ddu.vim
- Host: GitHub
- URL: https://github.com/mityu/ddu-filter-matcher_multi_regex
- Owner: mityu
- License: mit
- Created: 2024-03-26T06:32:21.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T15:33:46.000Z (5 months ago)
- Last Synced: 2024-08-29T17:24:42.933Z (5 months ago)
- Topics: ddu-filter, ddu-vim
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ddu-filter-matcher\_multi\_regex
A ddu.vim matcher that treats the user input as space-separated list of regexes and filters items with the regexes.
## Requirements
### denops.vim
https://github.com/vim-denops/denops.vim
### ddu.vim
https://github.com/Shougo/ddu.vim
## Configuration
- Enable this matcher:
```vim
call ddu#custom#patch_global('sourceOptions', #{
\ _: #{
\ matchers: ['matcher_multi_regex'],
\ }
\ })
```- Enable matched text highlights:
```vim
call ddu#custom#patch_global('filterParams', #{
\ matcher_multi_regex: #{
\ highlightMatched: 'Search',
\ }
\ })
```**NOTE** This makes the filtering a bit slower due to the overhead of extraction of matched texts.
- Enable greedy matched text highlights:
```vim
call ddu#custom#patch_global('filterParams', #{
\ matcher_multi_regex: #{
\ highlightGreedy: v:true,
\ }
\ })
```**NOTE** This also makes the filtering slower due to the overhead of extraction of all the matched texts.
## Similar projects
- [kamecha/ddu-filter-matcher\_regex](https://github.com/kamecha/ddu-filter-matcher_regex/)