Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
More imenu entries (for javascript, vuejs style) #886
Comments
fxbois
added
the
minor mode
label
Jul 9, 2017
vindarel
commented
Oct 26, 2017
|
Note: by launching emacs with This question is then a little feature request: in vue-mode, be able to see "data", "props", "computed" and "methods" entries (which are not only functions). |
|
@vindarel could you give me more details please (some examples) |
vindarel
commented
Oct 26, 2017
|
yes, for the little feature, given my example code, it would be to also catch "props", "entries" which are not functions and are not caught presently. Also it would be to put "entries" into a "computed" subgroup and to have a "methods" subgroup. Is that better ? |
vindarel commentedJun 7, 2017
•
edited
Hi,
Currently the imenu shows some html tags. I'd like it to show javascript functions, including in vuejs files.
I've seen
web-mode-imenu-regexp-listandweb-mode-imenu-indexand it looks to me they are specially crafted to catch html tags (as seen in http://web-mode.org/doc/imenu.txt). So it is very unclear to me how to add regular imenu entries.I have a regexp, checked with the regexp builder:
(also I don't know how to override the existing entries and use just that. I tried:
as discussed on emacswiki and SE with no luck.)
An example code:
there would be functions and data to catch, hence a few imenu regexps to write. We could even have a menu title with "computed", "methods" and other functions defined elsewhere.
How can we do that in web-mode ?
imenu doc: https://www.gnu.org/software/emacs/manual/html_node/elisp/Imenu.html
To try things out I also did
but I can't see any change…