<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 3 Oct 2012, at 13:32, Hans-Jörg Bibiko wrote:</div><blockquote type="cite"><div>Hmm, this could be easily achieved with a normal bundle command.<br>This command would simply save the current doc "foo.c" as "foo.c.1". If you invoke it again then "foo.c.2" etc.<br>If you want to revert write another command which lets you choose a state of your doc. Furthermore a diff could also be applied quite easily.<br></div></blockquote></div><div><br></div><div>Thanks, this is a good suggestion actually, which I might even end up adopting.</div><div><br></div><div>The main difference with what I was proposing though is that it lacks the integration with the undo history. In my scenario, I not only want to retrieve my file in its previous state, but also have my undo history at the corresponding level. So I'm really looking for a shortcut to "undo n times", with the correct n. This can be useful for a few reasons, such as being able to hit a few redos after reverting if necessary.</div><div><br></div><div>That being said, there might be a way to obtain this functionality without coding inside TextMate. Any suggestions?</div><div><br></div><div>Regards,</div><br><div><div><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>enas</div><div><br></div></span></div></div></body></html>