From 0842854f3ca8dc86cbad664724d19edd8f6d9d35 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Fri, 15 Dec 2023 20:54:06 +0100 Subject: [PATCH] editor_select: Add more editors to the auto-detect list --- plugins/editor_select/editor_select.zprofile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/editor_select/editor_select.zprofile b/plugins/editor_select/editor_select.zprofile index a04d0d0..88a0115 100644 --- a/plugins/editor_select/editor_select.zprofile +++ b/plugins/editor_select/editor_select.zprofile @@ -21,14 +21,14 @@ if [[ -z "$EDITOR" ]]; then # Auto-detect a "good" editor ... if [[ -n "$DISPLAY" ]]; then # X11 available, consider X11-based editors, too! - x11_editors="gvim" + x11_editors="mousepad gvim vim.motif" fi for editor ( - sensible-editor + sensible-editor editor code atom mate subl mvim $x11_editors - vim nano joe vi + vim.nox vim.basic micro joe mcedit nano vim vim.tiny nvi vi ); do if [[ -n "$commands[$editor]" ]]; then EDITOR="$commands[$editor]" @@ -42,7 +42,7 @@ case "$EDITOR:t" in "code"|"atom"|"mate"|"subl") EDITOR="$EDITOR --wait" ;; - "mvim"|"gvim") + "mvim"|"gvim"|"vim.motif") EDITOR="$EDITOR --nofork" ;; esac -- 2.39.2