2 ms·
You could support a variable $TEXTNOTE_EDITOR and it contains a string with placeholders for line number and file name. Or you always invoke the editor as "$ED
by hibbelig 6y ago
You could support a variable $TEXTNOTE_EDITOR and it contains a string with placeholders for line number and file name.
Or you always invoke the editor as "$EDITOR +$LINE $FILE" and if someone wants to use an editor that uses different command line arguments, they have to write a wrapper shell script to rewrite it.
vim, nano, and emacs support this syntax. micro uses "micro ${FILE}:${LINE}", and subl (Mac command line tool for Sublime Text) uses it as well.