Source

aurum / autoload / aurum / grep.vim

Diff from to

File autoload/aurum/grep.vim

 scriptencoding utf-8
-execute frawor#Setup('0.0', {'@aurum': '1.0',
-            \      '@%aurum/cmdutils': '4.0',
-            \          '@%aurum/edit': '1.0',
-            \             '@/options': '0.0',})
+execute frawor#Setup('0.0', {'@%aurum/cmdutils': '4.3',
+            \                    '@%aurum/edit': '1.0',
+            \                       '@/options': '0.0',
+            \                     '@/functions': '0.1',
+            \                           '@/fwc': '0.0',})
 let s:_messages={
             \   'nogf': 'No files found',
         \}
             \'workdirfiles': {'default': 1,
             \                  'filter': 'bool',},
         \}
+let s:_aufunctions.cmd={'@FWC': ['-onlystrings '.
+            \'type "" '.
+            \'{     repo       '.s:_r.cmdutils.comp.repo.
+            \' ?*+2 revrange   '.join(repeat([s:_r.cmdutils.comp.rev], 2)).
+            \' ?*   revision   '.s:_r.cmdutils.comp.rev.
+            \' ?*   files      '.s:_r.cmdutils.comp.file.
+            \' ?    location   range 0 $=winnr("$")'.
+            \' ?   !workmatch'.
+            \' ?   !wdfiles'.
+            \' ?   !ignorecase '.
+            \'}', 'filter']}
+let s:_aufunctions.comp=s:_r.cmdutils.gencompfunc(s:_aufunctions.cmd['@FWC'][0],
+            \                                     [], s:_f.fwc.compile)
 function s:F.setlist(opts, list)
     if has_key(a:opts, 'location')
         return setloclist(a:opts.location, a:list)
         return setqflist(a:list)
     endif
 endfunction
-function s:cmd.function(pattern, opts)
+function s:_aufunctions.cmd.function(pattern, opts)
     if has_key(a:opts, 'files') && a:opts.repo is# ':'
         let repo=s:_r.cmdutils.checkedgetrepo(a:opts.files[0])
     else