Rebind C-f in LPEX [message #32639] |
Fri, 17 May 2002 06:32  |
Eclipse User |
|
|
|
Originally posted by: herbert.spamcop.net
Hello,
I like the vi keymap for LPEX, however the search dialogue on
C-f really irritates me. How can I reconfigure this to PageDown,
like vi's fathers wanted it?
Cheers,
Herbert
--
WE ARE THE BORG - RESISTANCE IS VOLTAGE DIVIDED BY CURRENT!
-=-=- -=-=-=-=-
Dipl.Ing. Martin "Herbert" Dietze -=-=- The University of Buckingham -=-=-
|
|
|
|
Re: Rebind C-f in LPEX [message #32740 is a reply to message #32674] |
Fri, 17 May 2002 08:53   |
Eclipse User |
|
|
|
Originally posted by: adrianstoristeanu.sympatico.ca
You *could* redefine pageDown in the command-line context (Preferences
-> LPEX Editor -> User Key Actions -> Key: pageDown.c Action:
findAndReplace -> Set -> OK): now, '/' or '?' will take you to the
command line, and pageDown will bring up the live find. The extra step
is, however a hassle, methinks...
adrian wrote:
>
> Unfortunately, the vi base profile in LPEX is not (because its
> implementation had to be different from the generic LPEX key
> redefinition mechanism that could be used for other base profiles)
> user-customizable...
>
> There are '/' and '?' activating string search (forwards and backwards)
> in the vi mode, but the vi documentation I know of doesn't say pageDown
> should search. Should it?
>
> Herbert Martin Dietze wrote:
> >
> > Hello,
> >
> > I like the vi keymap for LPEX, however the search dialogue on
> > C-f really irritates me. How can I reconfigure this to PageDown,
> > like vi's fathers wanted it?
> >
> > Cheers,
> >
> > Herbert
> >
> > --
> > WE ARE THE BORG - RESISTANCE IS VOLTAGE DIVIDED BY CURRENT!
> > -=-=- -=-=-=-=-
> > Dipl.Ing. Martin "Herbert" Dietze -=-=- The University of Buckingham -=-=-
|
|
|
|
|
Re: Rebind C-f in LPEX [message #32935 is a reply to message #32832] |
Fri, 17 May 2002 10:39   |
Eclipse User |
|
|
|
Originally posted by: adrianstoristeanu.sympatico.ca
Herbert Martin Dietze wrote:
> command-line context?
A key can behave differently (be bound to a different action) depending
on its context (see the keyAction parameter in the docs): when in the
text-area (once again, excepting the vi base profile...), when in the
prefix area (for profiles such as xedit), and when on the LPEX command
line.
> BTW, I remember LPEX from my good old OS/2 days (I even wrote a
> WordStar emulation for it), and there was keymap files you
> could edit by hand. So this has changed for this particular
> implementation?
Key-action bindings can be done on the fly for the current view from the
LPEX command line:
keyAction.tab insertTab
Default key definitions are done via the Preferences, and are stored in
eclipse/workspace/.metadata/.plugins/com.ibm.lpex/Editor.pro perties
(which you could edit manually), e.g.,
default.updateProfile.userKeyActions="tab insertTab pageDown.c
findAndReplace"
which redefines the tab in the text area (the default context, or
explicitly ".t"), and pageDown key on the command line (context is
".c").
|
|
|
|
Re: Rebind C-f in LPEX [message #32999 is a reply to message #32966] |
Fri, 17 May 2002 10:51  |
Eclipse User |
|
|
|
Originally posted by: adrianstoristeanu.sympatico.ca
As Robert just pointed out to me, C-F and C-B are indeed defined in vi
to page up and down, and this is indeed how they are defined in LPEX's
vi base profile. C-F, though, has the problem indicated below when
running inside Eclipse.
adrian wrote:
>
> In Eclipse, Ctrl+F is the global find action. Therefore, even if it
> were redefined in LPEX to do pageDown (or anything else), it won't even
> get to LPEX. The Eclipse key-bindings feature may solve some of this,
> but I'm not sure what's the current status.
>
> Herbert Martin Dietze wrote:
> > Oops, that's a misunderstanding. C-f should do PageDown, not
> > Search.
|
|
|
Powered by
FUDForum. Page generated in 0.05544 seconds