I use a lot of custom code collapsing in my files where I'll have a comment and then indent a line and then a bunch of functions, kind of like this:
// GRID FUNCTIONS
This is my favorite feature of sublime text - how I can make custom code collapse groups under my comments just by indenting a level. In fact, I use this feature so much I changed the keyboard shortcut to just Ctrl+1 instead of Ctrl+k,Ctrl+1.
However, I've been very frustrated because when I push my keyboard shortcut, it doesn't always work. It seems to be dependent on where the my cursor is at the time. If I'm in the middle of a function and press Ctrl+1, it sometimes doesn't work and sometimes it does. However, if I'm at the top or bottom of my code and press Ctrl+1, it always works.
What's going on here? Is this a bug?