Added all suggested keybindings to th default configuration.
authorDaniel Carl <danielcarl@gmx.de>
Sat, 29 Dec 2012 15:00:20 +0000 (16:00 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 29 Dec 2012 15:00:20 +0000 (16:00 +0100)
Doing it in this way allow to use the browser with full keyboard support
without creating a configuration for before enjoying the great browser
experience.

doc/config [deleted file]
src/config.h

diff --git a/doc/config b/doc/config
deleted file mode 100644 (file)
index 3a9e587..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-# default config
-nmap gf=source
-nmap <shift-:>=input
-nmap o=inputopen
-nmap t=inputtabopen
-nmap O=inputopencurrent
-nmap T=inputtabopencurrent
-nmap d=quit
-nmap <ctrl-o>=back
-nmap <ctrl-i>=forward
-nmap r=reload
-nmap R=reload!
-nmap <ctrl-c>=stop
-nmap <ctrl-f>=pagedown
-nmap <ctrl-b>=pageup
-nmap <ctrl-d>=halfpagedown
-nmap <ctrl-u>=halfpageup
-nmap gg=jumptop
-nmap G=jumpbottom
-nmap 0=jumpleft
-nmap $=jumpright
-nmap h=scrollleft
-nmap l=scrollright
-nmap k=scrollup
-nmap j=scrolldown
-nmap f=hint-link
-nmap F=hint-link-new
-nmap ;o=hint-input-open
-nmap ;t=hint-input-tabopen
-nmap ;y=hint-yank
-nmap y=yank-uri
-nmap Y=yank-selection
-cmap <tab>=complete
-cmap <shift-tab>=complete-back
-hmap <tab>=hint-focus-next
-hmap <shift-tab>=hint-focus-prev
index e8e1d02..75e493b 100644 (file)
 const struct {
     char* command;
 } default_config[] = {
+    {"nmap gf=source"},
+    {"nmap <shift-:>=input"},
     {"nmap o=inputopen"},
+    {"nmap t=inputtabopen"},
     {"nmap O=inputopencurrent"},
-    {"nmap :=input"},
+    {"nmap T=inputtabopencurrent"},
     {"nmap d=quit"},
+    {"nmap <ctrl-o>=back"},
+    {"nmap <ctrl-i>=forward"},
+    {"nmap r=reload"},
+    {"nmap R=reload!"},
+    {"nmap <ctrl-c>=stop"},
+    {"nmap <ctrl-f>=pagedown"},
+    {"nmap <ctrl-b>=pageup"},
+    {"nmap <ctrl-d>=halfpagedown"},
+    {"nmap <ctrl-u>=halfpageup"},
+    {"nmap gg=jumptop"},
+    {"nmap G=jumpbottom"},
+    {"nmap 0=jumpleft"},
+    {"nmap $=jumpright"},
+    {"nmap h=scrollleft"},
+    {"nmap l=scrollright"},
+    {"nmap k=scrollup"},
+    {"nmap j=scrolldown"},
+    {"nmap f=hint-link"},
+    {"nmap F=hint-link-new"},
+    {"nmap ;o=hint-input-open"},
+    {"nmap ;t=hint-input-tabopen"},
+    {"nmap ;y=hint-yank"},
+    {"nmap y=yank-uri"},
+    {"nmap Y=yank-selection"},
+    {"cmap <tab>=complete"},
+    {"cmap <shift-tab>=complete-back"},
+    {"hmap <tab>=hint-focus-next"},
+    {"hmap <shift-tab>=hint-focus-prev"},
     {NULL}
 };