aboutsummaryrefslogtreecommitdiffstats
path: root/.w3m/keymap
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
committerterminaldweller <thabogre@gmail.com>2021-05-14 18:14:50 +0000
commit6e528248414e330c9e25e81596ab47b8b8a5b701 (patch)
treee1aa41a7f3198eeac187e6177ec7d4a33db229d3 /.w3m/keymap
downloadscripts-6e528248414e330c9e25e81596ab47b8b8a5b701.tar.gz
scripts-6e528248414e330c9e25e81596ab47b8b8a5b701.zip
first commitmaster
Diffstat (limited to '')
-rw-r--r--.w3m/keymap132
1 files changed, 132 insertions, 0 deletions
diff --git a/.w3m/keymap b/.w3m/keymap
new file mode 100644
index 0000000..c78c782
--- /dev/null
+++ b/.w3m/keymap
@@ -0,0 +1,132 @@
+# 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
+
+keymap ESC-b VIEW_BOOKMARK
+keymap ESC-a ADD_BOOKMARK
+
+# 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 ESC-b VIEW_BOOKMARK
+keymap ESC-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' ; 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/local/libexec/w3m/cgi-bin/goto_tmux_clipboard.cgi"
+keymap XT COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw_tmux.cgi ; TAB_GOTO /usr/local/libexec/w3m/cgi-bin/goto_tmux_clipboard.cgi"
+# keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/local/libexec/w3m/cgi-bin/goto_clipboard.cgi"
+keymap xs COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; GOTO /usr/local/libexec/w3m/cgi-bin/goto_clipboard_primary.cgi"
+keymap XS COMMAND "SHELL ~/.w3m/cgi-bin/fzf_surfraw.cgi ; TAB_GOTO /usr/local/libexec/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/local/libexec/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 d COMMAND "EXTERN 'echo %s >> ~/.w3m/RestoreTab.txt' ; CLOSE_TAB"
+keymap u TAB_GOTO /usr/local/libexec/w3m/cgi-bin/restore_tab.cgi
+
+keymap SPC-m CURSOR_MIDDLE
+keymap SPC-l CURSOR_BOTTOM
+keymap SPC-h CURSOR_TOP