Bug#438154: vim-addon-manager: please provide a show command to print addons details

Antonio Terceiro terceiro at softwarelivre.org
Sat Aug 18 21:19:03 UTC 2007


Stefano Zacchiroli escreveu isso aí:
> tags 438154 + confirmed
> thanks
> 
> On Wed, Aug 15, 2007 at 02:57:58PM -0300, Antonio Terceiro wrote:
> > Please find attached to this message a patch that adds a show command,
> > which displays information about the specified addons, like this:
> > 
> >  $ vim-addons show gnupg tetris matchit
> 
> I like the idea (actually, it was also on my todo list), and thanks for
> the patch! But I've a question about that, sorry if I'm being too lazy
> to check it by myself ATM, does the patch work properly even when
> system-wide mode of vim-addons is enabled?  I consider this a
> requirement and I expect that the user status of the addon is reported
> normally and that the *system* status is reported when system-wide mode
> is enabled. If (or when) this is supported properly I also suggest that
> the second line or your output does no longer read "User status", but
> simply "Status".

Yes, the patch works like this currently. The implementation uses
whatever is passed in as target_dir to Vim::AddonManager constructor.

$ ruby -I. vim-addons status xml
# Name                     User Status  System Status 
xml                         removed       removed       
$ sudo ruby -I. vim-addons install xml -w
Info: installing removed addon 'xml'
$ ruby -I. vim-addons status xml
# Name                     User Status  System Status 
xml                         removed       installed     
$ ruby -I. vim-addons show xml
Addon: xml
Status: removed
Description: editing helps for XML, HTML, and SGML documents

$ ruby -I. vim-addons show xml -w
Addon: xml
Status: installed
Description: editing helps for XML, HTML, and SGML documents

I adjusted the output to "Status:".

Follows attached an updated patch against the subversion repository.

-- 
Antonio Terceiro <terceiro at softwarelivre.org>
http://people.softwarelivre.org/~terceiro/
GnuPG ID: 0F9CB28F


-------------- next part --------------
A non-text attachment was scrubbed...
Name: adds-show-command.diff
Type: text/x-diff
Size: 1831 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20070818/d768c3cc/attachment-0001.diff>


More information about the pkg-vim-maintainers mailing list