[RFC] diff: add a line option to open_editor

This patch allows to open file from a diff view at the actual line
number. Currently, only the vim editor is supported.