Having edit(m::Module) open package directory instead of file where module is defined

This line seems to do the trick:

edit(m::Module) = edit(abspath(joinpath(pathof(m), "..", "..")))

# opens /Users/patrick/.julia/packages/AbstractPlotting/gE7AT/:
edit(AbstractPlotting) 

… but I have a suspicion that what I want is already implemented somewhere and/or there’s a better way to do this. Thoughts?

You might be able to just fix Make @edit work with packages · Issue #32333 · JuliaLang/julia · GitHub with your as a PR :slight_smile:

1 Like