On 6/26/20 1:30 PM, Qiyu Yan wrote:
Adam Williamson <adamwill(a)fedoraproject.org
<mailto:firstname.lastname@example.org>> 于 2020年6月26日周五 上午9:32写道：
On Fri, 2020-06-26 at 08:44 +0800, Qiyu Yan wrote:
> What about to provide a prompt to the user telling them the difference
> between editors?
> For example, when a new user to fedora first invokes git commit
> without $EDITOR set, a program named fedora-default-editor comes up
> and asks: Which editor do you like?
> User can do his or hers choice and the choice will be remembered by
> setting $EDITOR in his or hers ~/.bashrc
> The fedora-default-editor can be a small script that shows user all
> the difference and set $EDITOR for the user.
It's a nice idea, but the problem with things like this is they
*always* introduce bugs, and often wind up being unmaintained, because
keeping them working is kind of a thankless task.
IMHO it's better to keep things simple and just pick a default. And the
default should definitely be nano. :D
Then I will +1 for this proposal. Yes, this certainly will make Fedora
easier use for beginners. And for those who would like to use vi as
default, we should make this as easy as possible.
This seems the best approach in my opinion.
I totally agree that having something simple is important for new users.
My only fear (and it applies to any default editor choice) is that the
default will be changed only by a minority of new-users, or after many
Thus having an educational approach which tells the user how to
configure his environment properly (and eventually doing it for him from
a list of choices) seems the most friendly approach.
I must add that nano feels like an old VT100 editor. Not very appealing
to new users (but indeed very clear on how to operate). My guess is that
an average user will hope to see an editor application with icons and
everything to popup (call it notepad and you will fill all his/her
expectations ;-) )... Of course, this will not work in a linux terminal,
but most new users don't even know the concept of a terminal...