Package: w3m Version: 0.5.1-4 Severity: wishlist File: /usr/bin/w3m Tags: patch
Hi there. I am very used to the semantic -- which is standard in the U.S. as far as I know, that SHIFT-TAB means "move backward one tab stop". As opposed to unshifted TAB, which moves forward. This has been adapted to widget selection in GUIs like GTK+ and Qt. You can rotate through the available widgets without using the mouse. TAB moves you forward and SHIFT-TAB moves you backwards. When I use w3m I find it frustrating that TAB moves forward through the available links, but SHIFT-TAB doesn't move backwards. The obvious solution, "keymap S-TAB PREV_LINK", doesn't work because SHIFT-TAB is not an ordinary ASCII character but a terminal control sequence. Terminfo refers to it as "cbt" ("back tab"). You have to say, in your $HOME/.w3m/keymap file: keymap ^[[Z PREV_LINK You can type the ^[ literally, without fancy quoting tricks -- w3m's key binding parser will understand it to mean ESC. I am attaching a patch that updates the default keybinding accordingly. There's only one problem: the w3mhelp.cgi script doesn't seem to notice that the sequence is bound, and yet it works anyway. This may be a bug in whatever code lists all key bindings for a given function. The former approach, using a keymap file, does not tickle this bug in the w3mhelp CGI script. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.14-2-powerpc-smp Locale: LANG=C, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages w3m depends on: ii libc6 2.3.5-12 GNU C Library: Shared libraries an ii libgc1c2 1:6.6-2 conservative garbage collector for ii libgpmg1 1.19.6-21 General Purpose Mouse - shared lib ii libncurses5 5.5-1 Shared libraries for terminal hand ii libssl0.9.7 0.9.7g-5 SSL shared libraries ii zlib1g 1:1.2.3-9 compression library - runtime Versions of packages w3m recommends: ii ca-certificates 20050804 Common CA Certificates PEM files -- no debconf information
--- w3m-0.5.1.debian/keybind.c 2002-12-12 22:02:03.000000000 -0500 +++ w3m-0.5.1/keybind.c 2006-01-31 21:20:39.000000000 -0500 @@ -99,7 +99,7 @@ /* P Q R S T U V W */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, /* X Y Z [ \ ] ^ _ */ - nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, + nulcmd, nulcmd, prevA, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, /* ` a b c d e f g */ nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, nulcmd, /* h i j k l m n o */