halohalospecial / atom-elmjutsu

A bag of tricks for developing with Elm. (Atom package)
https://atom.io/packages/elmjutsu
MIT License
192 stars 24 forks source link

Allow hyperclick to structure member definitions (enhancement) #58

Closed jespersm closed 7 years ago

jespersm commented 7 years ago

If I Cmd-click on a field name, it would be lovely if Elmjutsu could navigate to the definition, just like it can for for other structures. E.g.:

type alias Meal =
    { mainCourse : String
    , dessert : Maybe String
    }

eat : Meal -> String
eat meal =
    if meal.dessert == Nothing then
        "😊"
    else
        "😁"

Cmd-clicking on dessert in the field-selection expression meal.dessert could navigate to the dessertdefinition in Meal, and meal should navigate to the formal parameter meal of eat.

I wouldn't mind trying to add this myself, but I'm not entirely sure where to begin...