Package: yi Version: 0.7.0-1 Severity: wishlist Tags: patch Hi,
I tried to change my default editor to yi, but right now one needs to manually add it for update-alternatives. Since yi is a full fledged (programmable) text editor, it would be nice to simply $ update-alternatives --config editor and select yi from the list or have it selected automatically if no other editor is installed. Also yi is listed under Section "misc" instead of "editors", which is counterintuitive to me but no big annoyance. I took the freedom to attach yi.postinst and yi.prerm files compatible to the current yi packaging, which are almost identical to those in the zile package. They are tested to be idempotent and quiet. A patch to debian/control to move yi from "misc" to "editors" is also attached and would make yi more discoverable to people looking for a new editor, raising the usefulness of yi in Debian. Thank you and have a good time, Marcel -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (990, 'unstable'), (500, 'testing'), (101, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.14.0-rc6 (SMP w/6 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages yi depends on: ii libatk1.0-0 2.10.0-2 ii libc6 2.18-4 ii libcairo2 1.12.16-2 ii libffi6 3.0.13-12 ii libfontconfig1 2.11.0-5 ii libfreetype6 2.5.2-1 ii libgdk-pixbuf2.0-0 2.30.6-1 ii libghc-yi-dev 0.7.0-1+b5 ii libghc-yi-doc 0.7.0-1 ii libglib2.0-0 2.38.2-5 ii libgmp10 2:5.1.3+dfsg-1 ii libgtk2.0-0 2.24.22-1 ii libncurses5 5.9+20140118-1 ii libpango-1.0-0 1.36.2-2 ii libpangocairo-1.0-0 1.36.2-2 ii libpangoft2-1.0-0 1.36.2-2 ii libtinfo5 5.9+20140118-1 ii zlib1g 1:1.2.8.dfsg-1 yi recommends no packages. yi suggests no packages. -- no debconf information
#!/bin/sh set -e update-alternatives --install /usr/bin/editor editor /usr/bin/yi 30 \ --slave /usr/share/man/man1/editor.1.gz editor.1.gz /usr/share/man/man1/yi.1.gz #DEBHELPER# exit 0
#!/bin/sh set -e if [ "$1" != "upgrade" ] then update-alternatives --remove editor /usr/bin/yi fi #DEBHELPER# exit 0
--- a/debian/control 2013-10-15 10:59:09.000000000 +0200 +++ b/debian/control 2014-03-16 11:56:23.000000000 +0100 @@ -171,7 +170,7 @@ Package: yi Architecture: any -Section: misc +Section: editors Depends: ${shlibs:Depends}, ${haskell:Depends}, ${misc:Depends} , libghc-yi-dev, libghc-yi-doc Description: Haskell-Scriptable Editor