gitea-tea/modules/interact
plgruener 3129e60a73 text editor selection: follow unix defacto standards (#356)
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 then use $EDITOR as fallback.
This is also done by Git itself, see man git-var(1).
(Actually, the order there is $GIT_EDITOR > core.editor > $VISUAL > $EDITOR > vi)

Co-authored-by: plgruener <pl.gruener@gmail.com>
Reviewed-on: https://gitea.com/gitea/tea/pulls/356
Reviewed-by: Norwin <noerw@noreply.gitea.io>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: plgruener <plgruener@noreply.gitea.io>
Co-committed-by: plgruener <plgruener@noreply.gitea.io>
2021-06-21 20:08:27 +08:00
..
comments.go tea comment: handle piped stdin (#322) 2021-03-01 01:47:36 +08:00
issue_create.go Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
login.go [Refactor] unexport config.Config var & move login tasks to task module (#288) 2020-12-12 21:28:37 +08:00
milestone_create.go Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
prompts.go Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
pull_create.go Add more issue / pr creation params (#331) 2021-03-08 19:48:03 +08:00
pull_review.go text editor selection: follow unix defacto standards (#356) 2021-06-21 20:08:27 +08:00