Commit Graph

70 Commits

Author SHA1 Message Date
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
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
Steve Losh
ca682f6f9e Merge. 2010-10-19 14:57:02 -04:00
claytron
4b01e7a4c7 Emit a warning when there is no Python support, or unsupported Python version 2010-10-19 14:35:07 -04:00
Vincent Driessen
a217cebb3a Add Python 2.4 compatibility. 2010-10-19 09:37:54 +02:00
Steve Losh
f15e7eab8c Unfold diff previews by default. 2010-10-18 10:37:40 -04:00
Steve Losh
6dc4627f73 Fix a pile of bugs by showing the root node in the graph. 2010-10-17 15:02:33 -04:00
Steve Losh
18068eb250 Map "q" to close the graph. 2010-10-15 18:20:53 -04:00
Steve Losh
4e76e0e8ff Fix the pane opening. 2010-10-13 15:26:49 -04:00
Steve Losh
8e4432a73f Put the preview page below the graph instead. 2010-10-13 15:19:20 -04:00
Steve Losh
9514fd457e Add a sanity check in case someone closes the preview window. 2010-10-12 22:35:16 -04:00
Steve Losh
f2f847d973 Add a node mapping to get rid of some nastiness. 2010-10-12 22:33:06 -04:00
Steve Losh
b8ea3bd823 Add timestamps to the diff previews. 2010-10-12 22:23:38 -04:00