hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
361 stars 68 forks source link

file summary #77

Closed fommil closed 9 years ago

fommil commented 10 years ago

I'm not sure if this is best implemented in ENSIME or scala-mode2: https://github.com/ensime/ensime-server/issues/471

It may well be done with regexes instead of having to understand the AST.

What do you think?

hvesalai commented 10 years ago

Try this:

(speedbar-add-supported-extension "\\.scala")
(add-to-list 'speedbar-fetch-etags-parse-list
     '("\\.scala" . speedbar-parse-c-or-c++tag))
fommil commented 10 years ago

I just get a list of scala files when I call up the speedbar. I don't use ctags or etags in scala because ENSIME is doing a lot of the smarter stuff.

fommil commented 10 years ago

I turned on ctags when I save my scala files and the speedbar still just shows the filenames, not the contents within.

hvesalai commented 10 years ago

hmm... for me it worked without any ctags/etags things. Must look later how it works for me.

ancane commented 10 years ago

Hi. While hacking on scala-mode and popup.el, I'v put scala file summary into a popup menu. Please, take a look at https://github.com/ancane/scala-outline-popup.

hvesalai commented 10 years ago

@ancane I could mention that under some section in the README.md of scala-mode2

ancane commented 10 years ago

@hvesalai Thank you. It would be great!

colonelpanic8 commented 9 years ago

This can be closed now.

fommil commented 9 years ago

@IvanMalison I'm actually confused by the recent PR... has the scala-outline-popup now been merged into scala-mode2 or is it a separate functionality? How can I try out the new feature?

colonelpanic8 commented 9 years ago

It's not using scala-outline-popup. The functionality was implemeted using imenu which can be accessed with M-x imenu. This should open a completing read of the available symbols in the completion system that you use. With helm it will look something like this imenu_screenshot