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
|
# A sample of ~/.w3m/keymap (default)
#
# Ctrl : C-, ^
# Escape: ESC-, M-, ^[
# Space : SPC, ' '
# Tab : TAB, ^i, ^I
# Delete: DEL, ^?
# Up : UP, ^[[A
# Down : DOWN, ^[[B
# Right : RIGHT, ^[[C
# Left : LEFT, ^[[D
# Page/Cursor motion
keymap C-f NEXT_PAGE
keymap C-b PREV_PAGE
keymap l MOVE_RIGHT
keymap h MOVE_LEFT
keymap j MOVE_DOWN
keymap k MOVE_UP
keymap < SHIFT_LEFT
keymap > SHIFT_RIGHT
keymap 0 LINE_BEGIN
keymap $ LINE_END
keymap Z CENTER_H
keymap zz CENTER_V
keymap gg GOTO_LINE
keymap gg BEGIN
keymap G END
keymap w NEXT_WORD
keymap b PREV_WORD
keymap TAB NEXT_LINK
keymap ESC-TAB PREV_LINK
keymap u UNDO
keymap C-r REDO
keymap :L LIST_MENU
# Hyperlink operation
keymap M MARK_WORD
# keymap M MARK_URL
keymap C-t TAB_LINK
keymap C-s SAVE_LINK
keymap V VIEW_IMAGE
# keymap V PEEK_IMG
keymap i INFO
keymap ESC-i SAVE_IMAGE
keymap p PEEK_LINK
keymap C-g LINE_INFO
keymap O EXTERN_LINK
# File/Stream operation
keymap o GOTO
keymap O TAB_GOTO
keymap @ READ_SHELL
keymap # PIPE_SHELL
keymap | PIPE_BUF
# Buffer operation
keymap B BACK
keymap L NEXT
keymap H PREV
keymap S SELECT_MENU
keymap ESC-s SAVE
keymap v VIEW
keymap P PRINT
keymap E EDIT
keymap ESC-e EDIT_SCREEN
keymap r RELOAD
keymap ESC-r RESHAPE
# Tab operation
keymap C-p PREV_TAB
keymap C-n NEXT_TAB
keymap t NEW_TAB
keymap T TAB_MENU
keymap d CLOSE_TAB
# Search
keymap / ISEARCH
keymap ? ISEARCH_BACK
keymap n SEARCH_NEXT
keymap N SEARCH_PREV
# Dictionay look-up
keymap ESC-w DICT_WORD
keymap ESC-W DICT_WORD_AT
# Mark operation
keymap m MARK
keymap ] NEXT_MARK
keymap [ PREV_MARK
keymap \" REG_MARK
# bookmark operation
keymap SPC-b VIEW_BOOKMARK
keymap SPC-a ADD_BOOKMARK
# Misc operation
keymap \\ MENU
keymap :H HELP
keymap :O OPTIONS
keymap ESC-k COOKIE
keymap ESC-h HISTORY
keymap ESC-c COMMAND
keymap ! EXEC_SHELL
keymap ESC-z INTERRUPT
keymap C CHARSET
keymap :q EXIT
keymap Q COMMAND "EXTERN 'echo %s > ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ;EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; NEXT_TAB ; EXTERN 'echo %s >> ~/.w3m/RestoreSession.txt' ; READ_SHELL ~/.w3m/cgi-bin/restore_session.cgi ; EXIT"
# external stuff
keymap SPC-r COMMAND "SHELL 'readable $W3M_URL -p html-title,html-content > /tmp/readable.html'; LOAD /tmp/readable.html"
keymap xt COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi"
keymap XT COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_tmux_clipboard.cgi"
# keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
# keymap XS COMMAND "SHELL /home/bloodstalker/scripts/bin/fzf_surfraw ; TAB_GOTO /home/bloodstalker/scripts/bin/goto_clipboard.cgi"
# keymap xs COMMAND "SHELL /home/bloodstalker/scripts/bin/fzf_surfraw"
keymap go COMMAND "SHELL /usr/lib/w3m/cgi-bin/goto_clipboard.cgi"
# keymap XS COMMAND "SHELL /home/bloodstalker/scripts/bin/fzf_surfraw; TAB_GOTO /home/bloodstalker/scripts/bin/goto_clipboard.cgi"
keymap SPC-s COMMAND "TAB_GOTO searx.terminaldweller.com"
keymap d COMMAND "EXTERN 'echo %s >> ~/.w3m/RestoreTab.txt' ; CLOSE_TAB"
keymap u TAB_GOTO /usr/lib/w3m/cgi-bin/restore_tab.cgi
# keymap u TAB_GOTO /home/devi/.w3m/cgi-bin/restore_tab.cgi
keymap SPC-m CURSOR_MIDDLE
keymap SPC-l CURSOR_BOTTOM
keymap SPC-h CURSOR_TOP
keymap xb COMMAND "SHELL ~/.w3m/cgi-bin/fzf_bookmarks.cgi ; GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
keymap XB COMMAND "SHELL ~/.w3m/cgi-bin/fzf_bookmarks.cgi ; TAB_GOTO /usr/lib/w3m/cgi-bin/goto_clipboard_primary.cgi"
|