On Mon, Mar 10, 2014 at 11:36:45AM -0600, Patrick Anderson wrote:
> On Thu, Mar 6, 2014 at 3:10 PM, Bob Rossi <
b...@brasko.net> wrote:
>
> > > Den onsdagen den 12:e februari 2014 kl. 22:36:38 UTC+1 skrev Patrick
> > > Anderson:
> >
> > > > I tried customizing the key bindings but found some cannot be changed.
> >
> > Which ones?
> >
>
> While it is possible to add keys that are not already in use, none of the
> default
> bindings can be changed except for the cgdb mode key (ESC by default).
I'm sorry for the long delay.
Right, a decision was made to allow the user to map keys at the keyboard
level. This means arbitrary keys can be mapped to other arbitrary keys.
However, at some point, keys are provided to CGDB. CGDB currently has in
it hardcoded what those keys mean. I thought about this extensively
years ago. Basically we can either
1) Map keys to commands after the macros are expanded. In this mode any
combination of keys can be configured to mean anything. That's powerful
but it misses one key feature of vim:
2) Have the application understand the context of certain keys being
entered to allow certain commands to be interactive. For example, think
of how vim handles searching. When you type '/He' it is searching for
any string that starts with He. You can then type 'l' and the screen
will update looking for Hel.
This interactive functionality is not available with choice 1. One day
I'll be working on this again, and I think I currently favor 2. I
haven't made my mind up yet specifically for people like yourself that
aren't vi users.
What do you think?
Bob Rossi