Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Setting default editor to "fresh" does not work #4014

@jessecrouch

Description

@jessecrouch

System details

Omarchy 3.2.x (current)

What's wrong?

Setting EDITOR=fresh in ~/.config/uwsm/default does not work when using the Omarchy menu to edit config files. The toast notification appears briefly but the editor never opens.

This is because omarchy-launch-editor has a hardcoded list of known TUI editors:

case "$EDITOR" in
nvim | vim | nano | micro | hx | helix)
  exec omarchy-launch-tui "$EDITOR" "$@"
  ;;
*)
  exec setsid uwsm-app -- "$EDITOR" "$@"
  ;;
esac

Since fresh is not in the list, it falls through to the GUI editor path which silently fails.

Proposed fix

Add fresh to the list of recognized TUI editors, similar to how helix was added in #1740.

Suggestion for future improvement

Rather than maintaining a hardcoded allowlist of TUI editors, consider:

  • A user-configurable list (e.g., OMARCHY_TUI_EDITORS env var)
  • Inverting the logic to have a list of known GUI editors instead (smaller list)
  • Auto-detection of whether a command requires a TTY

This would prevent similar issues for users of other terminal editors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions