<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">I have done something similar by symlinking select directories to a dropbox folder:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">$ ls ~/Library/Application\ Support/TextMate/ |grep Dropbox
Bundles -> /Users/benroux/Dropbox/Config/Textmate/Bundles/
Bundles-1.x -> /Users/benroux/Dropbox/Config/Textmate/Bundles/
Managed -> /Users/benroux/Dropbox/Config/Textmate/Managed/
Pristine Copy -> /Users/benroux/Dropbox/Config/Textmate/Pristine Copy/
Themes -> /Users/benroux/Dropbox/Config/Textmate/Themes/
</code></pre>
<p dir="auto">The only issue i have had has been the load order between the various directories, where m changes were being saves to Bundles but being ignored when restarting TextMate in favor of the Managed or Pristine Copy versions. Thankfully that seems to have been largely resolved as of 9 months ago or so.</p>
<p dir="auto">When it works right (which it is now) it has been a great “set it and forget it” solution between machines.<br>
Ben</p>
<p dir="auto">On 6 Apr 2017, at 14:57, Stefan Daschek wrote:</p>
<p dir="auto"></p></div>
<div style="white-space:normal"><blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px"><p dir="auto">Here's what I've been doing for the past few years:<br>
<br>
I have ~/Library/Application Support/TextMate/Bundles in a Git repo. Most of the Bundles I use regularly are included as submodules. This way I can use Git to keep track of my modifications and also easily create pull requests for upstream. For some lesser used bundles I only have TextMate’s “delta” bundles in the repo.<br>
<br>
You can find this repo on GitHub: <a href="https://github.com/die-antwort/textmate-bundles" style="color:#777">https://github.com/die-antwort/textmate-bundles</a> I also wrote some helper scripts to simplify updating the submoduled bundles and committing my changes.<br>
<br>
Downside of this approach: I have to manually check for updates of the submoduled modules and then merge them in.<br>
<br>
Upside: I find it easier to keep track of my customizations if they are in the context of the complete bundle, not only a delta bundle. Also, contributing to upstream is really simple.<br>
<br>
From time to time I clean up my customizations to remove changes that I either no longer use or that have been superseded by commits in upstream. (I wrote a blog post about how to do “something like a rebase but without destroying the history” here: <a href="https://die-antwort.eu/techblog/2016-08-git-tricks-for-maintaining-a-long-lived-fork/" style="color:#777">https://die-antwort.eu/techblog/2016-08-git-tricks-for-maintaining-a-long-lived-fork/</a> )<br>
<br>
S.<br>
<br>
Am 06.04.17 um 01:53 schrieb Graham Heath:</p>
<blockquote style="border-left:2px solid #777; color:#999; margin:0 0 5px; padding-left:5px; border-left-color:#999"><p dir="auto">On April 5, 2017 at 2:27:34 PM, Tim Bates (timothy.c.bates@gmail.com<br>
<<a href="mailto:timothy.c.bates@gmail.com" style="color:#999">mailto:timothy.c.bates@gmail.com</a>>) wrote:</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">Thanks Jacob,<br>
I should have said I’ve forked these bundles from github so as to be<br>
able to maintain my changes, use them on multiple machines etc.<br>
So, I don’t have a set of over-rides from pristine.<br>
</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">On 5 Apr 2017, at 4:16 pm, Jacob Carlborg <doob@me.com<br>
<<a href="mailto:doob@me.com" style="color:#BBB">mailto:doob@me.com</a>>> wrote:</p>
<blockquote style="border-left:2px solid #777; color:#BBB; margin:0 0 5px; padding-left:5px; border-left-color:#BBB"><p dir="auto">Like many of us, I suspect, I’ve got core bundles (like markdown,<br>
regex etc.) that I have customised with new snippets and commands,<br>
or just just tweaks to language.<br>
<br>
I’d like extricate my code from these, so that<br>
1. I can let TM2 easily update the mainstream bundle<br>
2. I can control my mods<br>
3. From that base of clarity, I can submit generally-useful changes<br>
back to the widely used central repo.<br>
<br>
Are there any solutions to<br>
1. Diffing the pristine bundle with my dirty copy?<br>
2. Exporting modified snippets and commands to my personal repo<br>
<br>
Ideally, the UUID exported commands would be entered into the plist<br>
of my personal repo, perhaps under “exported from <bundlename> as a<br>
menu name.<br>
<br>
Hope others have had this problem and solved it :-) Otherwise bit of<br>
a manual trek in store for summer :-)</p>
</blockquote><p dir="auto">As far as I understand, at least for the built-in bundles, TextMate<br>
will store the changes separately from the main bundle. The built-in<br>
bundles are stored in ~/Library/Application<br>
Support/TextMate/Managed/Bundles, if you make a change to one of<br>
those, it will store those changes as a diff (or rather the<br>
overrides) in ~/Library/Application Support/TextMate/Bundles. There’s<br>
also a directory called "Pristine Copy”, see section 5.2 here [1] for<br>
more information.<br>
<br>
[1] <a href="https://manual.macromates.com/en/bundles" style="color:#BBB">https://manual.macromates.com/en/bundles</a> - not sure if this is up<br>
to date</p>
</blockquote><p dir="auto">_______________________________________________<br>
textmate mailing list<br>
textmate@lists.macromates.com <<a href="mailto:textmate@lists.macromates.com" style="color:#BBB">mailto:textmate@lists.macromates.com</a>><br>
<a href="http://lists.macromates.com/listinfo/textmate" style="color:#BBB">http://lists.macromates.com/listinfo/textmate</a></p>
</blockquote><p dir="auto">I’m interested in hearing from a bundle developer or 2 on the topic. I<br>
dabble (plug: my fork of Javascript Hinter<br>
<<a href="https://github.com/loadedsith/JavascriptHinter.tmbundle" style="color:#999">https://github.com/loadedsith/JavascriptHinter.tmbundle</a>>)<br>
<br>
I use homeshick <<a href="https://github.com/andsens/homeshick" style="color:#999">https://github.com/andsens/homeshick</a>> to manage my<br>
settings/bundles. I’ve used the symlinking<br>
<<a href="https://github.com/andsens/homeshick/wiki/Symlinking" style="color:#999">https://github.com/andsens/homeshick/wiki/Symlinking</a>> guide and<br>
<br>
~/Library/Application Support/TextMate<br>
<br>
now points to<br>
<br>
~/.homesick/repos/textmate-settings/Application Support/TextMate<br>
<br>
Homeshick creates a git repo under repos/[repo name]. Committing (or<br>
reverting) changes is now done in this git repository. If you like what<br>
you’ve changed you can commit or you could move the change into the<br>
bundle. For instance: If I make a change to a command, first I look at<br>
repo status, and then I move the changes in into the bundle. Remove the<br>
diffs, and re-launch TextMate.<br>
<br>
I’m way over complicating this, I assume?<br>
<br>
Thanks,<br>
<br>
Graham Heath<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
textmate mailing list<br>
textmate@lists.macromates.com<br>
<a href="http://lists.macromates.com/listinfo/textmate" style="color:#999">http://lists.macromates.com/listinfo/textmate</a><br>
</p>
</blockquote><p dir="auto">_______________________________________________<br>
textmate mailing list<br>
textmate@lists.macromates.com<br>
<a href="http://lists.macromates.com/listinfo/textmate" style="color:#777">http://lists.macromates.com/listinfo/textmate</a></p>
</blockquote></div>
<div style="white-space:normal">
</div>
</div>
</body>
</html>