Eli Gundry
50092711ff
Added :GundoHide & :GundoShow for easier scripting
2011-12-31 17:37:13 -05:00
Steve Losh
240efe7415
Remove unused file.
2011-08-08 17:07:25 -04:00
Kien N
52c65f2eb4
Move most of the script to autoload
2011-06-29 03:06:37 +07:00
xaizek
d7d01c3ef4
Move all python code to a separate file.
2011-06-27 23:59:53 +03:00
Maciej Konieczny
fc9daff259
Fix window positions.
...
Graph and diff windows were swapped if user set `splitbelow` to 1:
:set splitbelow :set nosplitbelow
+---+---+ +---+---+
| D | | | G | |
+---+ S | +---+ S |
| G | | | D | |
+---+---+ +---+---+
D - diff, G - graph, S - source
This commit fixes this -- now diff is displayed below graph regardless of
`splitbelow` setting.
2011-05-25 23:57:18 +02:00
Steve Losh
584f1d52f8
Fix the default value for close_on_revert.
2011-05-09 21:10:50 -04:00
Paulo Koch
7aaeebd88b
Add option to close gundo on revert.
2011-05-05 02:54:44 +01:00
Steve Losh
39b4016784
Fix the movement key mapping issue.
2011-03-13 16:21:22 -04:00
Steve Losh
810b22109d
Merge.
2011-03-09 19:35:49 -05:00
Steve Losh
cc5fd99ce3
Rearrange default settings and tweak some spacing.
2011-03-09 19:29:21 -05:00
Daniel Hahler
c44c0c0345
Defer warning about incompatible Python.
...
This uses the GundoDidNotLoad approach from 8de0b4ce47
also
for the "Gundo requires that Vim be compiled with Python 2.4+" error.
Also retab the original GundoDidNotLoad code block and fix the English.
2011-03-09 23:10:48 +01:00
Nathan Howell
2677c0a07f
add remapping options for graph navigation keys
2011-02-27 15:53:34 -08:00
Seth Milliken
8de0b4ce47
defer "can't load gundo" warning
...
Only inform that gundo didn't load when an attempt is made to invoke it.
Too many hosts still don't have vim 7.3, but I'd like to do a straight
update of my vimfiles from my dvcs without needing any fiddly
conditionals in order to load vim without a warning message.
2010-12-29 15:16:33 -08:00
Steve Losh
7ed3cc2fc2
guts: add the linear movement tests and fixes
2010-12-09 21:59:57 -05:00
Steve Losh
18534216e1
ui: map o/up/down
2010-12-09 20:30:22 -05:00
Steve Losh
47cdf9b946
Remove duplicate function.
...
--HG--
extra : rebase_source : dbdffd3437b7f0537f95323701ea72f83dd61e5d
2010-12-08 12:31:06 -05:00
Steve Losh
2562ab7ae8
Change the help text to make unit testing easier. Lame.
2010-11-12 21:01:55 -05:00
Steve Losh
1658b76b10
Remove the debugging print statement.
2010-11-10 11:21:35 -05:00
Steve Losh
c15917214b
Add a g:gundo_help setting to disable the inline help.
2010-11-09 21:35:34 -05:00
Steve Losh
09fcef2178
Add the p mapping to preview a change.
2010-11-09 21:13:21 -05:00
Steve Losh
5cd18132a7
Fix a bug when previewing the last change at a maxed out undolevel.
2010-11-09 20:56:24 -05:00
Steve Losh
a98989b6f8
Move the rendering utility functions around a bit.
2010-11-09 20:14:18 -05:00
Steve Losh
240584a769
Make GundoToggle behave more sanely.
...
fixes issue 17
2010-11-09 19:46:05 -05:00
Steve Losh
484d9846ef
Fix movement commands with counts in the graph.
...
fixes issue 14
2010-11-04 19:44:28 -04:00
Steve Losh
76c9936720
Add g:gundo_disable.
...
fixes issue 15
2010-11-02 00:07:18 -04:00
Steve Losh
6a6f6cfff7
Refactor the preview render calls a bit.
2010-10-29 09:49:33 -04:00
Steve Losh
67c26ded75
Remove obsolete TODO.
2010-10-29 09:48:47 -04:00
Steve Losh
a4798311dc
Use bufloaded() instead of bufname() as a sanity check.
2010-10-29 09:47:46 -04:00
Steve Losh
50c2ef56d3
Merge.
2010-10-28 20:42:03 -04:00
Steve Losh
c085ec1451
Add some sanity checks, fix some bugs.
...
Sorry about the bad commit message.
2010-10-28 20:16:09 -04:00
Randy Morris
3f7226297d
Add g:gundo_preview_bottom option
2010-10-27 19:09:02 -04:00
Steve Losh
d16683449c
Factor out the "get target state" functionality into its own function.
2010-10-20 21:34:49 -04:00
Steve Losh
0502b8ae47
Set the correct foldmethod for the preview pane.
2010-10-20 21:34:18 -04:00
Steve Losh
eb6fc83f02
Add mouse support and rearrange some functions.
2010-10-20 21:23:21 -04:00
Steve Losh
cc806d3f35
Add a configuration var to open Gundo on the right.
...
You people are insane.
2010-10-20 19:51:09 -04:00
Steve Losh
af4b6e67b9
Make the preview pane's height configurable.
2010-10-20 19:46:37 -04:00
Steve Losh
a2bc33b076
Rename a few functions.
2010-10-20 19:43:22 -04:00
Steve Losh
6ae682e462
Add some preview buffer mappings and move the settings functions.
...
fixes issue 11
2010-10-20 19:35:33 -04:00
Steve Losh
ae7143b3ce
Add folding markers. Sometimes I hate Vim.
2010-10-20 19:29:43 -04:00
Steve Losh
e4b1fff8c5
Fix section header capitalization.
2010-10-20 19:14:38 -04:00
Steve Losh
3112626d7f
Factor out the buffer mappings into functions.
2010-10-20 19:12:32 -04:00
Steve Losh
68b2f953df
Map :q and :quit to close the gundo pane when you are in it.
...
fixes issue 10
2010-10-20 19:04:50 -04:00
Steve Losh
d92ceb5242
Edit section header.
2010-10-20 19:03:35 -04:00
Steve Losh
e98bb9d6de
Check for Vim 7.3+.
...
fixes issue 13
2010-10-20 18:55:09 -04:00
Steve Losh
7461384593
Unfold everything before starting playback.
...
fixes issue 9
2010-10-20 18:43:43 -04:00
Steve Losh
011f902ac7
Add a g:gundo_debug flag to disable the loading trap to keep my sanity.
2010-10-20 18:43:15 -04:00
Steve Losh
ae996744a5
Fix things when you've maxed out your undolevels.
...
This sure is ugly, but it's the only efficient way I can find to do it.
fixes issue 12
2010-10-20 18:33:48 -04:00
Caleb Spare
35e49c82d2
Changed gundo buffers to be unlisted.
2010-10-19 18:21:28 -07:00
claytron
7f2ce0ffeb
update the version comparison to reflect Python 2.4 compatibility
2010-10-19 15:59:39 -04:00
Steve Losh
2a12b4883f
Uncomment the loaded trap.
2010-10-19 14:57:45 -04:00