Commits

ZyX_I  committed b242364

@%commit: Added InsPrev commit mapping (untested)

Fixes #86

  • Participants
  • Parent commits 4da9419

Comments (0)

Files changed (2)

File doc/aurum.txt

                   cursor or prompts user).
     FVdiff   gD   Open a number of vimdiff splits with all files to be 
                   committed.
+    InsPrev   p   Insert previous saved commit message, see 
+                  |g:AuPreviousCommitMessage|.
 
     Note These mappings are defined for aurumcommit filetype.
 

File ftplugin/aurumcommit.vim

         return s:_r.vimdiff.full(bvar.repo,
                     \            [0, bvar.repo.functions.getworkhex(bvar.repo)],
                     \            1, s:F.listfiles(bvar), 0)
+    elseif a:action is# 'insprev'
+        call setline('.', split(g:AuPreviousCommitMessage, "\n", 1))
     endif
 endfunction
 "▶1 AuCommitMessage mapping group
             \  'Vdiff': {'lhs':  'D', 'rhs': ['vimdiff'    ]},
             \ 'FVdiff': {'lhs': 'gD', 'rhs': ['fullvimdiff']},
             \   'Exit': {'lhs':  'X', 'rhs': ['discard'    ]},
+            \'InsPrev': {'lhs':  'p', 'rhs': ['insprev'    ]},
         \}, {'mode': 'in', 'silent': 1, 'leader': '<LocalLeader>',
         \    'func': s:F.mapwrapper})
 "▶1