about summary refs log tree commit diff
path: root/Completion/Unix/Command/_lynx
blob: d1180746658edc429d77b642743de5a722650c22 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
#compdef lynx

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

_arguments -C \
  '-accept_all_cookies' \
  '-anonymous' \
  '-assume_charset=:character set:' \
  '-assume_local_charset=:character set:' \
  '-assume_unrec_charset=:character set:' \
  '-auth=:username\:password:' \
  '-base' \
  '-bibp=:bibp server:_urls' \
  '-blink' \
  '-book' \
  '-buried_news' \
  '-cache=:number of documents:' \
  '-case' \
  '-center' \
  '-cfg=:configuration file:_files' \
  '-child' \
  '-cmd_log=:keystroke log:_files' \
  '-cmd_script=:keystroke log:_files' \
  '-color' \
  '-connect_timeout=:connection timeout (seconds):' \
  '-cookie_file=:cookie file:_files' \
  '-cookie_save_file=:cookie file:_files' \
  '-cookies' \
  '-core' \
  '-crawl' \
  '-curses_pads' \
  '-debug_partial' \
  '-display=:display:_x_display' \
  '-display_charset=:character set:' \
  '-dont_wrap_pre' \
  '-dump' \
  '-editor=:editor:_command_names -e' \
  '-emacskeys' \
  '-enable_scrollback' \
  '-error_file=:error file:_files' \
  '-exec' \
  '-fileversions' \
  '-force_empty_hrefless_a' \
  '-force_html' \
  '-force_secure' \
  '-forms_options' \
  '-from' \
  '-ftp' \
  '-get_data' \
  '-head' \
  '-help' \
  '-hiddenlinks=:option:(merge listonly ignore)' \
  '-historical' \
  '-homepage=:URL:->html' \
  '-image_links' \
  '-index=:URL:->html' \
  '-ismap' \
  '-justify' \
  '-link=:starting count:' \
  '-localhost' \
  '-locexec' \
  '-lss=:color-style file:_files' \
  '-mime_header' \
  '-minimal' \
  '-newschunksize=:number of news articles:' \
  '-newsmaxchunk=:maximum number of news articles:' \
  '-nobold' \
  '-nobrowse' \
  '-nocc' \
  '-nocolor' \
  '-noexec' \
  '-nofilereferer' \
  '-nolist' \
  '-nolog' \
  '-nonrestarting_sigwinch' \
  '-nopause' \
  '-noprint' \
  '-noredir' \
  '-noreferer' \
  '-noreverse' \
  '-nosocks' \
  '-nostatus' \
  '-nounderline' \
  '-number_fields' \
  '-number_links' \
  '-partial' \
  '-partial_thres=:number of lines:' \
  '-pauth=:username\:password:' \
  '-popup' \
  '-post_data' \
  '-preparsed' \
  '-prettysrc' \
  '-print' \
  '-pseudo_inlines' \
  '-raw' \
  '-realm' \
  '-reload' \
  '-restrictions=:options:->restrictions' \
  '-resubmit_posts' \
  '-rlogin' \
  '-scrollbar' \
  '-scrollbar_arrow' \
  '-selective' \
  '-short_url' \
  '-show_cursor' \
  '-show_rate' \
  '-soft_dquotes' \
  '-source' \
  '-stack_dump' \
  '-startfile_ok' \
  '-stdin' \
  '-tagsoup' \
  '-telnet' \
  '-term=:terminal name:_terminals' \
  '-tlog' \
  '-tna' \
  '-trace' \
  '-trace_mask=:trace mask:(0 1 2 3 4 5 6 7)' \
  '-traversal' \
  '-trim_input_fields' \
  '-underscore' \
  '-use_mouse' \
  '-useragent=:user-agent header:' \
  '-validate' \
  '-verbose' \
  '-version' \
  '-vikeys' \
  '-width=:number of columns:' \
  '-with_backspaces' \
  ':URL:->html' && ret=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 && return
  ;;
html)
  _alternative 'files:file:_files -g "*.x#html#(-.)"' 'urls:URL:_urls' && return
  ;;
esac

return ret