text editor selection: follow unix defacto standards #356

Merged
6543 merged 2 commits from plgruener/tea:visual_patch into master 2021-06-21 12:08:27 +00:00

2 Commits

Author SHA1 Message Date
e709df6259 change default text editor to vi
All checks were successful
continuous-integration/drone/pr Build is passing
2021-05-28 02:42:22 +02:00
951163d418 support $VISUAL, prefer it over $EDITOR
Currently, `tea` only supports the $EDITOR env var to open the user's
preferred editor (used for reviewing pull requests).

Standard *nix practice is, however, to check for $VISUAL first and only
use $EDITOR as fallback.
This is also done by Git itself, see man git-var(1).
(Actually, the order is $GIT_EDITOR > core.editor > $VISUAL > $EDITOR > vi)
2021-05-28 02:42:22 +02:00