about summary refs log tree commit diff
path: root/Completion/Unix/Command/_lynx
blob: 2d5978d27a212bc0395d1e4e8fabb27cd1643ccf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#compdef lynx

local curcontext="$curcontext" state line
typeset -A opt_args

_arguments -C \
  '-accept_all_cookies' \
  '-anonymous' \
  '-assume_charset=:MIMENAME:' \
  '-assume_local_charset=:MIMENAME:' \
  '-assume_unrec_charset=:MIMENAME:' \
  '-auth=:ID\:PW:' \
  '-base' \
  '-blink' \
  '-book' \
  '-buried_news' \
  '-cache=:NUMBER:' \
  '-case' \
  '-cfg=:FILENAME:_files' \
  '-child' \
  '-color' \
  '-cookies' \
  '-core' \
  '-crawl' \
  '-display=:DISPLAY:_x_display' \
  '-dump' \
  '-editor=:EDITOR:_files' \
  '-emacskeys' \
  '-enable_scrollback' \
  '-error_file=:FILENAME:_files' \
  '-fileversions' \
  '-force_html' \
  '-force_secure' \
  '-from' \
  '-ftp' \
  '-get_data' \
  '-head' \
  '-help' \
  '-historical' \
  '-homepage=:URL:->html' \
  '-image_links' \
  '-ismap' \
  '-index=:URL:->html' \
  '-link=:NUMBER:' \
  '-localhost' \
  '-locexec' \
  '-mime_header' \
  '-minimal' \
  '-newschunksize=:NUMBER:' \
  '-newsmaxchunk=:NUMBER:' \
  '-nobrowse' \
  '-nocc' \
  '-nocolor' \
  '-noexec' \
  '-nofilereferer' \
  '-nolist' \
  '-nolog' \
  '-nonrestarting_sigwinch' \
  '-nopause' \
  '-noprint' \
  '-noredir' \
  '-noreferer' \
  '-nosocks' \
  '-nostatus' \
  '-number_links' \
  '-partial' \
  '-pauth=:ID\:PW:' \
  '-popup' \
  '-post_data' \
  '-preparsed' \
  '-print' \
  '-pseudo_inlines' \
  '-raw' \
  '-realm' \
  '-reload' \
  '-restrictions=:options:->restrictions' \
  '-resubmit_posts' \
  '-rlogin' \
  '-selective' \
  '-show_cursor' \
  '-soft_dquotes' \
  '-source' \
  '-startfile_ok' \
  '-tagsoup' \
  '-telnet' \
  '-term=:TERM:' \
  '-tlog' \
  '-trace' \
  '-traversal' \
  '-underscore' \
  '-useragent=:NAME:' \
  '-use_mouse' \
  '-validate' \
  '-verbose' \
  '-version' \
  '-vikeys' \
  '-width=:NUMBER:' \
  ':url:->html' && return 0

case "$state" in
restrictions)
  _values -s ',' 'restriction' \
    all bookmark bookmark_exec change_exec_perms default dired_support \
    disk_save dotfiles download editor exec exec_frozen externals file_url \
    goto inside_ftp inside_news inside_rlogin inside_telnet jump mail \
    multibook news_post options_save outside_ftp outside_news outside_rlogin \
    outside_telnet print shell suspend telnet_port useragent
  ;;
html)
  _files -g '*.html' || _urls
  ;;
esac