News for hackers. Stuff that matters.
Re:Ask HN: Looking for a Programable Text Editor by ktpsns on Monday December 19, 2022 @02:21PM (#34056382)
Since vom and emacs were already proposed, there is a third classic in this round: Shell programming. Typically you have $EDITOR env set (to something like nano, vim, emacs, gedit, kwrite, etc) and then can include it in your script as in

   echo stuff >> worklog
   $EDITOR worklog && mailto someone
etc
Re:Ask HN: Looking for a Programable Text Editor by jmholla on Monday December 19, 2022 @02:34PM (#34056547)
If you want to handle `$EDITOR` not being set, at least in bash, you can use one of it's parameter expansion features:

    ${EDITOR:-vim}
Will use vim if `$EDITOR` is unset.