Home Download Buy Blog Forum Support

Undo Tree Implementation and Visualization

Undo Tree Implementation and Visualization

Postby diego898 on Thu Nov 29, 2012 10:16 pm

I just switched from VIM to sublime text 2. I LOVED my vim, but st2 is a great editor too. I think the only MUST HAVE missing feature is the undo tree, and a way to visualize/manipulate the tree. Something like this: http://sjl.bitbucket.org/gundo.vim/
diego898
 
Posts: 10
Joined: Thu Nov 29, 2012 10:14 pm

Re: Undo Tree Implementation and Visualization

Postby diego898 on Thu Nov 20, 2014 7:16 pm

bump!
diego898
 
Posts: 10
Joined: Thu Nov 29, 2012 10:14 pm

Re: Undo Tree Implementation and Visualization

Postby diego898 on Wed Jan 14, 2015 1:38 am

bump!
diego898
 
Posts: 10
Joined: Thu Nov 29, 2012 10:14 pm

Re: Undo Tree Implementation and Visualization

Postby valerij_ on Sat Jan 17, 2015 2:37 pm

you could do it as a plugin by overriding the `undo`/`redo` commands (via `on_text_command`—"Called when a text command is issued. The listener may return a (command, arguments) tuple to rewrite the command, or None to run the command unmodified.") and having an own stack/tree. then your plugin can of course also visualize this tree
valerij_
 
Posts: 58
Joined: Fri Feb 14, 2014 5:59 pm

Re: Undo Tree Implementation and Visualization

Postby unphased on Sat Mar 28, 2015 8:56 pm

You bring up a great point here.

Hopefully soon someone will implement "Gundo for ST". I hope it won't be me, but if this goes on for another year it might actually be me.
unphased
 
Posts: 29
Joined: Thu May 17, 2012 5:16 am

Re: Undo Tree Implementation and Visualization

Postby FichteFoll on Thu Apr 23, 2015 1:31 pm

I've messed around with hooking the undo command and utilizing view.command_history before and my experiences weren't too great. I honestly would prefer this to be implemented as a core feature.
FichteFoll
 
Posts: 734
Joined: Fri Mar 16, 2012 11:49 pm
Location: Germany


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Yahoo [Bot] and 5 guests