Thank you again Tim Bates! I finally understood what you meant and managed to fix the menu. https://github.com/fonnesbeck/knitr.tmbundle/pull/2

Cheers,
Leo


On Wed, Feb 19, 2014 at 10:44 PM, Leonardo Collado Torres <lcollado@jhsph.edu> wrote:
Hello again,

Thank you for the replies! I'm sorry, but I had disabled emails from this list and forgotten about it. But hopefully, this  reply will still connect to the thread http://lists.macromates.com/textmate/2014-February/037121.html


Going back to the issue at hand, if I understood your reply correctly you are suggesting starting over. Which from looking at https://github.com/fonnesbeck/knitr.tmbundle/commits/master it would basically involve the commits by fonneseck from June 21, 2012 on forward.


As for uuid's on the plist that are not on the bundle, I tried finding all of those that were only on the plist and removing them as described earlier (use https://gist.github.com/lcolladotor/9077862) but that didn't work out either.


Thank you,
Leonardo

PS I've proposed changes to the markdown-redcarpet.tmbundle to integrate R markdown files: https://github.com/streeter/markdown-redcarpet.tmbundle/pull/7 Once the knitr.tmbundle (which is for Rnw files) is done, I plan on summarizing how to get a full R + textmate + knitr setup. 




On Tue, Feb 18, 2014 at 2:26 PM, Leonardo Collado Torres <lcollado@jhsph.edu> wrote:
Hello Textmate list,

I am trying to understand why the knitr.tmbundle is not showing all the commands in the bundle menu as shown below:

Inline image 1

It's missing a few commands there, such as "Knit in R". You can try it out yourself by installing it:

$ cd ~/Library/Application Support/Avian/Bundles
$ git clone git@github.com:lcolladotor/knitr.tmbundle.git

Note that https://github.com/lcolladotor/knitr.tmbundle is forked from https://github.com/fonnesbeck/knitr.tmbundle as I tried to fix some other minor issues (uuid conflicts with SWeave bundle, ^< shortcut for "insert code chunk" macro). The original repo is https://github.com/textmate/sweave.tmbundle

The menu is incomplete regardless of whether the SWeave bundle is installed or not.

I tried playing around with the .plist file after reading http://superuser.com/questions/380371/how-do-i-create-a-new-snippet-in-textmate-2 leading to https://gist.github.com/9077862 but that didn't work either. 

Any tips on how to fix the menu will be greatly appreciated! Right now the only thing that comes to mind is using the Bundle creator GUI and re-making the commands, but that sounds like the last option to take.


I'm using TextMate 2.0-alpha.9503 on a Mac with OS X 10.8.5.

Thank you,
Leonardo

Leonardo Collado Torres, PhD student
Department of Biostatistics
Johns Hopkins University
Bloomberg School of Public Health