<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap:break-word"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px;color:rgba(0,0,0,1.0);margin:0px;line-height:auto">On April 5, 2017 at 2:27:34 PM, Tim Bates (<a href="mailto:timothy.c.bates@gmail.com">timothy.c.bates@gmail.com</a>) wrote:</div> <div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:13px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span><div class="" style="word-wrap:break-word"><div></div><div>Thanks Jacob,<div class="">I should have said I’ve forked these bundles from github so as to be able to maintain my changes, use them on multiple machines etc.</div><div class="">So, I don’t have a set of over-rides from pristine.</div><div class=""> <br class=""><div><blockquote type="cite" class=""><div class="">On 5 Apr 2017, at 4:16 pm, Jacob Carlborg <<a href="mailto:doob@me.com" class="">doob@me.com</a>> wrote:</div><div class=""><div class="" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><blockquote type="cite" class=""><div class="">Like many of us, I suspect, I’ve got core bundles  (like markdown, regex etc.) that I have customised with new snippets and commands, or just just tweaks to language.</div><div class=""><br class="">I’d like extricate my code from these, so that<br class="">1. I can let TM2 easily update the mainstream bundle<br class="">2. I can control my mods<br class="">3. From that base of clarity, I can submit generally-useful changes back to the widely used central repo.<br class=""><br class="">Are there any solutions to<span class="Apple-converted-space"> </span><br class="">1. Diffing the pristine bundle with my dirty copy?<br class="">2. Exporting modified snippets and commands to my personal repo<br class=""><br class="">Ideally, the UUID exported commands would be entered into the plist of my personal repo, perhaps under “exported from <bundlename> as a menu name.<br class=""><br class="">Hope others have had this problem and solved it :-) Otherwise bit of a manual trek in store for summer :-)<br class=""></div></blockquote><br class=""></div><div class="" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">As far as I understand, at least for the built-in bundles, TextMate will store the changes separately from the main bundle. The built-in bundles are stored in ~/Library/Application Support/TextMate/Managed/Bundles, if you make a change to one of those, it will store those changes as a diff (or rather the overrides) in ~/Library/Application Support/TextMate/Bundles. There’s also a directory called "Pristine Copy”, see section 5.2 here [1] for more information.</div><div class="" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br class=""></div><div class="" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">[1] <a href="https://manual.macromates.com/en/bundles" class="">https://manual.macromates.com/en/bundles</a> - not sure if this is up to date</div></div></blockquote></div><br class=""></div><br>_______________________________________________<span class="Apple-converted-space"> </span><br>textmate mailing list<span class="Apple-converted-space"> </span><br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><span class="Apple-converted-space"> </span><br><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></div></div></span></blockquote></div><p>I’m interested in hearing from a bundle developer or 2 on the topic. I dabble (plug: my fork of <a href="https://github.com/loadedsith/JavascriptHinter.tmbundle">Javascript Hinter</a>)</p><p>I use <a href="https://github.com/andsens/homeshick">homeshick</a> to manage my settings/bundles. I’ve used the <a href="https://github.com/andsens/homeshick/wiki/Symlinking">symlinking</a> guide and</p><p>~/Library/Application Support/TextMate </p><p>now points to</p><p> ~/.homesick/repos/textmate-settings/Application Support/TextMate</p><p>Homeshick creates a git repo under repos/[repo name]. Committing (or reverting) changes is now done in this git repository.  If you like what you’ve changed you can commit or you could move the change into the bundle. For instance: If I make a change to a command, first I look at repo status, and then I move the changes in into the bundle. Remove the diffs, and re-launch TextMate.</p><p>I’m way over complicating this, I assume?</p><p>Thanks,</p><p>Graham Heath</p><div></div></body></html>