begriffs / haskell-vim-now

One-line Haskell Vim install
MIT License
988 stars 100 forks source link

Limiting Hoogle searches to my local project code? #265

Open capn-freako opened 7 years ago

capn-freako commented 7 years ago

Using these new tools, is there a way to perform a custom Hoogle search (i.e. - ",hH") on just my local, multi-package project code, ignoring type signature matches from Hackage? And, if so, can it be done on a partially completed type signature?

I would like to enter the string "Graph -> \", in response to the prompt I get when I type ",hH" in normal mode, and have it show me just those functions defined in the local project, with type signatures beginning with "Graph -> ".

begriffs commented 7 years ago

Definitely makes sense as a useful feature. The tool to do it (at least as of 2015) was hoobuddy. To learn how to use that, see https://begriffs.com/posts/2015-07-27-haskell-source-navigation.html at about 13:00.

Interested in submitting a pull request based on the information in that video?