On 10/12/20 2:16 PM, 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?) D'oh... I checked whether the code brought by .fish file works in fish shell, but didn't check the dir the file is put in... my bad, sorry. > > 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. Agree. I will review and test your PR tomorrow, thanks for that. > > > And really, why do you need this instead of just uninstalling the > nano-default-editor package? Vim is the POSIX default already... Actually, AFAIK 'Vi' (I know, it is just Vim compiled with small features, but still...) is the POSIX default. The change sets 'Vim'. And since POSIX is probably not known for newcomers, this subpackage can come in handy for them. > > > -- Zdenek Dohnal Software Engineer Red Hat Czech - Brno TPB-C
Attachment:
OpenPGP_0x15AA6A7F4D4227D7.asc
Description: application/pgp-keys
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ 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