On Sat, Dec 01, 2007 at 03:27:32PM +0200, Eugene V. Lyubimkin wrote:
> Bob Rossi wrote:
> > On Sat, Dec 01, 2007 at 09:25:27AM +0200, Eugene V. Lyubimkin wrote:
> >> Bob Rossi wrote:
> >>> On Fri, Nov 30, 2007 at 10:03:52PM +0200, Eugene V. Lyubimkin wrote:
> >>>> Have a good day.
> >>>>
> >>>> I noticed that key bindings for "send command 'next' to debugger" and
> >>>> "next forward search in source window" are both - 'n'. I want to use
> >>>> shortcuts, but therefore if I press 'n' gdb try to go the next line in
> >>>> program, and I can't do a forward searching. Please fix it or provide a
> >>>> workaround.
> >>> Hi Eugene,
> >>>
> >>> Thanks for the report. Do you have any suggestions on what we could do
> >>> to fix this problem? One suggestion I was given was to have the F1-F9
> >>> keys handel the next/step/run functionality. Those are standardized on a
> >>> lot of front ends.
> >>>
> >>> What do you think?
> >>>
> >>> Bob Rossi
> >>>
> >> Suggestion about F1-F9 seems good, anyway these keys aren't used now,
> >> are they?
> >> But what do you think about changing 'forward search binding' key to
> >> 'y', for example? or 'w' - "forWard"?
> >
> > In the version you have, these commands should work,
> >
> > F5 is now the same as 'r'.
> > F6 is now the same as 'c'.
> > F7 is now the same as 'f'.
> > F8 is now the same as 'n'.
> > F10 is now the same as 's'.
> >
> > Can you verify that that is true? I've added this to the documentation.
> Yes, I can. I've verfied this bindings - all of the are working.
> Hm... Probably, I'll start to use them as workaround of this situation.
> > Also, I'm trying to figure out if I can use the imap command to have 'w'
> > do what you want.
OK, here is the other solution that you can use with svn trunk. You can
put this,
map w :set<Space>noshortcut<CR>n:set<Space>shortcut
in your ~/.cgdb/cgdbrc
That will allow 'w' to act like 'n' when you are not in shortcut mode.
Essentially allowing 'w' to do the next search. The only real downside
is, it doesn't seem to highlight when you search. Let me know what you
think about this.
Bob Rossi
|