Skip to content

mityu/ddu-filter-matcher_multi_regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
call ddu#custom#patch_global('sourceOptions', #{
  \   _: #{
  \     matchers: ['matcher_multi_regex'],
  \   }
  \ })
  • Enable matched text highlights:
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:
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

About

Multiple regexes matcher for ddu.vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published