Created
March 17, 2020 03:10
-
-
Save tsuyoshicho/a23a859f0b23fc1eeffbf234b572944c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| grep test code | |
| to gist | |
| let s:Grep = s:V.import('App.Grep') | |
| " top grep util | |
| let module_list = s:Grep.modules() | |
| let module_list = s:Grep.modules(prio_list) " prio list sorted | |
| let module = s:Grep.module('name') | |
| " module | |
| if module.is_available() | |
| let instance = module.new() | |
| endif | |
| let name_str = module.name() | |
| let feat_dict = module.feature() | |
| " instance | |
| let cmd_list = instance.command({param_dic}) " list | |
| let cmd_list = instance.grepprg({param_dic}) " list | |
| param_dic | |
| like Grep.execute | |
| but async do not affect | |
| " combination | |
| let result_promise = s:Grep.execute(instance, 'query', {param_dict}) " promise | |
| param_dict | |
| async: 1 (default system-depend) | |
| -> can async, run async/could not async run sync | |
| regex / pattern (exclude) | |
| ignorecase / smartcase (upper compatible) | |
| recursive | |
| --- | |
| note problem | |
| vital module bundle config? | |
| multi submodule | |
| -> random |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.