Thanks for the report!
Alright, I thought nano would be installed by default in EndeavourOS. But it seems that only offline install has it by default. Of course a user may want to change nano to something else, but that’s another story.
I can add nano as an optional dependency to eos-update-notifier package.
Might be. I’m not sure about that. If I remember correctly I had to install it manually (doing online install). Adding it as a dependency keeps you on the safe side for sure.
I added a configuration for the editors that are known to work with root permissions. The list is small, but probably useful for most users. Later we can add more editors if needed.
The configuration is in file /etc/eos-script-lib-yad.conf, in the end. Look for variable EOS_SUDO_EDITORS and put your favorite editor first in the list (if you don’t want to use nano).
Note that it may be only in the related .pacnew file too, if that exists.
By the way, the configurator uses (also) variables SUDO_EDITOR, VISUAL, and EDITOR (in this order) if the configuration variable EOS_SUDO_EDITORS is empty. And if nothing is found, then nano is the last resort.
So now I think all possible combinations are covered!