mov-cli / mov-cli

Watch everything from your terminal.
https://mov-cli.github.io/
MIT License
411 stars 36 forks source link

[FEATURE] Make editor config key fallback to ``EDITOR`` env var on Linux. #274

Closed THEGOLDENPRO closed 1 month ago

THEGOLDENPRO commented 1 month ago

At the moment the default value for the editor in mov-cli is nano on Linux but some may not use nano or have it installed so it's good practice to fallback to the editor set in the user's EDITOR environment variable if available. If this isn't available fallback to the usual nano editor.

This change should be done within the editor property method in the config class.

r3tr0ananas commented 1 month ago

Added with this commit: https://github.com/mov-cli/mov-cli/commit/3cd9b9c556f0fc4cef32fa9bd859d42e1a4f588b