From 654723aa7f6c14b461e78fe018f6963238dbb699 Mon Sep 17 00:00:00 2001 From: Simon Dawson Date: Tue, 16 Sep 2025 20:53:51 +0100 Subject: [PATCH] Looser GUI editor handling in `omarchy-launch-editor` script (#1702) * fix: Default to nvim if $EDITOR not set in omarchy-launch-editor Refs: https://github.com/basecamp/omarchy/pull/1697/files#r2352727184 * fix: Handle $EDITOR as GUI application by default If we do not definitively handle $EDITOR as a known TUI editor, assume a GUI editor and launch without using the terminal. Refs: https://github.com/basecamp/omarchy/pull/1697/files#r2352727184 --- bin/omarchy-launch-editor | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/omarchy-launch-editor b/bin/omarchy-launch-editor index 11be2ad2..157168a8 100755 --- a/bin/omarchy-launch-editor +++ b/bin/omarchy-launch-editor @@ -1,13 +1,10 @@ #!/bin/bash -case "$EDITOR" in +case "${EDITOR:-nvim}" in nvim | vim | nano | micro | hx) exec setsid uwsm app -- "$TERMINAL" -e "$EDITOR" "$@" ;; -code | codium | subl | gedit | kate | zeditor) +*) exec setsid uwsm app -- "$EDITOR" "$@" ;; -*) - exec setsid uwsm app -- "$TERMINAL" -e nvim "$@" - ;; esac