Commits

ZyX_I committed 779813c

ftplugin/aurumlog: Added support for “files” option to *FVdiff mappings. Fixes #36

  • Participants
  • Parent commits c698d5b

Comments (0)

Files changed (2)

File doc/aurum.txt

                   renames  “showrenames” will always show all renamed files.
                   copies   “showcopies” will always show all copied files.
                   files    “showfiles” will always show all changed files.
-                  diff     AuLog Fdiff and RFdiff mappings will show changes 
-                           done to all changed files.
+                  diff     AuLog Fdiff, RFdiff, FVdiff and RFVdiff mappings 
+                           will show changes done to all changed files.
                   open     AuLog Diff, Rdiff, Vdiff, RVdiff, File, Open and 
                            Annotate mappings will show all changed files in 
                            file selection dialog.

File ftplugin/aurumlog.vim

     let bvar=s:_r.bufvars[bufnr('%')]
     let hex=bvar.getblock(bvar)[2]
     let cmd=':AuVimDiff full noonlymodified '
+    if has_key(bvar.opts, 'files') && !has_key(bvar.opts.ignorefiles, 'diff')
+        let cmd.=join(map(copy(bvar.opts.files),
+                    \     '"files ".escape(v:val, " ")')).' '
+    endif
     if !a:0
         return cmd.'curfile '.hex."\n"
     else