I\'ve looked around, and am not sure if this is possible, but here goes:
I have a (javascript) file (say /lib/client.js) in which I have a unique identifier assigned
In magit, you can do this with
l, =L
It will then ask you for file and start,end lines.