emacs-fsharp-mode icon indicating copy to clipboard operation
emacs-fsharp-mode copied to clipboard

Symbol use in project

Open juergenhoetzel opened this issue 8 years ago • 7 comments

Currently you can get symbol-use information in the current buffer.

Would it be possible to get symbol-use information in the whole project (i.e. other files)?

Thanks!

juergenhoetzel avatar Mar 15 '16 15:03 juergenhoetzel

In FsAutoComplete this is done here: https://github.com/fsharp/FsAutoComplete/blob/master/src/FsAutoComplete.Core/CompilerServiceInterface.fs#L85

That could be changed or a new entry point added to get symbols across the whole file as described here: https://fsharp.github.io/FSharp.Compiler.Service/project.html

rneatherway avatar Mar 15 '16 18:03 rneatherway

Nice. Thanks for the hints! :+1: I will check it out.

juergenhoetzel avatar Mar 15 '16 18:03 juergenhoetzel

across the whole file

I meant across the whole project of course!

rneatherway avatar Mar 15 '16 20:03 rneatherway

A new command has been added to FsAutoComplete https://github.com/fsharp/FsAutoComplete/pull/101 (by @Krzysztof-Cieslak), so this is just now a matter of adding a keybinding and way to view the results in Emacs.

rneatherway avatar Apr 06 '16 15:04 rneatherway

helm Helm works really well for this.

The compilation buffer can be used for this purpose too.

nosami avatar Apr 06 '16 15:04 nosami

I often use occur, but whatever works best I would be happy to include.

rneatherway avatar Apr 06 '16 15:04 rneatherway

I currently use helm-projectile-ag for this purpose in emacs. Not as precise, but really fast :)

nosami avatar Apr 06 '16 15:04 nosami