tamzinblake / js3-mode

A chimeric fork of js2-mode and js-mode
GNU General Public License v3.0
181 stars 13 forks source link

imenu failed to list the functions in js3-mode #63

Open redguardtoo opened 11 years ago

redguardtoo commented 11 years ago

Here is the sample code, js3-mode-20120508 installed through elpa,

(function () {
    var Hello = this.Hello = (function ($) {
        function locateIFrameIndex(iframe) {
          alert('bye world')
        }
        var onCrossDomainMessage = function (e) {
          alert('hello world')
        };
        return {
          init:function(){
            alert('init')
          }
        };
    })(jQuery);
})(this);
$(document).ready(Hello.init);
tamzinblake commented 11 years ago

You know, I was actually wondering if anyone used imenu support in js3-mode. I was going to take it out in the next version.

redguardtoo commented 11 years ago

how you do the nav thing in javascript then?

eethann commented 11 years ago

Another vote for this issue. I find imenu quite useful via helm for js nav, but not being able to jump to names async.waterfall functions, for example, is a bit of an issue for me with js3-mode.

rags commented 9 years ago

+1. I find imenu useful, it'll be nice to get this working for js3. For now the alternative is to use helm-occur.