dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

keymap (7967B)


      1 # Reference: http://epistulus.com/w3m/MANUAL.html
      2 # More: http://www.w3m.rocks/
      3 # Text navigation
      4 keymap 0 LINE_BEGIN
      5 keymap $ LINE_END
      6 keymap C-g LINE_INFO
      7 keymap h MOVE_LEFT
      8 keymap l MOVE_RIGHT
      9 keymap j MOVE_DOWN
     10 keymap k MOVE_UP
     11 keymap gg BEGIN
     12 keymap w NEXT_WORD
     13 keymap b PREV_WORD
     14 keymap G END
     15 
     16 keymap C-j GOTO_LINK
     17 keymap C-m VIEW_IMAGE
     18 
     19 # Scrolling
     20 keymap C-e UP
     21 keymap C-y DOWN
     22 keymap C-f NEXT_PAGE
     23 keymap C-b PREV_PAGE
     24 keymap C-d NEXT_HALF_PAGE
     25 keymap C-u PREV_HALF_PAGE
     26 
     27 # Misc
     28 keymap H BACK
     29 keymap L PREV
     30 keymap ~ GOTO_HOME # specified in $WWW_HOME
     31 keymap C-l REDRAW
     32 keymap s PRINT
     33 keymap S DOWNLOAD
     34 keymap D SAVE_LINK
     35 keymap M-d DOWNLOAD_LIST
     36 keymap ";" COMMAND
     37 keymap e EXTERN_LINK
     38 keymap ] EXTERN
     39 keymap M-e COMMAND 'SET_OPTION default_url=1 ; GOTO ; SET_OPTION default_url=0'
     40 keymap M-f COMMAND 'READ_SHELL ~/.config/w3m/cgi-bin/surfraw-searx.cgi; GOTO /cgi-bin/goto-target-url.cgi'
     41 keymap M-k DEFINE_KEY
     42 keymap C-h HELP
     43 
     44 # Menus
     45 keymap M-h HISTORY
     46 keymap M-b BOOKMARK
     47 keymap M-a ADD_BOOKMARK
     48 keymap M-g SELECT_MENU
     49 keymap M-o LIST_MENU
     50 keymap U LIST # Show all URLs referenced
     51 keymap M-l LINK_MENU
     52 
     53 # Link info
     54 keymap C-g PEEK
     55 keymap I INFO
     56 keymap u PEEK_LINK
     57 keymap i PEEK_IMG
     58 
     59 # Tabs
     60 keymap C-w CLOSE_TAB
     61 keymap C-t NEW_TAB
     62 keymap gt NEXT_TAB
     63 keymap gT PREV_TAB
     64 keymap << TAB_LEFT
     65 keymap >> TAB_RIGHT
     66 keymap C-o TAB_GOTO
     67 keymap o GOTO
     68 keymap O TAB_LINK
     69 keymap r RELOAD
     70 keymap M-r REINIT
     71 
     72 # Macros
     73 keymap SPCr COMMAND 'END; PIPE_SHELL "readable $W3M_URL | w3m -config ~/.config/w3m/config -T text/html -cols $(($(tput cols)*6/10))"'
     74 keymap SPCm COMMAND 'END; PIPE_SHELL "smmry --html $W3M_URL | w3m -config ~/.config/w3m/config -T text/html -cols $(($(tput cols)*6/10))"'
     75 keymap SPCs EXEC_SHELL 'pocket save $W3M_URL'
     76 keymap SPCl EXEC_SHELL 'pocket save $W3M_CURRENT_LINK'
     77 keymap SPCv EXEC_SHELL 'linkhandler "$W3M_CURRENT_LINK"'
     78 keymap SPCu COMMAND 'DOWNLOAD /tmp/w3m_source.html; READ_SHELL ~/.config/w3m/cgi-bin/fzf-urls.cgi; GOTO /cgi-bin/goto-target-url.cgi'
     79 keymap SPC, COMMAND 'SHELL "nvim -o ~/.config/w3m/keymap ~/.config/w3m/config"; REINIT'
     80 keymap xs COMMAND 'READ_SHELL ~/.config/w3m/cgi-bin/surfraw.cgi ; GOTO /cgi-bin/goto-target-url.cgi'
     81 
     82 # Link hinting
     83 keymap f-SPC COMMAND 'MARK m; SET_OPTION display_link_number=toggle; RESHAPE; NEXT_MARK'
     84 keymap ff COMMAND 'SET_OPTION display_link_number=0; RESHAPE; LINK_BEGIN'
     85 keymap ft COMMAND 'SET_OPTION display_link_number=0; RESHAPE; LINK_BEGIN; TAB_LINK'
     86 keymap fo COMMAND 'SET_OPTION display_link_number=0; RESHAPE; LINK_BEGIN; GOTO_LINK'
     87 keymap fn COMMAND 'SET_OPTION display_link_number=0; RESHAPE; LINK_BEGIN; TAB_LINK'
     88 keymap fe COMMAND 'SET_OPTION display_link_number=0; RESHAPE; LINK_BEGIN; EXTERN_LINK'
     89 
     90 keymap m MARK
     91 keymap } NEXT_MARK
     92 keymap { PREV_MARK
     93 keymap \" REG_MARK
     94 # ABORT         Quit at once
     95 # ACCESSKEY     Pop up accesskey menu
     96 # ALARM         Set alarm
     97 # CENTER_H      Center on cursor column
     98 # CENTER_V      Center on cursor line
     99 # CHARSET       Change the character encoding for the current document
    100 # CLOSE_TAB_MOUSE Close tab at mouse pointer
    101 # COOKIE                View cookie list
    102 # CURSOR_TOP    Move cursor to the top line on the screen
    103 # CURSOR_MIDDLE Move cursor to the middle line on the screen
    104 # CURSOR_BOTTOM Move cursor to the bottom line on the screen
    105 # DEFAULT_CHARSET Change the default character encoding
    106 # DELETE_PREVBUF        Delete previous buffer (mainly for local CGI-scripts)
    107 # DICT_WORD     Execute dictionary command (see README.dict)
    108 # DICT_WORD_AT  Execute dictionary command for word at cursor
    109 # DISPLAY_IMAGE Restart loading and drawing of images
    110 # DOWNLOAD      Save document source
    111 # EDIT          Edit local source
    112 # EDIT_SCREEN   Edit rendered copy of document
    113 # EXEC_SHELL    Execute shell command and display output
    114 # EXIT          Quit at once
    115 # EXTERN                Display using an external browser
    116 # EXTERN_LINK   Display target using an external browser
    117 # FRAME         Toggle rendering HTML frames
    118 # GOTO_LINE     Go to the specified line
    119 # GOTO_LINK     Follow current hyperlink in a new buffer
    120 # GOTO_RELATIVE Go to relative address
    121 # HELP          Show help panel
    122 # INFO          Display information about the current document
    123 # INTERRUPT     Suspend w3m to background
    124 # ISEARCH       Incremental search forward
    125 # ISEARCH_BACK  Incremental search backward
    126 # LEFT          Shift screen one column left
    127 # LINK_BEGIN    Move to the first hyperlink
    128 # LINK_END      Move to the last hyperlink
    129 # LINK_MENU     Pop up link element menu
    130 # LIST
    131 # LIST_MENU     Pop up menu for hyperlinks to browse to
    132 # LOAD          Open local file in a new buffer
    133 # MAIN_MENU     Pop up menu
    134 # MARK          Set/unset mark
    135 # MARK_MID      Turn Message-ID-like strings into hyperlinks
    136 # MARK_URL      Turn URL-like strings into hyperlinks
    137 # MARK_WORD     Turn current word into hyperlink
    138 # MENU          Pop up menu
    139 # MENU_MOUSE    Pop up menu at mouse pointer
    140 # MOUSE_TOGGLE  Toggle mouse support
    141 # MOVE_DOWN1    Cursor down. With edge touched, slide
    142 # MOVE_LEFT1    Cursor left. With edge touched, slide
    143 # MOVE_LIST_MENU        Pop up menu to navigate between hyperlinks
    144 # MOVE_MOUSE    Move cursor to mouse pointer
    145 # MOVE_RIGHT1   Cursor right. With edge touched, slide
    146 # MOVE_UP               Cursor up
    147 # MOVE_UP1      Cursor up. With edge touched, slide
    148 # MSGS          Display error messages
    149 # NEXT          Switch to the next buffer
    150 # NEXT_DOWN     Move downward to the next hyperlink
    151 # NEXT_LEFT     Move left to the next hyperlink
    152 # NEXT_LEFT_UP  Move left or upward to the next hyperlink
    153 # NEXT_LINK     Move to the next hyperlink
    154 # NEXT_MARK     Go to the next mark
    155 # NEXT_RIGHT    Move right to the next hyperlink
    156 # NEXT_RIGHT_DOWN       Move right or downward to the next hyperlink
    157 # NEXT_UP               Move upward to the next hyperlink
    158 # NEXT_VISITED  Move to the next visited hyperlink
    159 # NEXT_WORD     Move to the next word
    160 # NOTHING       Do nothing
    161 # NULL          Do nothing
    162 # OPTIONS       Display options setting panel
    163 # PIPE_BUF      Pipe current buffer through a shell command and display output
    164 # PIPE_SHELL    Execute shell command and display output
    165 # PREV          Switch to the previous buffer
    166 # PREV_LINK     Move to the previous hyperlink
    167 # PREV_MARK     Go to the previous mark
    168 # PREV_VISITED  Move to the previous visited hyperlink
    169 # PREV_WORD     Move to the previous word
    170 # PRINT         Save rendered document
    171 # QUIT          Quit with confirmation request
    172 # READ_SHELL    Execute shell command and display output
    173 # REDO          Cancel the last undo
    174 # REDRAW                Draw the screen anew
    175 # REG_MARK      Mark all occurences of a pattern
    176 # RESHAPE       Re-render document
    177 # RIGHT         Shift screen one column right
    178 # SAVE_IMAGE    Save inline image
    179 # SAVE_SCREEN   Save rendered document
    180 # SEARCH                Search forward
    181 # SEARCH_BACK   Search backward
    182 # SEARCH_FORE   Search forward
    183 # SEARCH_NEXT   Continue search forward
    184 # SEARCH_PREV   Continue search backward
    185 # SELECT                Display buffer-stack panel
    186 # SELECT_MENU   Pop up buffer-stack menu
    187 # SETENV                Set environment variable
    188 # SET_OPTION    Set option
    189 # SHELL         Execute shell command and display output
    190 # SHIFT_LEFT    Shift screen left
    191 # SHIFT_RIGHT   Shift screen right
    192 # SOURCE                Toggle between HTML shown or processed
    193 # STOP_IMAGE    Stop loading and drawing of images
    194 # SUBMIT                Submit form
    195 # SUSPEND       Suspend w3m to background
    196 # TAB_GOTO_RELATIVE     Open relative address in a new tab
    197 # TAB_LEFT      Move left along the tab bar
    198 # TAB_MENU      Pop up tab selection menu
    199 # TAB_MOUSE     Select tab by mouse action
    200 # TAB_RIGHT     Move right along the tab bar
    201 # UNDO          Cancel the last cursor movement
    202 # VERSION               Display the version of w3m
    203 # VIEW          Toggle between HTML shown or processed
    204 # VIEW_BOOKMARK View bookmarks
    205 # VIEW_IMAGE    Display image in viewer
    206 # WHEREIS       Search forward
    207 # WRAP_TOGGLE   Toggle wrapping mode in searches