0

Is it possible to add one or more separators to the function popup in TextMate 2? Some context may help understand what I mean:

TextMate 2 function popup

I'd like to group the functions into logical sections, similar to what Xcode does with the '#pragma -' option. Is this possible?

Thanks!

titusmagnus
  • 2,014
  • 3
  • 23
  • 23
  • This is probably more of a question for the textmate support page (very responsive) or apple.stackexchange.com. – beroe Oct 05 '13 at 04:18

1 Answers1

0

Just tested with TextMate version 2.0-alpha.9479 and

#pragma mark -

worked fine in a .cpp file.

It's a per-bundle trick and the Javascript bundle doesn't have it. You can do it yourself by customizing the bundle to recognize some specially formatted comments for instance.

Simon
  • 31,675
  • 9
  • 80
  • 92
  • `#pragma mark - blah blah` is fairly widely supported for .c, .cpp, .h and .m files. Do you have a solution that works with .php? Thanks! – Olie Apr 27 '15 at 22:07
  • @Olie Same idea: look at how it is done in the C/C++ bundle and hack something similar in the PHP bundle. – Simon Apr 27 '15 at 22:23