├── .gitignore ├── keymap ├── config └── mailcap /.gitignore: -------------------------------------------------------------------------------- 1 | w3mcache* 2 | w3mtmp* 3 | cookie 4 | passwd 5 | history 6 | -------------------------------------------------------------------------------- /keymap: -------------------------------------------------------------------------------- 1 | # A sample of ~/.w3m/keymap (default) 2 | # 3 | # Ctrl : C-, ^ 4 | # Escape: ESC-, M-, ^[ 5 | # Space : SPC, ' ' 6 | # Tab : TAB, ^i, ^I 7 | # Delete: DEL, ^? 8 | # Up : UP, ^[[A 9 | # Down : DOWN, ^[[B 10 | # Right : RIGHT, ^[[C 11 | # Left : LEFT, ^[[D 12 | 13 | # Page/Cursor motion 14 | keymap C-f NEXT_PAGE 15 | keymap C-b PREV_PAGE 16 | keymap l MOVE_RIGHT 17 | keymap h MOVE_LEFT 18 | keymap j MOVE_DOWN 19 | keymap k MOVE_UP 20 | keymap < SHIFT_LEFT 21 | keymap > SHIFT_RIGHT 22 | keymap \^,C-a LINE_BEGIN 23 | keymap $,C-e LINE_END 24 | keymap Z CENTER_H 25 | keymap z CENTER_V 26 | keymap g BEGIN 27 | keymap G END 28 | keymap w NEXT_WORD 29 | keymap b PREV_WORD 30 | keymap TAB NEXT_LINK 31 | keymap ESC-TAB PREV_LINK 32 | keymap u UNDO 33 | keymap C-r REDO 34 | keymap L LIST_MENU 35 | 36 | # Hyperlink operation 37 | keymap M MARK_WORD 38 | # keymap M MARK_URL 39 | keymap C-t TAB_LINK 40 | keymap C-s SAVE_LINK 41 | keymap V VIEW_IMAGE 42 | # keymap V PEEK_IMG 43 | keymap i INFO 44 | 45 | keymap ESC-i SAVE_IMAGE 46 | keymap p PEEK_LINK 47 | keymap C-g LINE_INFO 48 | keymap O EXTERN_LINK 49 | 50 | # File/Stream operation 51 | keymap o GOTO 52 | keymap @ READ_SHELL 53 | keymap # PIPE_SHELL 54 | keymap | PIPE_BUF 55 | 56 | # Buffer operation 57 | keymap B BACK 58 | keymap . NEXT 59 | keymap , PREV 60 | keymap S SELECT_MENU 61 | keymap ESC-s SAVE 62 | keymap v VIEW 63 | keymap P PRINT 64 | keymap E EDIT 65 | keymap ESC-e EDIT_SCREEN 66 | keymap r RELOAD 67 | keymap ESC-r RESHAPE 68 | 69 | # Tab operation 70 | keymap C-p PREV_TAB 71 | keymap C-n NEXT_TAB 72 | keymap t NEW_TAB 73 | keymap T TAB_MENU 74 | keymap d CLOSE_TAB 75 | 76 | keymap ESC-b VIEW_BOOKMARK 77 | keymap ESC-a ADD_BOOKMARK 78 | 79 | # Search 80 | keymap / ISEARCH 81 | keymap ? ISEARCH_BACK 82 | keymap n SEARCH_NEXT 83 | keymap N SEARCH_PREV 84 | 85 | # Dictionay look-up 86 | keymap ESC-w DICT_WORD 87 | keymap ESC-W DICT_WORD_AT 88 | 89 | # Mark operation 90 | keymap m MARK 91 | keymap ] NEXT_MARK 92 | keymap [ PREV_MARK 93 | keymap \" REG_MARK 94 | 95 | # bookmark operation 96 | keymap ESC-b VIEW_BOOKMARK 97 | keymap ESC-a ADD_BOOKMARK 98 | 99 | # Misc operation 100 | keymap \\ MENU 101 | keymap H HELP 102 | keymap ESC-o OPTIONS 103 | keymap ESC-k COOKIE 104 | keymap ESC-h HISTORY 105 | keymap ESC-c COMMAND 106 | keymap ! EXEC_SHELL 107 | keymap ESC-z INTERRUPT 108 | keymap C CHARSET 109 | 110 | -------------------------------------------------------------------------------- /config: -------------------------------------------------------------------------------- 1 | gb18030_as_ucs 0 2 | strict_iso2022 1 3 | use_jisx0213 0 4 | use_jisx0212 0 5 | use_jisx0201k 0 6 | use_jisc6226 0 7 | use_jisx0201 0 8 | use_gb12345_map 0 9 | fix_width_conv 1 10 | search_conv 1 11 | pre_conv 0 12 | ucs_conv 1 13 | use_language_tag 1 14 | use_combining 1 15 | use_wide 1 16 | ext_halfdump 0 17 | follow_locale 1 18 | system_charset UTF-8 19 | auto_detect 2 20 | document_charset UTF-8 21 | display_charset UTF-8 22 | cookie_accept_domains 23 | cookie_reject_domains 24 | accept_bad_cookie 0 25 | accept_cookie 1 26 | use_cookie 1 27 | ssl_ca_file 28 | ssl_ca_path /etc/ssl/certs 29 | ssl_key_file 30 | ssl_cert_file 31 | ssl_verify_server 1 32 | ssl_forbid_method 33 | no_cache 0 34 | noproxy_netaddr 0 35 | no_proxy 36 | ftp_proxy 37 | gopher_proxy 38 | https_proxy https://127.0.0.1:8118/ 39 | http_proxy http://127.0.0.1:8118/ 40 | use_proxy 0 41 | max_news 50 42 | nntpmode 43 | nntpserver 44 | dns_order 0 45 | meta_refresh 1 46 | follow_redirection 10 47 | default_url 1 48 | retry_http 1 49 | argv_is_url 1 50 | accept_media text/*, image/*, application/*, audio/*, vms/* 51 | accept_encoding gzip, compress, bzip, bzip2, deflate 52 | accept_language en;q=1.0 53 | no_referer 0 54 | user_agent 55 | pre_form_file ~/.w3m/pre_form 56 | ftppass_hostnamegen 0 57 | ftppasswd anonymous@ 58 | disable_secret_security_check 0 59 | passwd_file ~/.w3m/passwd 60 | use_lessopen 0 61 | bgextviewer 1 62 | extbrowser3 63 | extbrowser2 64 | #extbrowser /usr/bin/firefox 65 | extbrowser /usr/bin/open 66 | mailer 67 | editor sensible-editor 68 | urimethodmap ~/.w3m//urimethodmap, /etc/w3m/urimethodmap 69 | mailcap ~/.w3m/mailcap, /etc/w3m/mailcap, /etc/mailcap 70 | mime_types ~/.w3m/mime.types, /etc/mime.types 71 | index_file 72 | cgi_bin 73 | personal_document_root 74 | document_root 75 | keymap_file keymap 76 | preserve_timestamp 1 77 | decode_cte 0 78 | clear_buffer 1 79 | fixed_wheel_scroll_count 5 80 | relative_wheel_scroll_ratio 30 81 | relative_wheel_scroll 0 82 | reverse_mouse 0 83 | use_mouse 1 84 | migemo_command migemo -t egrep /usr/share/migemo/migemo-dict 85 | use_migemo 1 86 | ignorecase_search 1 87 | wrap_search 0 88 | mark_all_pages 1 89 | vi_prec_num 1 90 | emacs_like_lineedit 0 91 | mark 1 92 | close_tab_back 0 93 | confirm_qq 1 94 | save_hist 1 95 | history 100 96 | use_history 1 97 | pagerline 10000 98 | visited_color magenta 99 | visited_anchor 1 100 | active_color cyan 101 | active_style 0 102 | bg_color terminal 103 | mark_color cyan 104 | form_color red 105 | image_color green 106 | anchor_color blue 107 | basic_color terminal 108 | color 1 109 | nextpage_topline 0 110 | label_topline 0 111 | show_srch_str 1 112 | show_lnum 0 113 | fold_line 0 114 | image_map_list 1 115 | imgdisplay /usr/bin/display 116 | image_scale 100 117 | ext_image_viewer 1 118 | max_load_image 4 119 | auto_image 1 120 | display_image 1 121 | view_unseenobject 1 122 | ignore_null_img_alt 1 123 | display_ins_del 1 124 | fold_textarea 0 125 | graphic_char 0 126 | alt_entity 0 127 | multicol 0 128 | dictcommand file:///$LIB/w3mdict.cgi 129 | use_dictcommand 0 130 | dirlist_cmd file:///$LIB/dirlist.cgi 131 | ext_dirlist 1 132 | display_lineinfo 0 133 | decode_url 0 134 | display_link 0 135 | open_tab_dl_list 0 136 | open_tab_blank 1 137 | target_self 0 138 | frame 0 139 | pixel_per_line 14 140 | pixel_per_char 7 141 | indent_incr 4 142 | tabstop 8 143 | -------------------------------------------------------------------------------- /mailcap: -------------------------------------------------------------------------------- 1 | ############################################################################### 2 | # 3 | # MIME types and programs that process those types 4 | # 5 | # Much of this file is generated automatically by the program "update-mime". 6 | # Please see the "update-mime" man page for more information. 7 | # 8 | # Users can add their own rules if they wish by creating a ".mailcap" 9 | # file in their home directory. Entries included there will take 10 | # precedence over those listed here. 11 | # 12 | ############################################################################### 13 | 14 | 15 | ############################################################################### 16 | # 17 | # User section follows: Any entries included in this section will take 18 | # precedence over those created by "update-mime". DO NOT CHANGE the 19 | # "User Section Begins" and "User Section Ends" lines, or anything outside 20 | # of this section! 21 | # 22 | 23 | # ----- User Section Begins ----- # 24 | # ----- User Section Ends ----- # 25 | 26 | ############################################################################### 27 | 28 | text/plain; less '%s'; needsterminal 29 | application/vnd.sun.xml.calc; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Spreadsheet"; nametemplate=%.sxc 30 | application/vnd.sun.xml.calc.template; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Spreadsheet Template"; nametemplate=%.stc 31 | application/vnd.sun.xml.draw; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Drawing"; nametemplate=%.sxd 32 | application/vnd.sun.xml.draw.template; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Drawing Template"; nametemplate=%.std 33 | application/vnd.sun.xml.impress; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Presentation"; nametemplate=%.sxi 34 | application/vnd.sun.xml.impress.template; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Presentation Template"; nametemplate=%.sti 35 | application/vnd.sun.xml.writer; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Text Document"; nametemplate=%.sxw 36 | application/vnd.sun.xml.writer.global; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Master Document"; nametemplate=%.sxg 37 | application/vnd.sun.xml.writer.math; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Maths Document" 38 | application/vnd.sun.xml.writer.template; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="OpenOffice.org Text Document Template"; nametemplate=%.stw 39 | application/x-chm; /usr/bin/xchm '%s'; test=test -n "$DISPLAY"; description="Compiled HTML Help Format"; nametemplate=%s.chm 40 | application/pdf; /usr/bin/xpdf '%s'; test=test "$DISPLAY" != ""; description=Portable Document Format; nametemplate=%s.pdf 41 | application/x-arj; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/arj 42 | application/x-bzip; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 43 | application/x-bzip-compressed-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/bzip2 44 | application/x-compress; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 45 | application/x-compressed-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 46 | application/x-gzip; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 47 | application/x-java-archive; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 48 | application/x-lha; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/lha 49 | application/x-lzop; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /bin/lzop 50 | application/x-lzop-compressed-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /bin/lzop 51 | application/x-rar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/unrar -o -e /usr/bin/rar 52 | application/x-rar-compressed; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/unrar -o -e /usr/bin/rar 53 | application/x-stuffit; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 54 | application/x-tar; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" 55 | application/zip; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/unzip 56 | application/x-zoo; /usr/bin/file-roller '%s'; test=test -n "$DISPLAY" -a -e /usr/bin/zoo 57 | application/ghostview; gnome-gv '%s'; description="postscript document"; test=test "$DISPLAY" != "" 58 | application/postscript; gnome-gv '%s'; description="postscript document"; test=test "$DISPLAY" != "" 59 | application/x-troff-man; /usr/bin/nroff -mandoc -Tlatin1; copiousoutput; print=/usr/bin/nroff -mandoc -Tlatin1 | print text/plain:- 60 | text/html; /usr/bin/mozilla-firefox '%s'; description=HTML Text; test=test -n "$DISPLAY"; nametemplate=%s.html 61 | text/xml; /usr/bin/mozilla-firefox '%s'; description=XML Text; test=test -n "$DISPLAY"; nametemplate=%s.xml 62 | application/x-staroffice; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarOffice 5.0" 63 | application/vnd.stardivision.calc; openoffice '%s';edit=openoffice '%s';test=test "$DISPLAY" != "" ;description="StarCalc 5.0"; nametemplate=%.sdc 64 | application/vnd.stardivision.chart; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarChart 5.0"; nametemplate=%.sds 65 | application/vnd.stardivision.draw; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarDraw 5.0"; nametemplate=%.sda 66 | application/vnd.stardivision.impress; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarImpress 5.0"; nametemplate=%.sdd 67 | application/vnd.stardivision.math; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarMath 5.0"; nametemplate=%.sdf 68 | application/vnd.stardivision.writer-global; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarWriter 5.0 Master Document"; nametemplate=%.sgl 69 | application/vnd.stardivision.writer; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != "" ; description="StarWriter 5.0"; nametemplate=%.sdw 70 | application/x-ogg; rhythmbox '%s'; description="Ogg Vorbis audio"; test=test -n "$DISPLAY"; nametemplate=%s.ogg 71 | application/ogg; rhythmbox '%s'; description="Ogg Media"; test=test -n "$DISPLAY" 72 | audio/x-mp3; rhythmbox '%s'; description="MP3 audio"; test=test -n "$DISPLAY"; nametemplate=%s.mp3 73 | audio/x-scpls; rhythmbox '%s'; description="MP3 ShoutCast playlist"; test=test -n "$DISPLAY"; nametemplate=%s.pls 74 | audio/x-mpeg; rhythmbox '%s'; description="MP3 audio"; test=test -n "$DISPLAY" 75 | audio/mpeg; rhythmbox '%s'; description="MP3 audio"; test=test -n "$DISPLAY" 76 | audio/x-mpegurl; rhythmbox '%s'; description="Playlist"; test=test -n "$DISPLAY"; nametemplate=%s.m3u 77 | application/x-flac; rhythmbox '%s'; description="FLAC audio"; test=test -n "$DISPLAY"; nametemplate=%s.flac 78 | application/x-tar; /bin/tar tvf -; print=/bin/tar tvf - | print text/plain:-; copiousoutput 79 | application/x-gtar; /bin/tar tvzf -; print=/bin/tar tvzf - | print text/plain:-; copiousoutput 80 | text/plain; more '%s'; needsterminal 81 | text/html; /usr/bin/elinks '%s'; needsterminal; description=HTML Text; nametemplate=%s.html 82 | text/plain; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal 83 | text/plain; gview -f '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != "" 84 | text/html; /usr/bin/w3m -T text/html '%s'; needsterminal; description=HTML Text; nametemplate=%s.html 85 | text/html; /usr/bin/elinks -dump '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html 86 | application/msword; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.doc; description="Microsoft Word Document" 87 | application/msexcel; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.xls; description="Microsoft Excel Document" 88 | application/mspowerpoint; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.ppt; description="Microsoft PowerPoint Document" 89 | application/vnd.ms-word; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.doc; description="Microsoft Word Document" 90 | application/vnd.ms-excel; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.xls; description="Microsoft Excel Document" 91 | application/vnd.ms-powerpoint; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.ppt; description="Microsoft PowerPoint Document" 92 | application/rtf; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.rtf; description="Rich Text Format" 93 | application/x-msword; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.doc; description="Microsoft Word Document" 94 | application/x-msexcel; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.xls; description="Microsoft Excel Document" 95 | application/x-mspowerpoint; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.ppt; description="Microsoft PowerPoint Document" 96 | application/wordperfect; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.wpd; description="WordPerfect Document" 97 | application/wordperfect5.1; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.wpd; description="WordPerfect Document" 98 | application/vnd.wordperfect; openoffice '%s'; edit=openoffice '%s'; test=test "$DISPLAY" != ""; nametemplate=%s.wpd; description="WordPerfect Document" 99 | text/html; /usr/bin/w3m -dump -T text/html '%s'; copiousoutput; description=HTML Text; nametemplate=%s.html 100 | text/html; /usr/bin/html2text '%s'; copiousoutput; description=HTML Text 101 | image/png; /usr/bin/mozilla-firefox '%s'; description=PNG Image; test=test -n "$DISPLAY"; nametemplate=%s.png 102 | image/jpeg; /usr/bin/mozilla-firefox '%s'; description=JPEG Image; test=test -n "$DISPLAY"; nametemplate=%s.jpeg 103 | image/gif; /usr/bin/mozilla-firefox '%s'; description=GIF Image; test=test -n "$DISPLAY"; nametemplate=%s.gif 104 | text/*; less '%s'; needsterminal 105 | text/*; view '%s'; edit=vim '%s'; compose=vim '%s'; needsterminal 106 | text/*; gview -f '%s'; edit=gvim -f '%s'; compose=gvim -f '%s'; test=test "$DISPLAY" != "" 107 | text/html; /usr/bin/sensible-browser '%s'; description=HTML Text; nametemplate=%s.html 108 | text/*; more '%s'; needsterminal 109 | application/x-debian-package; /usr/lib/mime/debian-view '%s'; needsterminal; description=Debian GNU/Linux Package; nametemplate=%s.deb 110 | audio/basic; /usr/lib/mime/playaudio '%s'; description=Basic uLaw Audio; nametemplate=%s.au 111 | --------------------------------------------------------------------------------