atom-haskell-archive / haskell-ghc-mod

haskell-ghc-mod atom package
https://atom.io/packages/haskell-ghc-mod
MIT License
69 stars 20 forks source link

Ctrl + click for go to declaration? #197

Open doivosevic opened 7 years ago

doivosevic commented 7 years ago

Hi! Could we imitate the feature from ctags ?

It seems ctrl+click is not allowed because atom uses it so alt will have to do link Edit: I'm not sure which of the combinations of something+click is available but I would like one of them :)

lierdakil commented 7 years ago

Should be doable in principle, but rather awkward in practice. Just copying https://github.com/yongkangchen/atom-ctags/commit/970ca17630e1dd4eee04f82ab98baf5e08562c17 won't work as expected, since event would be bound to text cursor position, and converting mouse cursor position to text cursor is rather involved. I will try to keep this in mind, but right now I don't have enough spare time to hack on this.PRs are welcome, but I would prefer those also took https://github.com/atom-haskell/haskell-ghc-mod/issues/196 into consideration.