Source

aurum / autoload / aurum / file.vim

Diff from to

autoload/aurum/file.vim

 "▶1 
 scriptencoding utf-8
 execute frawor#Setup('0.2', {'@%aurum/cmdutils': '4.3',
-            \                '@%aurum/maputils': '0.1',
+            \                '@%aurum/maputils': '0.2',
             \                 '@%aurum/bufvars': '0.0',
             \               '@%aurum/lineutils': '0.0',
             \                 '@%aurum/vimdiff': '1.0',
 call s:_f.newcommand(s:file)
 unlet s:file
 "▶1 aurum://file mappings
-function s:F.runmap(action)
+function s:F.runmap(action, ...)
     let buf=bufnr('%')
     let bvar=s:_r.bufvars[buf]
     if a:action is# 'exit'
     elseif a:action is# 'previous' || a:action is# 'next'
         let c=((a:action is# 'previous')?(v:count1):(-v:count1))
         let [rev, file]=s:_r.maputils.getnthparentfile(bvar.repo, bvar.rev,
-                    \                                  bvar.file, c)
+                    \                                  bvar.file, c,
+                    \                                  get(a:000, 0, 1))
         let bhwipe=(&bufhidden is# 'wipe')
         if has_key(bvar, 'preserve')
             let d={'restore': bvar.preserve()}
 call s:_f.mapgroup.add('AuFile', {
             \   'Next': {'lhs':  'K', 'rhs': s:m('next'          )},
             \   'Prev': {'lhs':  'J', 'rhs': s:m('previous'      )},
+            \'NextMod': {'lhs': 'gK', 'rhs': s:m('next'    , 0   )},
+            \'PrevMod': {'lhs': 'gJ', 'rhs': s:m('previous', 0   )},
             \ 'Update': {'lhs':  'U', 'rhs': s:m('update'        )},
             \   'Exit': {'lhs':  'X', 'rhs': s:m('exit'          )},
             \   'Diff': {'lhs':  'd', 'rhs': s:m(          'diff')},