jlebon / textern

A Firefox add-on for editing text in your favourite external editor!
GNU General Public License v3.0
138 stars 21 forks source link

Pass the line/column to the editor #22

Closed phdru closed 6 years ago

phdru commented 6 years ago

Does Mozilla pass the line/column to the extension? Or may be there is a way to interrogate Mozilla for this additional information?

IWBN to pass them to the editor via command line. Something like ["gvim", "-f", "+$l", "-c", "normal $c|" $f] where $l, $c and $f are placeholders for line, column and file name.

Any syntax will do: %l, %c and %f, e.g.

jlebon commented 6 years ago

This feature was added in version v0.5. I've just submitted it to AMO!

phdru commented 6 years ago

Excellent! Thank you!