Re: Introducing vim-default-editor subpackage - replace nano as a default editor if wanted

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 12, 2020 at 08:16:31AM -0400, Neal Gompa wrote:
On Mon, Oct 12, 2020 at 5:25 AM Zdenek Dohnal <zdohnal@xxxxxxxxxx> wrote:

Hi,

thanks to Pawel Marciniak's pull request [1] I'm happy to announce
vim-default-editor subpackage, which easily sets/removes Vim as the
default editor by installing/uninstalling the subpackage.

Because of nano was selected as a default editor since Fedora 33+, the
new subpackage conflicts with nano-default-editor subpackage to ensure
the correct behavior. It means the dnf transaction needs to use
'--allowerasing' option when installing vim-default-editor is going to
be installed and nano-default-editor is already installed and vice versa.

Vim's NVR which introduced the subpackage is 2:8.2.1815-2, the build
containing the subpackage will go into updates for F31+ tomorrow.

Enjoy when it comes to the updates!

[1] https://src.fedoraproject.org/rpms/vim/pull-request/11


There are two significant problems with this package:

1. It doesn't work for Fish, since Fish doesn't actually *read*
profile.d (did you look at how nano-default-editor *actually* set
things up?)

2. Having subpackages like this that conflict by name is going to get
crazy really fast, so we need a virtual name to make RPM only permit
one of them at a time.


And really, why do you need this instead of just uninstalling the
nano-default-editor package? Vim is the POSIX default already...

I agree with Neal's concerns here.  A package that sets up a default
isn't really needed for every editor.  Your default editor is a thing
in your environment, so configure your environment:

    EDITOR=vim
    VISUAL=vim

[Why two variables?  In the beforetimes (before Linux, before BSD,
before Fraggle Rock, before Jaws), $EDITOR referred to the editor for
use on limited functionality terminals/line-mode terminals.  Like
actual tty devices.  So think ed(1).  $VISUAL is the editor used on
fullscreen terminals.  These days they are almost always set to the
same program because no one is using an actual tty.]

The main objective of a system default editor like nano is for first
time users and those who have never used an editor like vim or emacs
before.

Thanks,

--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat, Inc. | Boston, MA | EST5EDT
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux