about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2021-01-23 14:20:41 +0100
committerbptato <nincsnevem662@gmail.com>2021-01-23 14:20:41 +0100
commited3886ab51a76f184d023d79e085f928427b8328 (patch)
tree1e95754cb83677fa278be4206f4876e3af835a84 /config
parent94d681b3935a3f9105dc60320230fa9657cbd7b5 (diff)
downloadchawan-ed3886ab51a76f184d023d79e085f928427b8328.tar.gz
unicode kinda broken otherwise better than ever
Diffstat (limited to 'config')
-rw-r--r--config58
1 files changed, 58 insertions, 0 deletions
diff --git a/config b/config
new file mode 100644
index 00000000..48e81660
--- /dev/null
+++ b/config
@@ -0,0 +1,58 @@
+#normal mode keybindings
+nmap q ACTION_QUIT
+nmap h ACTION_CURSOR_LEFT
+nmap j ACTION_CURSOR_DOWN
+nmap k ACTION_CURSOR_UP
+nmap l ACTION_CURSOR_RIGHT
+nmap \e[D ACTION_CURSOR_LEFT
+nmap \e[B ACTION_CURSOR_DOWN
+nmap \e[A ACTION_CURSOR_UP
+nmap \e[C ACTION_CURSOR_RIGHT
+nmap ^ ACTION_CURSOR_LINEBEGIN
+nmap $ ACTION_CURSOR_LINEEND
+nmap b ACTION_CURSOR_PREV_WORD
+nmap B ACTION_CURSOR_PREV_NODE
+nmap w ACTION_CURSOR_NEXT_WORD
+nmap W ACTION_CURSOR_NEXT_NODE
+nmap [ ACTION_CURSOR_PREV_LINK
+nmap ] ACTION_CURSOR_NEXT_LINK
+nmap H ACTION_CURSOR_TOP
+nmap M ACTION_CURSOR_MIDDLE
+nmap L ACTION_CURSOR_BOTTOM
+nmap C-d ACTION_HALF_PAGE_DOWN
+nmap C-u ACTION_HALF_PAGE_UP
+nmap C-f ACTION_PAGE_DOWN
+nmap C-b ACTION_PAGE_UP
+nmap \e[6~ ACTION_PAGE_DOWN
+nmap \e[5~ ACTION_PAGE_UP
+nmap C-e ACTION_SCROLL_DOWN
+nmap C-y ACTION_SCROLL_UP
+nmap J ACTION_SCROLL_DOWN
+nmap K ACTION_SCROLL_UP
+nmap C-m ACTION_CLICK
+nmap C-j ACTION_CLICK
+nmap C-l ACTION_CHANGE_LOCATION
+nmap U ACTION_RELOAD
+nmap r ACTION_RESHAPE
+nmap R ACTION_REDRAW
+nmap gg ACTION_CURSOR_FIRST_LINE
+nmap G ACTION_CURSOR_LAST_LINE
+nmap \e[H ACTION_CURSOR_FIRST_LINE
+nmap \e[F ACTION_CURSOR_LAST_LINE
+nmap z ACTION_CENTER_LINE
+nmap C-g ACTION_LINE_INFO
+
+#line editing keybindings
+lemap C-m ACTION_LINED_SUBMIT
+lemap C-j ACTION_LINED_SUBMIT
+lemap C-h ACTION_LINED_BACKSPACE
+lemap C-? ACTION_LINED_BACKSPACE
+lemap C-c ACTION_LINED_CANCEL
+lemap \eb ACTION_LINED_PREV_WORD
+lemap \ef ACTION_LINED_NEXT_WORD
+lemap C-b ACTION_LINED_BACK
+lemap C-f ACTION_LINED_FORWARD
+lemap C-u ACTION_LINED_CLEAR
+lemap C-k ACTION_LINED_KILL
+lemap C-w ACTION_LINED_KILL_WORD
+lemap C-v ACTION_LINED_ESC