Home » Language IDEs » C / C++ IDE (CDT) » Rebind C-f in LPEX
Rebind C-f in LPEX [message #32639] |
Fri, 17 May 2002 10: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 #32674 is a reply to message #32639] |
Fri, 17 May 2002 12:42 |
Eclipse User |
|
|
|
Originally posted by: adrianstoristeanu.sympatico.ca
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 #32740 is a reply to message #32674] |
Fri, 17 May 2002 12: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 #32814 is a reply to message #32674] |
Fri, 17 May 2002 14:22 |
Eclipse User |
|
|
|
Originally posted by: herbert.spamcop.net
adrian <adrianstoristeanu@sympatico.ca> wrote:
[quoting fixed]
> Herbert Martin Dietze wrote:
>> 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?
[...]
> in the vi mode, but the vi documentation I know of doesn't say pageDown
> should search. Should it?
Oops, that's a misunderstanding. C-f should do PageDown, not
Search.
Cheers,
Herbert
--
Tand, Tand ist das Gebilde von Menschenhand
-=-=- -=-=-=-=-
Dipl.Ing. Martin "Herbert" Dietze -=-=- The University of Buckingham -=-=-
|
|
|
Re: Rebind C-f in LPEX [message #32832 is a reply to message #32740] |
Fri, 17 May 2002 14:26 |
Eclipse User |
|
|
|
Originally posted by: herbert.spamcop.net
adrian <adrianstoristeanu@sympatico.ca> wrote:
> You *could* redefine pageDown in the command-line context (Preferences
command-line context?
> -> 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
I did not succeed to get anything but `find' assigned to C-f.
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?
Cheers,
Herbert
--
If you cannot convince them, confuse them.
-- Harry S Truman
-=-=- -=-=-=-=-
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 14: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 #32966 is a reply to message #32814] |
Fri, 17 May 2002 14:44 |
Eclipse User |
|
|
|
Originally posted by: adrianstoristeanu.sympatico.ca
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.
|
|
|
Re: Rebind C-f in LPEX [message #32999 is a reply to message #32966] |
Fri, 17 May 2002 14: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.
|
|
|
Goto Forum:
Current Time: Thu Dec 26 23:53:47 GMT 2024
Powered by FUDForum. Page generated in 0.05281 seconds
|