diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:04:58 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2001-04-02 12:04:58 +0000 |
commit | e79377063722e171d282fbbcab59d79db9729f4b (patch) | |
tree | 32e37cf1a05acb585ce420a67164db8b2490c23d /Completion | |
parent | 7228dcd53f188ae45823cad04224bdd6e60abbe8 (diff) | |
download | zsh-e79377063722e171d282fbbcab59d79db9729f4b.tar.gz zsh-e79377063722e171d282fbbcab59d79db9729f4b.tar.xz zsh-e79377063722e171d282fbbcab59d79db9729f4b.zip |
moved from Completion/User/_w3m
Diffstat (limited to 'Completion')
-rw-r--r-- | Completion/Unix/Command/_w3m | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_w3m b/Completion/Unix/Command/_w3m new file mode 100644 index 000000000..f693a1e7c --- /dev/null +++ b/Completion/Unix/Command/_w3m @@ -0,0 +1,48 @@ +#compdef w3m + +local curcontext="$curcontext" state line +typeset -A opt_args + +_arguments \ + '-t[tabwidth]:tabwidth:' \ + '-r[ignore backspace effect]' \ + '-l[preserved lines]:number of lines:' \ + '-B[load bookmark]' \ + '-bookmark:bookmark file:_files' \ + '-T[content-type]:content type:' \ + '-m[internet message mode]' \ + '-v[visual startup mode]' \ + '-M[monochrome display]' \ + '-F[automatically render frame]' \ + '-dump' \ + '-cols:column width:' \ + '-dump_source' \ + '-dump_head' \ + '+:goto line:' \ + '-num[show line number]' \ + '-no-proxy' \ + '-no-mouse' \ + '-cookie' \ + '-no-cookie' \ + '-no-graph' \ + '-S[squeeze multiple blank lines]' \ + '-W[toggle wrap search mode]' \ + '-X[do not use termcap init/deinit]' \ + '-o[option]:option-value:' \ + '-config:configfile:_files' \ + '-debug' \ + ':url:->url' && return 0 + +case $state in + url) + local _w3mhistory + + if [[ -s ~/.w3m/history ]]; then + _w3mhistory=(${(f)"$(<$HOME/.w3m/history)"}) + compadd $_w3mhistory + fi + + _urls || _files -g '*.html' + ;; + +esac |