I was thinking of implementing more of Firefox's key shortcuts in Dillo, namely Alt-<n> -> "Go to nth tab" for <n> = 1, 2, 3, ... 8 and Alt-9 -> "Go to last tab". (That last one would be really useful when I have more tabs open than will fit in the tab bar.) But then I thought "how do we configure this in keysrc?". The obvious solution is to add separate entries for each of the 9 commands. But this is clearly silly because no-one wants to use, say, Alt as the prefix for going to the 4th tab but Ctrl-Shift as the prefix for going to the 5th tab. Why should users have to add 9 entries to keysrc just because they prefer Ctrl-Shift to Alt? So I think we really want a single keyssrc entry that defines the modifier keys that bind the 1, 2, 3, ... 9 keys to the "Go to tab" commands. But this would significantly complicate the current code. Is it worth it? Regards, Jeremy Henty
I wrote:
So I think we really want a single keyssrc entry that defines the modifier keys that bind the 1, 2, 3, ... 9 keys to the "Go to tab" commands. But this would significantly complicate the current code. Is it worth it?
@crickets *chirp* I'll take that as a "no". :-) I notice that keys.hh defines KEYS_{FIRST,LAST}_TAB but they are not bound to anything. Maybe we could bind them to Ctrl-{Home,End}? It seems natural and they could be sensibly customised in keysrc without complicating the code. Regards, Jeremy Henty
On Tue, Dec 13, 2011 at 03:51:01PM +0000, Jeremy Henty wrote:
I wrote:
So I think we really want a single keyssrc entry that defines the modifier keys that bind the 1, 2, 3, ... 9 keys to the "Go to tab" commands. But this would significantly complicate the current code. Is it worth it?
@crickets *chirp*
I'll take that as a "no". :-)
I notice that keys.hh defines KEYS_{FIRST,LAST}_TAB but they are not bound to anything. Maybe we could bind them to Ctrl-{Home,End}? It seems natural and they could be sensibly customised in keysrc without complicating the code.
What's humorous about all these key binding on Dillo, I rarely ever use key bindings within a GUI application. At most for Dillo, I use the mouse buttons and scroll wheel. Once my hands are off the keyboard and on a mouse, it's difficult and time consuming to switch back & forth to a keyboard. And, I mostly use command line applications, for the main reason using a keyboard is faster. (Second reason, less resource intensive.) Making it even more difficult for GUI users, there just isn't any incentive for using the keyboard while in X or GUI, unless one yanks (detaches) the mouse. Then, most users are like (duh), what do I do now -- because there's no method to see key bindings easily. Funny! Hence, key bindings are likely a good fall back method if you have key bindings memorized. -- Roger http://rogerx.freeshell.org/
Roger wrote:
[...] Jeremy Henty wrote:
I notice that keys.hh defines KEYS_{FIRST,LAST}_TAB but they are not bound to anything. Maybe we could bind them to Ctrl-{Home,End}? It seems natural and they could be sensibly customised in keysrc without complicating the code.
What's humorous about all these key binding on Dillo, I rarely ever use key bindings within a GUI application. At most for Dillo, I use the mouse buttons and scroll wheel.
That may be your style but I use the keyboard a lot to drive Dillo (and like you I use terminal applications a lot). I have a patch to bind KEYS_{FIRST,LAST}_TAB in my local repository and I find it really useful, particularly when I have so many tabs open that they cannot all be displayed in the tab bar. I'll submit the patch for consideration in a few days. Regards, Jeremy Henty
I wrote:
I'll submit the patch for consideration in a few days.
OK, here it is. It binds Ctrl-{Home,End} to {first,last}-tab. I find it very useful. There is one oddity - sometimes Dillo ignores the Ctrl key so that Ctrl-{Home,End} behave like {Home,End}. This bug usually disappears after I Ctrl-{Shift,}-tab to some other tab but I do not know how to consistently cause or resolve the problem. I suspect that the patch is not the real cause. Please comment. Regards, Jeremy Henty
Jeremy wrote:
There is one oddity - sometimes Dillo ignores the Ctrl key so that Ctrl-{Home,End} behave like {Home,End}. This bug usually disappears after I Ctrl-{Shift,}-tab to some other tab but I do not know how to consistently cause or resolve the problem. I suspect that the patch is not the real cause.
Does it work to put a check for Home or End with no modifier wherever it makes sense, and then put a breakpoint on that and have a look at the backtrace?
participants (3)
-
corvid@lavabit.com
-
onepoint@starurchin.org
-
rogerx.oss@gmail.com