Hey All,
I’m modifying someone else’s bundle: https://github.com/desandro/CSS3.tmbundle to extend it, with the intention of submitting changes to the original author. I removed the original bundle from App Support/TextMate/Bundles, checked it wasn’t in Pristine Bundles, forked https://github.com/oli/CSS3.tmbundle and cloned into App Support/TextMate/Bundles, then I went about extending it.
However for snippets which share a tab trigger, instead of getting a menu with options, I get the menu but with no text [screenshot attached]. I’m also unable to use the snippet, even by typing “1” for the first one etc. Other bundles work fine, and if I use unique trigger names this bundle’s snippets work fine. I’ve attached the bundle just in case.
Can anyone tell me what I’m doing wrong?
peace - oli studholme
PS is there a reference on bundles you could recommend? I found http://wiki.macromates.com/Bundles/StyleGuide, but it didn’t mention needing to have e.g. border after border-style to get the -style part scoped properly, and I couldn’t find the validate_bundle.rb script it mentioned…
On 29 Aug 2011, at 17:51, Oli Studholme wrote:
[…] for snippets which share a tab trigger, instead of getting a menu with options, I get the menu but with no text […]
The problem is that the names start with a dash. This causes them to be rendered as a horizontal ruler in the menu.
This is underlying OS menu code which is responsible (not a TM feature per se).
PS is there a reference on bundles you could recommend? I found http://wiki.macromates.com/Bundles/StyleGuide, but it didn’t mention needing to have e.g. border after border-style to get the -style part scoped properly, and I couldn’t find the validate_bundle.rb script it mentioned…
The validate bundle script is in the Bundle Development bundle: https://github.com/textmate/bundle-development.tmbundle/tree/master/Support/...
Unfortunately we don’t have a style guide beyond the (somewhat outdated) wiki.