-
-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend selection by expression #54
Comments
Good point. I will try to fix that in next beta. |
Version 1.0.0.-beta3 supports "Extend selection" |
Can you check if it works like you expect? |
Perfect, thanks! |
I think current "extend selection" is broken. It's trying to select the AST by hierarchy where intellij-haskell's AST is really a flat token sequence, even with a parenthesis. |
Yes, expressions are flat because parser does not take layout into account. That's why we need to improver the parser. But the current workaround solution works fine for me 😄 |
What workaround? I didn't see one. BTW it's not the problem of layout. If you have f :: (<selection start>a -> b<selection end>) -> c and you do extend selection, it'll become f :: (<selection start>a -> b)<selection end> -> c Which is terrible. |
My use case is expressions and for that it works well. |
Could you please add parenthesis support for type declarations too? |
Yes, can do that. Btw, it is implemented in |
Currently "Extend selection" functionality is rather naive (selects the whole function). Haskforce (and emacs) do it by selecting the outer expression, this is very useful when looking at expression types.
The text was updated successfully, but these errors were encountered: