Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: update _mozilla



Hi, there is a _mozilla completion that can also be used for firefox
A few options are set differently for firefox and mozilla.
Option '-edit' is available for both but works only in mozilla
Option '-CreateProfile' is available for mozilla only but works for both
My patch also add option '-inspector' for both 
And options '-profile', '-safe-mode', '-new-window', '-new-tab' and
'-install-global-extension' for Firefox only.

Source for those informations :
http://kb.mozillazine.org/Command_line_arguments

I also updated 'about:' urls according to what is available for mozilla 
1.8 and firefox 1.5

arno.

? _mozilla.patch
Index: Completion/X/Command/_mozilla
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_mozilla,v
retrieving revision 1.7
diff -r1.7 _mozilla
6c6
< local popts="-installer -CreateProfile -P -ProfileWizard -ProfileManager -SelectProfile"
---
> local popts="-installer -CreateProfile -P -ProfileWizard -ProfileManager -SelectProfile -profile"
15d14
<       "($popts)-CreateProfile:profile"
19a19
>       '-edit[start with editor]:URL:_urls' \
25a26,33
>   else
>     mozopts=(
>         "($popts)-profile[start with profile located at the given path]:profile directory:_files -/"
>         "-safe-mode[start without extensions or themes]"
>         "-new-window[load a new window]:URL:_urls"
>         "-new-tab[load a new tab]:URL:_urls"
>         "(-)-install-global-extension[installs an extension globally]:extension file:_files -g '*.xpi'"
>     )
26a35
> 
33a43
>     "($popts)-CreateProfile:profile"\
38d47
<     '-edit[start with editor]:URL:_urls' \
39a49
>     '-inspector[starts with DOM Inspector]:URL:_urls' \
91a102,105
>     local -a aboutmoz
>     if [[ $service != *firefox* ]]; then
>         aboutmoz=(logo about)
>     fi
93,94c107,108
<         compadd "$@" authors blank cache document fonts global hype image-cache \
<             license logo memory-cache mozilla plugins && ret=0
---
>         compadd "$@" blank buildconfig cache credits licence license mozilla \
>             plugins \? buildconfig $aboutmoz && ret=0

Attachment: signature.asc
Description: Digital signature



Messages sorted by: Reverse Date, Date, Thread, Author