rikvdkleij / intellij-haskell

IntelliJ plugin for Haskell
https://rikvdkleij.github.io/intellij-haskell/
Apache License 2.0
1.31k stars 94 forks source link

Navigate/Class should be more tolerant #310

Closed sir4ur0n closed 5 years ago

sir4ur0n commented 6 years ago

Example: my Module name is AbCd.EfGh. When I use Navigate / Class and type Efh it should propose AbCd.EfGh module, the same way it does in Java. Use case: I have a long module name Abcdefghijkl and also a test AbcdefghijklSpec. When looking for the test I don't want to type the whole name or be spammed with non-tests modules. I want to type AbcSpec and find it. I think under the hood, it intercalates .* between each character and uses it as a regex for the Java feature.

rikvdkleij commented 6 years ago

I consider to use this Navigation action also to go to a function declaration, because that is currently missing.

Good idea?

rikvdkleij commented 6 years ago

About your issue 😄 I will take a look how to implement.

sir4ur0n commented 6 years ago

I don't get your proposal. It already works for me O_o

rikvdkleij commented 6 years ago

Only for functions which have a type signature/declaration (which is of course normally the case).

rikvdkleij commented 6 years ago

Fixed in next beta.

sir4ur0n commented 6 years ago

This doesn't seem to work? image

image

image

rikvdkleij commented 6 years ago

Did not test for that case :smile: Have to check if I can solve that case.

rikvdkleij commented 6 years ago

In next beta it is really fixed :smile:

rikvdkleij commented 5 years ago

Should be solved in beta 29.

Also fixed a regression issue, the declaration was not displayed anymore.

sir4ur0n commented 5 years ago

Seems to work like a charm, thank you!