How to show all functions in a js file? I am using js2, but any solution will do.
Additional info: I am expecting an occur style buffer. This can persist and be edited if necessary. Or searched. This is preferable in my opinion to a helm style navigation tool for two reasons: 1. Helm is useful for navigating quickly to a known entity, but not for grokking structure. 2. I can continue investigation and keep that buffer alive as alluded to above.
What have I tried? I tried using a straight up occur, but the regex started to get too complex, and I imagine there is a better solution. I also know that js2 or something can parse js properly, and surely that would do something close to what I need, and properly too.