term/editor: add support for RAD_EDITOR
This change adds support for determining the editor that should be opened by the RAD_EDITOR environment variable, which takes priority over both VISUAL and EDITOR, as it is specific to the radicle application.
This enables users to set a different editor specifically for radicle, which is useful in the event that the normal value for either VISUAL or EDITOR is a process that forks and exits early, but supports command line flags to modify this behavior and block on the main thread (e.g. neovim-remote, which the author uses).
1 file changed
+6
-2
7bac1714
→
07a6c815
modified crates/radicle-term/src/editor.rs
@@ -107,7 +107,7 @@ impl Editor {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -200,7 +200,11 @@ impl Editor {
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|