From bea111f382398e155761af25b5ae12552dcc6ef5 Mon Sep 17 00:00:00 2001 From: frank Date: Mon, 16 Jan 2012 20:00:45 +0100 Subject: [PATCH] committing changes in /etc after emerge run Package changes: +www-client/elinks-0.11.7 --- .etckeeper | 4 + elinks/elinks.conf | 565 +++++++++++++++++++++++++++++++++++++ elinks/keybind-full.sample | 181 ++++++++++++ elinks/keybind.conf.sample | 34 +++ 4 files changed, 784 insertions(+) create mode 100644 elinks/elinks.conf create mode 100644 elinks/keybind-full.sample create mode 100644 elinks/keybind.conf.sample diff --git a/.etckeeper b/.etckeeper index 885f2826..14978c59 100755 --- a/.etckeeper +++ b/.etckeeper @@ -337,6 +337,10 @@ maybe chmod 0755 './eclean' maybe chmod 0644 './eclean/distfiles.exclude' maybe chmod 0644 './eclean/packages.exclude' maybe chmod 0644 './eixrc' +maybe chmod 0755 './elinks' +maybe chmod 0644 './elinks/elinks.conf' +maybe chmod 0644 './elinks/keybind-full.sample' +maybe chmod 0644 './elinks/keybind.conf.sample' maybe chmod 0755 './env.d' maybe chmod 0644 './env.d/00basic' maybe chmod 0644 './env.d/00glibc' diff --git a/elinks/elinks.conf b/elinks/elinks.conf new file mode 100644 index 00000000..2901ef56 --- /dev/null +++ b/elinks/elinks.conf @@ -0,0 +1,565 @@ +## This is ELinks configuration file. You can edit it manually, +## if you wish so; this file is edited by ELinks when you save +## options through UI, however only option values will be altered +## and missing options will be added at the end of file; if option +## is not written in this file, but in some file included from it, +## it is NOT counted as missing. Note that all your formatting, +## own comments and so on will be kept as-is. + + + ## config.saving_style_w [0|1] + # This is internal option used when displaying a warning about + # obsolete config.saving_style. You shouldn't touch it. + set config.saving_style_w = 1 + + ## terminal.linux.transparency [0|1] + set terminal.linux.transparency = 1 + ## terminal.linux.colors [0|1] + set terminal.linux.colors = 1 + ## terminal.linux.block_cursor [0|1] + set terminal.linux.block_cursor = 0 + ## terminal.linux.restrict_852 [0|1] + set terminal.linux.restrict_852 = 0 + ## terminal.linux.utf_8_io [0|1] + set terminal.linux.utf_8_io = 0 + ## terminal.linux.m11_hack [0|1] + set terminal.linux.m11_hack = 1 + ## terminal.linux.type + set terminal.linux.type = 2 + + ## terminal.vt100.transparency [0|1] + set terminal.vt100.transparency = 1 + ## terminal.vt100.colors [0|1] + set terminal.vt100.colors = 1 + ## terminal.vt100.block_cursor [0|1] + set terminal.vt100.block_cursor = 0 + ## terminal.vt100.restrict_852 [0|1] + set terminal.vt100.restrict_852 = 0 + ## terminal.vt100.utf_8_io [0|1] + set terminal.vt100.utf_8_io = 0 + ## terminal.vt100.m11_hack [0|1] + set terminal.vt100.m11_hack = 0 + ## terminal.vt100.type + set terminal.vt100.type = 1 + + ## terminal.vt110.transparency [0|1] + set terminal.vt110.transparency = 1 + ## terminal.vt110.colors [0|1] + set terminal.vt110.colors = 1 + ## terminal.vt110.block_cursor [0|1] + set terminal.vt110.block_cursor = 0 + ## terminal.vt110.restrict_852 [0|1] + set terminal.vt110.restrict_852 = 0 + ## terminal.vt110.utf_8_io [0|1] + set terminal.vt110.utf_8_io = 0 + ## terminal.vt110.m11_hack [0|1] + set terminal.vt110.m11_hack = 0 + ## terminal.vt110.type + set terminal.vt110.type = 1 + + ## terminal.xterm.transparency [0|1] + set terminal.xterm.transparency = 1 + ## terminal.xterm.colors [0|1] + set terminal.xterm.colors = 1 + ## terminal.xterm.block_cursor [0|1] + set terminal.xterm.block_cursor = 0 + ## terminal.xterm.restrict_852 [0|1] + set terminal.xterm.restrict_852 = 0 + ## terminal.xterm.utf_8_io [0|1] + set terminal.xterm.utf_8_io = 0 + ## terminal.xterm.m11_hack [0|1] + set terminal.xterm.m11_hack = 0 + ## terminal.xterm.type + set terminal.xterm.type = 1 + + ## terminal.xterm-color.transparency [0|1] + set terminal.xterm-color.transparency = 1 + ## terminal.xterm-color.colors [0|1] + set terminal.xterm-color.colors = 1 + ## terminal.xterm-color.block_cursor [0|1] + set terminal.xterm-color.block_cursor = 0 + ## terminal.xterm-color.restrict_852 [0|1] + set terminal.xterm-color.restrict_852 = 0 + ## terminal.xterm-color.utf_8_io [0|1] + set terminal.xterm-color.utf_8_io = 0 + ## terminal.xterm-color.m11_hack [0|1] + set terminal.xterm-color.m11_hack = 0 + ## terminal.xterm-color.type + set terminal.xterm-color.type = 1 + + ## terminal.screen.transparency [0|1] + set terminal.screen.transparency = 1 + ## terminal.screen.colors [0|1] + set terminal.screen.colors = 1 + ## terminal.screen.block_cursor [0|1] + set terminal.screen.block_cursor = 0 + ## terminal.screen.restrict_852 [0|1] + set terminal.screen.restrict_852 = 0 + ## terminal.screen.utf_8_io [0|1] + set terminal.screen.utf_8_io = 0 + ## terminal.screen.m11_hack [0|1] + set terminal.screen.m11_hack = 0 + ## terminal.screen.type + set terminal.screen.type = 1 + + + + ## connection.async_dns [0|1] + # Use asynchronous DNS resolver? + set connection.async_dns = 1 + + ## connection.max_connections + # Maximum number of concurrent connections. + set connection.max_connections = 10 + + ## connection.max_connections_to_host + # Maximum number of concurrent connections to a given host. + set connection.max_connections_to_host = 5 + + ## connection.retries + # Number of tries to establish a connection. + set connection.retries = 3 + + ## connection.receive_timeout + # Receive timeout (in seconds). + set connection.receive_timeout = 120 + + ## connection.unrestartable_receive_timeout + # Timeout for non-restartable connections (in seconds). + set connection.unrestartable_receive_timeout = 600 + + + + ## cookies.accept_policy + # Cookies accepting policy: + # 0 is accept no cookies + # 1 is ask for confirmation before accepting cookie (UNIMPLEMENTED) + # 2 is accept all cookies + set cookies.accept_policy = 2 + + ## cookies.paranoid_security [0|1] + # When enabled, we'll require three dots in cookies domain for all + # non-international domains (instead of just two dots). Please see + # code (cookies.c:check_domain_security()) for explanation. + set cookies.paranoid_security = 0 + + ## cookies.save [0|1] + # Load/save cookies from/to disk? + set cookies.save = 1 + + ## cookies.resave [0|1] + # Save cookies after each change in cookies list? No effect when + # cookies_save is off. + set cookies.resave = 1 + + + + ## document.browse.accesskey.auto_follow [0|1] + # Automatically follow a link or submit a form if appropriate + # accesskey is pressed - this is the standard behaviour, but it's + # considered dangerous. + set document.browse.accesskey.auto_follow = 0 + + ## document.browse.accesskey.priority + # Priority of 'accesskey' HTML attribute: + # 0 is first try all normal bindings; if it fails, check accesskey + # 1 is first try only frame bindings; if it fails, check accesskey + # 2 is first check accesskey (this can be dangerous) + set document.browse.accesskey.priority = 1 + + ## document.browse.forms.auto_submit [0|1] + # Automagically submit a form when enter is pressed with a text + # field selected. + set document.browse.forms.auto_submit = 1 + + ## document.browse.forms.confirm_submit [0|1] + # Ask for confirmation when submitting a form. + set document.browse.forms.confirm_submit = 1 + + ## document.browse.images.display_style + # Display style for image tags when displayed: + # 0 means always display IMG + # 1 means always display filename + # 2 means display alt/title attribute if possible, IMG if not + # 3 means display alt/title attribute if possible, filename if not + set document.browse.images.display_style = 2 + + ## document.browse.images.show_as_links [0|1] + # Display links to images. + set document.browse.images.show_as_links = 1 + + ## document.browse.links.color_dirs [0|1] + # Highlight links to directories in FTP and local directory listing. + set document.browse.links.color_dirs = 1 + + ## document.browse.links.numbering [0|1] + # Display numbers next to the links. + set document.browse.links.numbering = 0 + + ## document.browse.links.number_keys_select_link + # Number keys select links rather than specify command prefixes. This + # is a tristate: + # 0 never + # 1 if document.browse.links.numbering = 1 + # 2 always + set document.browse.links.number_keys_select_link = 1 + + ## document.browse.links.wraparound [0|1] + # When pressing 'down' on the last link, jump at the first one, and + # vice versa. + set document.browse.links.wraparound = 0 + + + + ## document.browse.margin_width + # Horizontal text margin. + set document.browse.margin_width = 3 + + ## document.browse.scrolling.margin + # Size of the virtual margin - when you click inside of that margin, + # document scrolls in that direction. + set document.browse.scrolling.margin = 3 + + ## document.browse.table_move_order [0|1] + # Move by columns in table, instead of rows. + set document.browse.table_move_order = 0 + + ## document.cache.cache_redirects [0|1] + # Cache even redirects sent by server (usually thru HTTP by a 302 + # HTTP code and a Location header). This was the original behaviour + # for a quite some time, but it causes problems in a situation very + # common to various web login systems - frequently, when accessing + # certain location, they will redirect you to a login page if they + # don't receive an auth cookie, the login page then gives you the + # cookie and redirects you back to the original page, but there you + # have already cached redirect back to the login page! If this + # option has value of 0, this malfunction is fixed, but occassionally + # you may get superfluous (depends on how you take it ;-) requests to + # the server. If this option has value of 1, experienced users can + # still workaround it by clever combination of usage of reload, + # jumping around in session history and hitting ctrl+enter. + # Note that this option is checked when retrieving the information + # from cache, not when saving it to cache - thus if you will enable + # it, even previous redirects will be taken from cache instead of + # asking the server. + set document.cache.cache_redirects = 0 + + ## document.cache.ignore_cache_control [0|1] + # Ignore Cache-Control and Pragma server headers. + # When set, the document is cached even with 'Cache-Control: no-cache'. + set document.cache.ignore_cache_control = 1 + + ## document.cache.format.size + # Number of cached formatted pages. + set document.cache.format.size = 5 + + ## document.cache.memory.size + # Memory cache size (in kilobytes). + set document.cache.memory.size = 1M + + + + ## document.codepage.force_assumed [0|1] + # Ignore charset info sent by server. + set document.codepage.force_assumed = 0 + + + + ## document.colors.text + # Default text color. + set document.colors.text = "#bfbfbf" + + ## document.colors.background + # Default background color. + set document.colors.background = "black" + + ## document.colors.link + # Default link color. + set document.colors.link = "blue" + + ## document.colors.vlink + # Default visited link color. + set document.colors.vlink = "yellow" + + ## document.colors.dirs + # Default directory color. + # See document.browse.links.color_dirs option. + set document.colors.dirs = "yellow" + + ## document.colors.allow_dark_on_black [0|1] + # Allow dark colors on black background. + set document.colors.allow_dark_on_black = 0 + + ## document.colors.use_document_colors [0|1] + # Use colors specified in document. + set document.colors.use_document_colors = 1 + + + + ## mime.default_type + # Document MIME-type to assume by default (when we are unable to + # guess it properly from known information about the document). + set mime.default_type = "text/plain" + + ## document.download.directory + # Default download directory. + set document.download.directory = "./" + + ## document.download.set_original_time [0|1] + # Set the timestamp of each downloaded file to the timestamp + # stored on the server. + set document.download.set_original_time = 1 + + ## document.download.overwrite + # Prevent overwriting the local files: + # 0 is files will silently be overwritten. + # 1 is add a suffix .{number} (for example '.1') to the name. + # 2 is ask the user. + set document.download.overwrite = 2 + + ## document.download.notify_bell + # Audio notification when download is completed: + # 0 is never. + # 1 is when background notification is active. + # 2 is always + set document.download.notify_bell = 1 + + + + + + ## document.dump.width + # Width of screen in characters when dumping a HTML document. + set document.dump.width = 80 + + + + + ## document.history.global.enable [0|1] + # Enable global history ("history of all pages visited"). + set document.history.global.enable = 1 + + ## document.history.global.max_items + # Maximum number of entries in the global history. + set document.history.global.max_items = 1k + + ## document.history.global.display_type + # What to display in global history dialog: + # 0 is URLs + # 1 is page titles + set document.history.global.display_type = 1 + + ## document.history.keep_unhistory [0|1] + # Keep unhistory ("forward history")? + set document.history.keep_unhistory = 1 + + + + + ## document.html.display_frames [0|1] + # Display frames. + set document.html.display_frames = 1 + + ## document.html.display_tables [0|1] + # Display tables. + set document.html.display_tables = 1 + + ## document.html.display_subs [0|1] + # Display subscripts (as [thing]). + set document.html.display_subs = 1 + + ## document.html.display_sups [0|1] + # Display superscripts (as ^thing). + set document.html.display_sups = 1 + + + + + ## mime.extension.gif + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.gif = "image/gif" + + ## mime.extension.jpg + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.jpg = "image/jpeg" + + ## mime.extension.jpeg + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.jpeg = "image/jpeg" + + ## mime.extension.png + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.png = "image/png" + + ## mime.extension.txt + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.txt = "text/plain" + + ## mime.extension.htm + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.htm = "text/html" + + ## mime.extension.html + # MIME-type matching this file extension ('*' is used here in place + # of '.'). + set mime.extension.html = "text/html" + + + + + ## protocol.http.bugs.allow_blacklist [0|1] + # Allow blacklisting of buggy servers. + set protocol.http.bugs.allow_blacklist = 1 + + ## protocol.http.bugs.broken_302_redirect [0|1] + # Broken 302 redirect (violates RFC but compatible with Netscape). + # This is a problem for a lot of web discussion boards and the like.If they will do strange things to you, try to play with this. + set protocol.http.bugs.broken_302_redirect = 1 + + ## protocol.http.bugs.post_no_keepalive [0|1] + # Disable keepalive connection after POST request. + set protocol.http.bugs.post_no_keepalive = 0 + + ## protocol.http.bugs.http10 [0|1] + # Use HTTP/1.0 protocol instead of HTTP/1.1. + set protocol.http.bugs.http10 = 0 + + ## protocol.http.proxy.host + # Host and port-number (host:port) of the HTTP proxy, or blank. + # If it's blank, HTTP_PROXY environment variable is checked as well. + set protocol.http.proxy.host = "" + + ## protocol.http.proxy.user + # Proxy authentication username. + set protocol.http.proxy.user = "" + + ## protocol.http.proxy.passwd + # Proxy authentication password. + set protocol.http.proxy.passwd = "" + + ## protocol.http.referer.policy + # Mode of sending HTTP referer: + # 0 is send no referer + # 1 is send current URL as referer + # 2 is send fixed fake referer + # 3 is send previous URL as referer (correct, but insecure) + # + set protocol.http.referer.policy = 1 + + ## protocol.http.referer.fake + # Fake referer to be sent when policy is 2. + set protocol.http.referer.fake = "" + + ## protocol.http.accept_language + # Send Accept-Language header. + set protocol.http.accept_language = "" + + ## protocol.http.accept_ui_language [0|1] + # Request localised versions of documents from web-servers (using the + # Accept-Language header) using the language you have configured for + # ELinks' user-interface. Note that some see this as a potential security + # risk because it tells web-masters about your preference in language. + set protocol.http.accept_ui_language = 0 + + ## protocol.http.user_agent + # Change the User Agent ID. That means identification string, which + # is sent to HTTP server when a document is requested. + # %v in the string means ELinks version + # %s in the string means system identification + # %t in the string means size of the terminal + # Use " " if you don't want any User-Agent header to be sent at all. + set protocol.http.user_agent = "ELinks (%v; %s; %t)" + + ## protocol.http.trace [0|1] + # If active, all HTTP requests are sent with TRACE as their method + # rather than GET or POST. This is useful for debugging of both ELinks + # and various server-side scripts --- the server only returns the client's + # request back to the client verbatim. Note that this type of request may + # not be enabled on all servers. + set protocol.http.trace = 0 + + + + + ## protocol.ftp.proxy.host + # Host and port-number (host:port) of the FTP proxy, or blank. + # If it's blank, FTP_PROXY environment variable is checked as well. + set protocol.ftp.proxy.host = "" + + ## protocol.ftp.anon_passwd + # FTP anonymous password to be sent. + set protocol.ftp.anon_passwd = "elinksUSER@gentoo.org" + + ## protocol.ftp.use_pasv [0|1] + # Use PASV instead of PORT (passive vs active mode, IPv4 only). + set protocol.ftp.use_pasv = 1 + + ## protocol.ftp.use_epsv [0|1] + # Use EPSV instead of EPRT (passive vs active mode, IPv6 only). +# set protocol.ftp.use_epsv = 0 + + ## protocol.file.allow_special_files [0|1] + # Allow reading from non-regular files? (DANGEROUS - reading + # /dev/urandom or /dev/zero can ruin your day!) + set protocol.file.allow_special_files = 0 + + ## protocol.file.try_encoding_extensions [0|1] + # When set, if we can't open a file named 'filename', we'll try + # to open 'filename' + some encoding extensions (ie. + # 'filename.gz'); it depends on the supported encodings. + set protocol.file.try_encoding_extensions = 1 + + + + + ## protocol.user.mailto.unix + set protocol.user.mailto.unix = "mutt %h -s \"%s\"" + ## protocol.user.mailto.unix-xwin + set protocol.user.mailto.unix-xwin = "mutt %h -s \"%s\"" + ## protocol.user.telnet.unix + set protocol.user.telnet.unix = "telnet %h %p" + ## protocol.user.telnet.unix-xwin + set protocol.user.telnet.unix-xwin = "telnet %h %p" + ## protocol.user.tn3270.unix + set protocol.user.tn3270.unix = "tn3270 %h %p" + ## protocol.user.tn3270.unix-xwin + set protocol.user.tn3270.unix-xwin = "tn3270 %h %p" + ## protocol.user.gopher.unix + set protocol.user.gopher.unix = "lynx %u" + ## protocol.user.gopher.unix-xwin + set protocol.user.gopher.unix-xwin = "lynx %u" + ## protocol.user.news.unix + set protocol.user.news.unix = "lynx %u" + ## protocol.user.news.unix-xwin + set protocol.user.news.unix-xwin = "lynx %u" + ## ui.show_status_bar [0|1] + # Show status bar on the screen. + set ui.show_status_bar = 1 + + ## ui.show_title_bar [0|1] + # Show title bar on the screen. + set ui.show_title_bar = 1 + + ## ui.startup_goto_dialog [0|1] + # Pop up goto dialog on startup when there's no homepage set. + set ui.startup_goto_dialog = 1 + + ## ui.window_title [0|1] + # Whether ELinks window title should be touched when ELinks is + # run in a windowing environment. + set ui.window_title = 1 + +## secure_file_saving [0|1] +# First write data to 'file.tmp', then rename to 'file' upon +# successfully finishing this. Note that this relates only to +# config files, not downloaded files. You may want to disable +# it, if you want some config file with some exotic permissions. +# Secure file saving is automagically disabled if file is symlink. +set secure_file_saving = 1 + diff --git a/elinks/keybind-full.sample b/elinks/keybind-full.sample new file mode 100644 index 00000000..50924e6b --- /dev/null +++ b/elinks/keybind-full.sample @@ -0,0 +1,181 @@ +# Template for a elinks.conf file +# +# This file was contributed by David Mediavilla +# . Note that it's not up-to-date now, as +# some more keyboard actions were added in ELinks. So, if you don't see your +# faviourite action here, don't panic yet and try to look it up in +# src/config/kbdbind.c. +# +#### +# +# Simple HOWTO for keybinding by Peter Wang: +# +# Create a `elinks.conf' file wherever your `elinks.conf' usually goes. +# +# Binding is done with a statement like so: +# +# bind "KEYMAP" "KEYSTROKE" = "ACTION" +# +# where: +# +# - keymap is "main" or "edit" +# +# - keystroke is a case sensitive key, which you can prefix with +# "Ctrl-" or "Alt-" +# +# DME: I read that with Ctrl- the key must be uppercase +# +# - action is one of the things you find in `kbdbind.c' (`parse_act' +# function). You'll need to grep around the source to see what +# each one does, or guess, or ask. +# +#### +# +# List of possible actions from Links 0.96 / kbdbind.c +# +# add-bookmark +# auto-complete +# back +# backspace +# bookmark-manager +# copy-clipboard +# cut-clipboard +# delete +# document-info +# down +# download +# end +# enter +# file-menu +# find-next +# find-next-back +# goto-url +# goto-url-current +# goto-url-current-link +# header-info +# home +# kill-to-bol +# kill-to-eol +# left +# menu +# next-frame +# open-new-window +# open-link-in-new-window +# page-down +# page-up +# paste-clipboard +# previous-frame +# quit +# reload +# right +# scroll-down +# scroll-left +# scroll-right +# scroll-up +# search +# search-back +# toggle-display-images +# toggle-display-tables +# toggle-html-plain +# up +# view-image +# zoom-frame + +# The available keys are: +# 0-9, A-Z, Enter, Backspace, Tab, Escape, Left, Right, Up, Down, +# Insert, Delete, Home, End, PageUp, PageDown, F1-F12 + +# Default main keymap from Links 0.96 +# +#bind "main" "PageDown" = "page-down" +#bind "main" " " = "page-down" +# +# DME: I understand this as space bar but I don't know how +# to symbolize spacebar in elinks.conf +# +#bind "main" "Ctrl-F" = "page-down" +#bind "main" "PageUp" = "page-up" +#bind "main" "b" = "page-up" +#bind "main" "B" = "page-up" +#bind "main" "Ctrl-B" = "page-up" +#bind "main" "Down" = "down" +#bind "main" "Up" = "up" +#bind "main" "Ctrl-Insert" = "copy-clipboard" +#bind "main" "Ctrl-C" = "copy-clipboard" +#bind "main" "Insert" = "scroll-up" +#bind "main" "Ctrl-P" = "scroll-up" +#bind "main" "Delete" = "scroll-down" +#bind "main" "Ctrl-N" = "scroll-down" +#bind "main" "[" = "scroll-left" +#bind "main" "]" = "scroll-right" +#bind "main" "Home" = "home" +#bind "main" "Ctrl+A" = "home" +#bind "main" "End" = "end" +#bind "main" "Ctrl-E" = "end" +#bind "main" "Right" = "enter" +#bind "main" "Enter" = "enter" +#bind "main" "Left" = "back" +#bind "main" "d" = "download" +#bind "main" "D" = "download" +#bind "main" "/" = "search" +#bind "main" "?" = "search-back" +#bind "main" "n" = "find-next" +#bind "main" "N" = "find-next-back" +#bind "main" "f" = "zoom-frame" +#bind "main" "F" = "zoom-frame" +#bind "main" "Ctrl-R" = "reload" +#bind "main" "g" = "goto-url" +#bind "main" "G" = "goto-url-current" +#bind "main" "a" = "add-bookmark" +#bind "main" "A" = "add-bookmark" +#bind "main" "s" = "bookmark-manager" +#bind "main" "S" = "bookmark-manager" +#bind "main" "q" = "quit" +#bind "main" "Q" = "really-quit" +#bind "main" "=" = "document-info" +#bind "main" "|" = "header-info" +#bind "main" "\" = "toggle-html-plain" +#bind "main" "*" = "toggle-display-images" +#bind "main" "Tab" = "next-frame" +#bind "main" "Esc" = "menu" +#bind "main" "F9" = "menu" +#bind "main" "F10" = "file-menu" + +# Default edit keymap from Links 0.96 +# +#bind "edit" "Left" = "left" +#bind "edit" "Right" = "right" +#bind "edit" "home" = "home" +#bind "edit" "Ctrl-A" = "home" +#bind "edit" "Up" = "Up" +#bind "edit" "Down" = "down" +#bind "edit" "End" = "end" +#bind "edit" "Ctrl-E" = "end" +#bind "edit" "Ctrl-Insert" = "copy-clipboard" +#bind "edit" "Ctrl-B" = "copy-clipboard" +#bind "edit" "Ctrl-X" = "cut-clipboard" +#bind "edit" "Ctrl-V" = "paste-clipboard" +#bind "edit" "Enter" = "enter" +#bind "edit" "Backspace" = "backspace" +#bind "edit" "Ctrl-H" = "backspace" +#bind "edit" "Delete" = "delete" +#bind "edit" "Ctrl-D" = "delete" +#bind "edit" "Ctrl-U" = "kill-to-bol" +#bind "edit" "Ctrl-K" = "kill-to-eol" +#bind "edit" "Ctrl-W" = "auto-complete" + +# Default menu keymap from Links 0.96 +# +#bind "menu" "Left" = "left" +#bind "menu" "Right" = "right" +#bind "menu" "Home" = "home" +#bind "menu" "Ctrl-A" = "home" +#bind "menu" "Up" = "up" +#bind "menu" "Down" = "down" +#bind "menu" "End" = "end" +#bind "menu" "Ctrl-E" = "end" +#bind "menu" "Enter" = "enter" +#bind "menu" "PageDown" = "page-down" +#bind "menu" "Ctrl-F" = "page-down" +#bind "menu" "PageUp" = "page-up" +#bind "menu" "Ctrl-B" = "page-up" diff --git a/elinks/keybind.conf.sample b/elinks/keybind.conf.sample new file mode 100644 index 00000000..3dded9c0 --- /dev/null +++ b/elinks/keybind.conf.sample @@ -0,0 +1,34 @@ +# Example keybinding + +# Copy this file to ~/.elinks/ and use include "keybind.conf" in +# "elinks.conf" to include it. + +# vi-like navigation keys +bind "main" "j" = "down" +bind "main" "k" = "up" +bind "main" "h" = "back" +bind "main" "l" = "enter" +bind "main" "g" = "home" +bind "main" "G" = "end" + +# Keys close to the above +bind "main" "i" = "scroll-up" +bind "main" "m" = "scroll-down" +bind "main" "o" = "goto-url" +bind "main" "O" = "goto-url-current" + +# Netscape-like, just for the hell of it +bind "main" "Alt-o" = "goto-url" + +# Emacs-like paging keys +# Ctrl prefixed keys must be capital :-( +bind "main" "Alt-v" = "page-up" +bind "main" "Ctrl-V" = "page-down" + +# Emacs-like editing keys +bind "edit" "Ctrl-B" = "left" +bind "edit" "Ctrl-F" = "right" + +# Analogous to goto_line_cmd in my Jed and Emacs setups +bind "main" "Alt-g" = "goto-url" +bind "main" "Alt-G" = "goto-url-current" -- 2.39.5