Whatever happened to the section snippets in the LaTeX bundle? The menu item is empty…
Dan, curious
Interesting… they are there in the .bundle directory, but I cannot get them back into TextMate. What I have done, ages ago, is I changed the section snippets and moved them to my own custom LaTeX Bundle, but now there is, even after deleting all Latex.bundle directories except my own, still no sign of any section snippets in Textmate…?
Which other files do I need to delete to get the full LaTeX.bundle back?
Dan
On 17/6/2006, at 14:12, Daniel Käsmayr wrote:
Interesting… they are there in the .bundle directory, but I cannot get them back into TextMate. What I have done, ages ago, is I changed the section snippets and moved them to my own custom LaTeX Bundle, but now there is, even after deleting all Latex.bundle directories except my own, still no sign of any section snippets in Textmate…?
If you moved them, they are now in your own bundle, so you would have to a) remove that or b) edit the snippets in your own bundle to provide them with new UUID’s.
If you did remove them from your custom bundle, then check the info.plist of that bundle, it has a ‘deleted’ array recording UUID’s of items deleted from that bundle. This should generally only be used for items which gets deleted but are included with TextMate (as there is no other way to delete default items than just remember the fact, that the user wanted them deleted.)
If you moved them, they are now in your own bundle, so you would have to a) remove that
Yes, my modified versions are in my bundle -- which I don’t want to remove, of course. I did not create new snippets but just dragged the LaTeX ones to my bundle and edited there.
b) edit the snippets in your own bundle to provide them with new UUID’s.
Do I just need to edit them there and they will get a new UUID? Or do I need to create new ones? How come the Snippets within the LaTeX bundle don't show up? Is the info on deleted items basedn on UUDI and it might be sitting in my custom bundle's plist?
Dan
On 17/6/2006, at 14:27, Daniel Käsmayr wrote:
If you moved them, they are now in your own bundle, so you would have to a) remove that
Yes, my modified versions are in my bundle -- which I don’t want to remove, of course. I did not create new snippets but just dragged the LaTeX ones to my bundle and edited there.
Yes, so technically the LaTeX snippets are still there, but slightly modified, and in a new bundle -- if one wants to preserve the originals, one should use duplicate, but you probably know that now :)
b) edit the snippets in your own bundle to provide them with new UUID’s.
Do I just need to edit them there and they will get a new UUID? Or do I need to create new ones?
No, you need to go locate the snippets on disk, then load them into TextMate as the XML files they are, there will be something like this (near the bottom):
<key>uuid</key> <string>5DCC37FC-C034-4701-B909-AE362EFAADBD</string>
This long dash-separated hexadecimal string needs to be changed to a new UUID. One way is to select it, delete it, type uuidgen, select that, and then press ⌃⌥R -- this will execute uuidgen and replace the command with the result (a newly generated UUID.)
How come the Snippets within the LaTeX bundle don't show up? Is the info on deleted items basedn on UUDI and it might be sitting in my custom bundle's plist?
They are not showing up because they are technically now in your custom bundle.
Previously TM didn’t enforce this as strongly as it currently does, which is the only reason as to why you may have seen the originals and your customized versions in the past.