# HG changeset patch # User Steve Losh # Date 1289355201 18000 # Node ID d8a13f17507fa7be142a56c69ee72d77e657d781 # Parent 02ebd6ed682f83186104e1f37b0c0c6a34b29867 Add the p mapping to preview a change. diff -r 02ebd6ed682f -r d8a13f17507f doc/gundo.txt --- a/doc/gundo.txt Tue Nov 09 20:56:24 2010 -0500 +++ b/doc/gundo.txt Tue Nov 09 21:13:21 2010 -0500 @@ -96,6 +96,10 @@ Pressing enter on a state (or double clicking on it) will revert the contents of the file to match that state. +You can use p on a state to make the preview window show the diff between +your current state and the selected state, instead of a preview of what the +selected state changed. + Pressing P while on a state will initiate "play to" mode targeted at that state. This will replay all the changes between your current state and the target, with a slight pause after each change. It's mostly useless, but can be @@ -192,6 +196,8 @@ * Fix movement commands with counts in the graph. * Make GundoToggle close the Gundo windows if they're visible but not the current window, instead of moving to them. + * Add the 'p' mapping to preview the result of reverting to the selected + state. v1.0.0 * Initial stable release. diff -r 02ebd6ed682f -r d8a13f17507f plugin/gundo.vim --- a/plugin/gundo.vim Tue Nov 09 20:56:24 2010 -0500 +++ b/plugin/gundo.vim Tue Nov 09 21:13:21 2010 -0500 @@ -55,6 +55,8 @@ let g:gundo_right = 0 endif"}}} +let s:inline_help_length = 6 + "}}} "{{{ Mercurial's graphlog code @@ -427,7 +429,8 @@ INLINE_HELP = '''\ " Gundo for %s [%d] " j/k - move between undo states -" - revert to that state +" p - preview diff of selected and current states +" - revert to selected state ''' ENDPYTHON @@ -518,6 +521,7 @@ nnoremap