Re: [systemd-devel] [PATCH] Add zsh completion
On Sat, Oct 27, 2012 at 08:44:07PM -0400, Dave Reisner wrote: On Sun, Oct 28, 2012 at 02:26:08AM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Fri, Oct 26, 2012 at 11:27:56AM -0400, Daniel Wallace wrote: On Fri, Oct 26, 2012 at 08:41:50AM -0400, Dave Reisner wrote: On Fri, Oct 26, 2012 at 05:58:41AM -0400, Daniel Wallace wrote: From: Daniel Wallace daniel.wall...@gatech.edu I updated the zsh completion from zsh, and added completion for all the other *ctl commands --- Makefile.am| 4 + bash-completion/systemd-zsh-completion.zsh | 718 + 2 files changed, 722 insertions(+) create mode 100644 bash-completion/systemd-zsh-completion.zsh Why duplicate the entire completion file here, and not just offer the additions to ZSH's upstream? Have you talked to the ZSH devs about this? /confused I did email the zsh-workers list, and the only response I got was Do what works and since systemd keeps changing and releases far more often than zsh does, I feel that it should just be in the upstream package, instead of in /usr/share/zsh/functions/Completion/Unix/_systemd. so I updated it and sent it here :) Hi, I think that this patch should go in. Rationale: there are a few approaches (how to provide up-to-date completion for ZSH): 1. keep status quo, i.e. do nothing special for ZSH here, 2. merge Ramkumar Ramachandra's patch [1] to use the bash completion script with zsh, 3. provide a separate zsh completion script in systemd codebase, i.e. this patch. Option 1 is not good, because like Daniel says, there's no way that it'll ever be up to date. Option 2 will not provide full ZSH features, since bash'es completion systemd is poorer. So option 3 remains. Dave, since you primarily take care of completion, what do you think? [1] http://lists.freedesktop.org/archives/systemd-devel/2011-December/003984.html Zbyszek I'm not opposed to merging this, I just wanted to make sure that ZSH upstream was in the loop on what was going on here. Cool! I guess that bash-completion/ should be renamed to shell-completion/ or completion/. Feels strange to have bash-completion/zsh-something. Zbyszek My only real complaint is that there's no attribution for the original work. I think we should at minimum add a copyright header to the file taken from ZSH, as we do with the remainder of the project. If there's a specific person who's contributed the majority of the code, they should be added as well. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH] Add zsh completion
On Fri, 26.10.12 05:58, Daniel Wallace (danielwall...@gtmanfred.com) wrote: Heya, I must say I am a bit concerned about this, and not sure we should really merge this. I mean, I applaud your work, but I wonder if this is stuff that really belongs in systemd proper. In general we try to follow the rule of including the bits and pieces in systemd where one can make a good case that it is likely that the biggest chunk of people will end up using this anayway, and where it makes sense to maintain this in lockstep with systemd. This is why we merged the bash completion stuff, and the python bindings: it's most likely more setups that will use these bits, than that won't. Now, when we merged the Python bindings we tried to make clear that we'd only grant Python this special privilege, and not Lua or PHP, since Python is kinda in the position like no other scripting language in that is very widely accepted, as a clear perspective for the future, is relatively complete and frequently used in system-level code. Aside from that I actually regularly hack Python myself, and hence can maintain this stuff myself if I need to. Similar, I also frequently write Bash scripts, and hence can maintain the bash completion logic (even though I admittedly would have to read up on the completion stuff quite a bit before I could get hacking...) Now, looking at all of this I am a bit conservative about the zsh completion stuff. I have no doubt that this will be useful for many people, the same way I really applaud the PHP and Lua bindings, but I am not convinced that systemd itself is the place this should live in. Hence: can I convince you to maybe maintain this outside of systemd? Maybe propose for inclusion in zsh upstream? Or put it up on github? (in the latter case: we maintain a list of related packages on the systemd homepage which lists the PHP/Lua/Javascript bindings, so please add it there!) I hope this makes some sens, even if it is disappointing. Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH] Add zsh completion
On Fri, Oct 26, 2012 at 11:27:56AM -0400, Daniel Wallace wrote: On Fri, Oct 26, 2012 at 08:41:50AM -0400, Dave Reisner wrote: On Fri, Oct 26, 2012 at 05:58:41AM -0400, Daniel Wallace wrote: From: Daniel Wallace daniel.wall...@gatech.edu I updated the zsh completion from zsh, and added completion for all the other *ctl commands --- Makefile.am| 4 + bash-completion/systemd-zsh-completion.zsh | 718 + 2 files changed, 722 insertions(+) create mode 100644 bash-completion/systemd-zsh-completion.zsh Why duplicate the entire completion file here, and not just offer the additions to ZSH's upstream? Have you talked to the ZSH devs about this? /confused I did email the zsh-workers list, and the only response I got was Do what works and since systemd keeps changing and releases far more often than zsh does, I feel that it should just be in the upstream package, instead of in /usr/share/zsh/functions/Completion/Unix/_systemd. so I updated it and sent it here :) Hi, I think that this patch should go in. Rationale: there are a few approaches (how to provide up-to-date completion for ZSH): 1. keep status quo, i.e. do nothing special for ZSH here, 2. merge Ramkumar Ramachandra's patch [1] to use the bash completion script with zsh, 3. provide a separate zsh completion script in systemd codebase, i.e. this patch. Option 1 is not good, because like Daniel says, there's no way that it'll ever be up to date. Option 2 will not provide full ZSH features, since bash'es completion systemd is poorer. So option 3 remains. Dave, since you primarily take care of completion, what do you think? [1] http://lists.freedesktop.org/archives/systemd-devel/2011-December/003984.html Zbyszek ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH] Add zsh completion
On Sun, Oct 28, 2012 at 02:26:08AM +0200, Zbigniew Jędrzejewski-Szmek wrote: On Fri, Oct 26, 2012 at 11:27:56AM -0400, Daniel Wallace wrote: On Fri, Oct 26, 2012 at 08:41:50AM -0400, Dave Reisner wrote: On Fri, Oct 26, 2012 at 05:58:41AM -0400, Daniel Wallace wrote: From: Daniel Wallace daniel.wall...@gatech.edu I updated the zsh completion from zsh, and added completion for all the other *ctl commands --- Makefile.am| 4 + bash-completion/systemd-zsh-completion.zsh | 718 + 2 files changed, 722 insertions(+) create mode 100644 bash-completion/systemd-zsh-completion.zsh Why duplicate the entire completion file here, and not just offer the additions to ZSH's upstream? Have you talked to the ZSH devs about this? /confused I did email the zsh-workers list, and the only response I got was Do what works and since systemd keeps changing and releases far more often than zsh does, I feel that it should just be in the upstream package, instead of in /usr/share/zsh/functions/Completion/Unix/_systemd. so I updated it and sent it here :) Hi, I think that this patch should go in. Rationale: there are a few approaches (how to provide up-to-date completion for ZSH): 1. keep status quo, i.e. do nothing special for ZSH here, 2. merge Ramkumar Ramachandra's patch [1] to use the bash completion script with zsh, 3. provide a separate zsh completion script in systemd codebase, i.e. this patch. Option 1 is not good, because like Daniel says, there's no way that it'll ever be up to date. Option 2 will not provide full ZSH features, since bash'es completion systemd is poorer. So option 3 remains. Dave, since you primarily take care of completion, what do you think? [1] http://lists.freedesktop.org/archives/systemd-devel/2011-December/003984.html Zbyszek I'm not opposed to merging this, I just wanted to make sure that ZSH upstream was in the loop on what was going on here. My only real complaint is that there's no attribution for the original work. I think we should at minimum add a copyright header to the file taken from ZSH, as we do with the remainder of the project. If there's a specific person who's contributed the majority of the code, they should be added as well. dave ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH] Add zsh completion
On Fri, Oct 26, 2012 at 05:58:41AM -0400, Daniel Wallace wrote: From: Daniel Wallace daniel.wall...@gatech.edu I updated the zsh completion from zsh, and added completion for all the other *ctl commands --- Makefile.am| 4 + bash-completion/systemd-zsh-completion.zsh | 718 + 2 files changed, 722 insertions(+) create mode 100644 bash-completion/systemd-zsh-completion.zsh Why duplicate the entire completion file here, and not just offer the additions to ZSH's upstream? Have you talked to the ZSH devs about this? /confused ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel
Re: [systemd-devel] [PATCH] Add zsh completion
On Fri, Oct 26, 2012 at 08:41:50AM -0400, Dave Reisner wrote: On Fri, Oct 26, 2012 at 05:58:41AM -0400, Daniel Wallace wrote: From: Daniel Wallace daniel.wall...@gatech.edu I updated the zsh completion from zsh, and added completion for all the other *ctl commands --- Makefile.am| 4 + bash-completion/systemd-zsh-completion.zsh | 718 + 2 files changed, 722 insertions(+) create mode 100644 bash-completion/systemd-zsh-completion.zsh Why duplicate the entire completion file here, and not just offer the additions to ZSH's upstream? Have you talked to the ZSH devs about this? /confused I did email the zsh-workers list, and the only response I got was Do what works and since systemd keeps changing and releases far more often than zsh does, I feel that it should just be in the upstream package, instead of in /usr/share/zsh/functions/Completion/Unix/_systemd. so I updated it and sent it here :) Thanks -- Daniel Wallace Archlinux Trusted User (gtmanfred) Georgia Institute of Technology pgpH66uihfRTk.pgp Description: PGP signature ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel