aboutsummaryrefslogtreecommitdiffstats
path: root/keybind.c
diff options
context:
space:
mode:
authorWe're Yet <58348703+butwerenotthereyet@users.noreply.github.com>2020-01-04 07:34:45 +0000
committerWe're Yet <58348703+butwerenotthereyet@users.noreply.github.com>2020-01-04 07:42:05 +0000
commit3f15e127d2807d6dd49d085eb766987b3cdca767 (patch)
tree3c35abd44abacaf7a7d855c56a6a8c033e988b39 /keybind.c
parentUpdate ChangeLog (diff)
downloadw3m-3f15e127d2807d6dd49d085eb766987b3cdca767.tar.gz
w3m-3f15e127d2807d6dd49d085eb766987b3cdca767.zip
Add command to go home.
When w3m is launched, if no other options are specified, it attempts to read HTTP_HOME and WWW_HOME from the environment and upon finding a value for one of these load the url specified. Once launched, though, w3m provides no convenience for navigating to the home page. Here, that ability is added. A new command GOTO_HOME is defined with a default key binding of C-_.
Diffstat (limited to '')
-rw-r--r--keybind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keybind.c b/keybind.c
index fec0c65..e9ef08b 100644
--- a/keybind.c
+++ b/keybind.c
@@ -13,7 +13,7 @@ unsigned char GlobalKeymap[128] = {
/* C-p C-q C-r C-s C-t C-u C-v C-w */
movU, closeT, isrchbak, isrchfor, tabA, prevA, pgFore, wrapToggle,
/* C-x C-y C-z C-[ C-\ C-] C-^ C-_ */
- nulcmd, nulcmd, susp, escmap, nulcmd, nulcmd, nulcmd, nulcmd,
+ nulcmd, nulcmd, susp, escmap, nulcmd, nulcmd, nulcmd, goHome,
/* SPC ! " # $ % & ' */
pgFore, execsh, reMark, pipesh, linend, nulcmd, nulcmd, nulcmd,
/* ( ) * + , - . / */