<html><head><style>body{font-family:Helvetica,Arial;font-size:13px}</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Hiya Everybody,</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I’m trying to group commands in a bundle, and to create directions for others on how to do so. Unfortunately I’ve been unable to successfully move a single bundle item.</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">I feel like I’m very close, and I wonder if anyone could tweak these steps to make it work. </div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;">Please and thanks!</div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><i>How to move, order or group bundle items in a TextMate 2 Bundle?</i></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;"><div id="bloop_customfont" style="margin: 0px;">** Disclaimer: This does not work**</div><div id="bloop_customfont" style="margin: 0px;"></div></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">It seems that it is a manual process of editing a info.plist, using uuidgen on you script to generate the correct uuid for the info.plist. </div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">http://textmate.1073791.n5.nabble.com/Submenus-in-bundles-and-the-info-plist-td26547.html</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">But others indicate this is less than successful.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">http://superuser.com/questions/405782/is-it-possible-to-rearrange-commands-and-snippets-inside-of-a-bundles-menu-acti</div><div><br></div></div></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><div id="bloop_customfont" style="margin: 0px;">This is what is suggested by all the research I could find (Linked below). I'm leaving it here in hopes that someone can more easily find the missing piece and improve it. I've even sent a copy along to the TextMate Mailing List to see if they can find the flaws.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">First back up your bundle. Then using XCode's plist editor, open your bundle's info.plist.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">Creat this structure if you dont already have it.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">1. Right click -> Add Row -> "mainMenu".</div><div id="bloop_customfont" style="margin: 0px;">2. Change "mainMenu"'s type to Dictionary.</div><div id="bloop_customfont" style="margin: 0px;">3. Create nested items "submenus", "items", and "excludedItems", changing "submenus" and "excludedItems" to "Dictionary" and "items" to Array as you go</div><div id="bloop_customfont" style="margin: 0px;">4. Open Terminal.app and run the command `uuidgen`</div><div id="bloop_customfont" style="margin: 0px;">5. Copy the output.  (from now on called [UUID#1])</div><div id="bloop_customfont" style="margin: 0px;">6. Create a new item under "submenus", naming it by pasting [UUID#1]</div><div id="bloop_customfont" style="margin: 0px;">7. Change [UUID#1]'s type to Dictionary.</div><div id="bloop_customfont" style="margin: 0px;">8. Add a child to [UUID#1] named "name", set its value to "Network Scripts" (or whatever)</div><div id="bloop_customfont" style="margin: 0px;">9. Add a child to [UUID#1] named "items", set its type to Array</div><div id="bloop_customfont" style="margin: 0px;">10. Add items using the (+) button, each item is a UUID from your commands. To get this UUID, open the command's file in TextMate. If you try to Open the .tmCommand file directly TextMate will complain, "The bundle item [Bundle Item]; is already installed". </div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">  a) You can simply open the Commands folder, and textmate won't mind opening the files from the file drawer.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">  or</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">  b) or `mate ~/Library/Application Support/Avian/Bundles/[Your Bundle]/Commands/[Your Command]. </div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">11. When the file is open find these lines. You're string will be different but formatted the same.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">    <span class="Apple-tab-span" style="white-space:pre">    </span><key>uuid</key></div><div id="bloop_customfont" style="margin: 0px;"><span class="Apple-tab-span" style="white-space:pre">   </span>    <string>8E9BA0D3-E282-4516-8565-E920EA98C898</string></div><div id="bloop_customfont" style="margin: 0px;">  This is the UUID for your command. Now known as [UUID#2]</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;">12. Go back to the info.plist, in step 9 you created a "items" array, add [UUID#2] to the array.</div><div id="bloop_customfont" style="margin: 0px;">13. Add [UUID#2] to a “ordering" (type Array) object on the root of the xml.</div><div id="bloop_customfont" style="margin: 0px;">14. Repeat 10 - 13 to add multiple items.</div><div id="bloop_customfont" style="margin: 0px;">15. Save.</div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><br></div><div id="bloop_customfont" style="margin: 0px;"><br></div></div><br><div class="bloop_sign" id="bloop_sign_1421168386708997120"><div style="font-family:helvetica,arial;font-size:13px"> <br>Graham P Heath<br><br></div></div></body></html>