1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 21:44:11 +01:00
zsh/Completion/Unix/Command/_lynx

148 lines
3.2 KiB
Plaintext
Raw Normal View History

2001-04-02 13:56:16 +02:00
#compdef lynx
local curcontext="$curcontext" state line ret=1
2001-04-02 13:56:16 +02:00
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' \
2002-09-04 21:10:23 +02:00
'-bibp=:bibp server:_urls' \
2001-04-02 13:56:16 +02:00
'-blink' \
'-book' \
'-buried_news' \
'-cache=:number of documents:' \
2001-04-02 13:56:16 +02:00
'-case' \
2002-09-04 21:10:23 +02:00
'-center' \
'-cfg=:configuration file:_files' \
2001-04-02 13:56:16 +02:00
'-child' \
2002-09-04 21:10:23 +02:00
'-cmd_log=:keystroke log:_files' \
'-cmd_script=:keystroke log:_files' \
2001-04-02 13:56:16 +02:00
'-color' \
2002-09-04 21:10:23 +02:00
'-connect_timeout=:seconds:' \
'-cookie_file=:cookie file:_files' \
'-cookie_save_file=:cookie file:_files' \
2001-04-02 13:56:16 +02:00
'-cookies' \
'-core' \
'-crawl' \
2002-09-04 21:10:23 +02:00
'-curses_pads' \
'-debug_partial' \
'-display=:display:_x_display' \
2002-09-04 21:10:23 +02:00
'-display_charset=:mimename:' \
'-dont_wrap_pre' \
2001-04-02 13:56:16 +02:00
'-dump' \
'-editor=:editor:_command_names -e' \
2001-04-02 13:56:16 +02:00
'-emacskeys' \
'-enable_scrollback' \
'-error_file=:error file:_files' \
2002-09-04 21:10:23 +02:00
'-exec' \
2001-04-02 13:56:16 +02:00
'-fileversions' \
2002-09-04 21:10:23 +02:00
'-force_empty_hrefless_a' \
2001-04-02 13:56:16 +02:00
'-force_html' \
'-force_secure' \
2002-09-04 21:10:23 +02:00
'-forms_options' \
2001-04-02 13:56:16 +02:00
'-from' \
'-ftp' \
'-get_data' \
'-head' \
'-help' \
2002-09-04 21:10:23 +02:00
'-hiddenlinks=:option:(merge listonly ignore)' \
2001-04-02 13:56:16 +02:00
'-historical' \
'-homepage=:URL:->html' \
'-image_links' \
'-index=:URL:->html' \
2002-09-04 21:10:23 +02:00
'-ismap' \
'-justify' \
'-link=:starting count:' \
2001-04-02 13:56:16 +02:00
'-localhost' \
'-locexec' \
2002-09-04 21:10:23 +02:00
'-lss=:color-style file:_files' \
2001-04-02 13:56:16 +02:00
'-mime_header' \
'-minimal' \
'-newschunksize=:NUMBER:' \
'-newsmaxchunk=:NUMBER:' \
2002-09-04 21:10:23 +02:00
'-nobold' \
2001-04-02 13:56:16 +02:00
'-nobrowse' \
'-nocc' \
'-nocolor' \
'-noexec' \
'-nofilereferer' \
'-nolist' \
'-nolog' \
'-nonrestarting_sigwinch' \
'-nopause' \
'-noprint' \
'-noredir' \
'-noreferer' \
2002-09-04 21:10:23 +02:00
'-noreverse' \
2001-04-02 13:56:16 +02:00
'-nosocks' \
'-nostatus' \
2002-09-04 21:10:23 +02:00
'-nounderline' \
'-number_fields' \
2001-04-02 13:56:16 +02:00
'-number_links' \
'-partial' \
2002-09-04 21:10:23 +02:00
'-partial_thres=:NUMBER:' \
2001-04-02 13:56:16 +02:00
'-pauth=:ID\:PW:' \
'-popup' \
'-post_data' \
'-preparsed' \
2002-09-04 21:10:23 +02:00
'-prettysrc' \
2001-04-02 13:56:16 +02:00
'-print' \
'-pseudo_inlines' \
'-raw' \
'-realm' \
'-reload' \
'-restrictions=:options:->restrictions' \
'-resubmit_posts' \
'-rlogin' \
2002-09-04 21:10:23 +02:00
'-scrollbar' \
'-scrollbar_arrow' \
2001-04-02 13:56:16 +02:00
'-selective' \
2002-09-04 21:10:23 +02:00
'-short_url' \
2001-04-02 13:56:16 +02:00
'-show_cursor' \
2002-09-04 21:10:23 +02:00
'-show_rate' \
2001-04-02 13:56:16 +02:00
'-soft_dquotes' \
'-source' \
2002-09-04 21:10:23 +02:00
'-stack_dump' \
2001-04-02 13:56:16 +02:00
'-startfile_ok' \
2002-09-04 21:10:23 +02:00
'-stdin' \
2001-04-02 13:56:16 +02:00
'-tagsoup' \
'-telnet' \
'-term=:terminal name:_terminals' \
2001-04-02 13:56:16 +02:00
'-tlog' \
2002-09-04 21:10:23 +02:00
'-tna' \
2001-04-02 13:56:16 +02:00
'-trace' \
2002-09-04 21:10:23 +02:00
'-trace_mask=:trace mask:(0 1 2 3 4 5 6 7)' \
2001-04-02 13:56:16 +02:00
'-traversal' \
2002-09-04 21:10:23 +02:00
'-trim_input_fields' \
2001-04-02 13:56:16 +02:00
'-underscore' \
'-use_mouse' \
2002-09-04 21:10:23 +02:00
'-useragent=:NAME:' \
2001-04-02 13:56:16 +02:00
'-validate' \
'-verbose' \
'-version' \
'-vikeys' \
'-width=:NUMBER:' \
2002-09-04 21:10:23 +02:00
'-with_backspaces' \
':URL:->html' && ret=0
2001-04-02 13:56:16 +02:00
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
2001-04-02 13:56:16 +02:00
;;
html)
_alternative 'files:file:_files -g "*.x#html(-.)"' 'urls:URL:_urls' && return
2001-04-02 13:56:16 +02:00
;;
esac
return ret