# 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
+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
const struct {
char* command;
} default_config[] = {
- {"nmap o inputopen"},
- {"nmap O inputopencurrent"},
- {"nmap : input"},
- {"nmap d quit"},
+ {"nmap o=inputopen"},
+ {"nmap O=inputopencurrent"},
+ {"nmap :=input"},
+ {"nmap d=quit"},
{NULL}
};
g_strstrip(line);
/* split into keybinding and command */
- char **string = g_strsplit(line, " ", 2);
+ char **string = g_strsplit(line, "=", 2);
guint len = g_strv_length(string);
if (len == 2 && command_exists(string[1])) {