]> arthur.barton.de Git - ax-zsh.git/commitdiff
editor_select: Add more editors to the auto-detect list
authorAlexander Barton <alex@barton.de>
Fri, 15 Dec 2023 19:54:06 +0000 (20:54 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 15 Dec 2023 19:54:06 +0000 (20:54 +0100)
plugins/editor_select/editor_select.zprofile

index a04d0d01dc394b349330da1ffbbcbea73ad66f86..88a0115bd74a44ef025bce839ff81d7f3fd0f1e8 100644 (file)
@@ -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