× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi,

I'm not sure I understand, so if I have misunderstood then all the text below is just something you might find interesting but won't be pertinent to your problem. Are you saying that in LPEX you are using the right-hand-side CTRL key as an ENTER key? I didn't know you could do that!

All versions of WDSC I've used has this "thing" about profiles in LPEX. Each profile (lpex, seu, etc...) can have a set of different key-presses. It is possible to define the two different ENTER keys to do two different things, and the default keypress settings in the SEU profile will do different things for each ENTER key.

You can press ESC (while viewing/editing a source profile) and type "query baseProfile" (without quotes and case sensitive) and the line above where you just typed will say something like "baseProfile seu". Then type "?seu" to see how most of the seu profile's keys are setup. (At the bottom of the help system page for the SEU base profile is a link to "keyaction" which will help you understand what all those a-enter.p.secondary type codes mean.)

I'm not certain these are the defaults for the SEU profile, but mine are setup like this:
Enter [textArea] = openLine
Enter [prefixArea] = processPrefix
NumpadEnter [textArea] = splitLine
NumpadEnter [prefixArea] = processPrefix
[The openLine action creates a new line after the current line and moves the cursor to the beginning of the new line.]
[The processPrefix action processes the prefix commands.]
[The splitLine action splits the current line at the current cursor position and moves the remainder of the line to the beginning of the new line.]

See this wiki page for one method of changing your keypress mappings: http://wiki.midrange.com/index.php/WDSC_LPEX#Remap_keyboard_shortcuts

One other thing you might want to check is if you press CTRL-SHIFT-L twice (in windows. Not sure what the mac keypress is.) the key preferences come up. If the "Scheme" at the top of the key preferences is not set to "Default" then you get all sorts of problems as the base key settings are probably defined as "Emacs" which can be completely alien to most i5/OS programmers. I got caught out by this just the other week, and it took ages until I remembered how to fix it.

I hope this helps, and the wall of text didn't stop you reading this far.


- Paul

-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: 19 July 2011 19:42
To: 'Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries'
Subject: Re: [WDSCI-L] WDSc - Auto-Indentation Works, Doesn't Work

Sorry, I forgot to say that I was entering an RPG IV free-format member.

Obviously, I don't expect this issue to be "fixed" in WDSc. I just thought that (a) it was pretty weird, and (b) possibly there was some preference setting that I missed.

Thanks to Gary's note I did find the "Auto Indent" checked. I had not noticed the non-standard behavior of the Enter keys when in the middle of a line. I'm used to holding down the Ctrl key when pressing Enter so that the line doesn't break in the middle, but the Enter key above the Ctrl key works fine in my case.

I'm not a touch typist so I don't know why I even used the Enter key above Ctrl because usually my fingers are closer to one of the other Enter keys.
I've gotten used to the workarounds; I'll just have to stay away from the Enter key that works as it should!

Jerry C. Adams
IBM i Programmer/Analyst
One word sums up probably the responsibility of the vice president. And that one word is "to be prepared." -Vice President Dan Quayle
--
A&K Wholesale
Murfreesboro, TN
615-867-5070


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Bob P. Roche
Sent: Tuesday, July 19, 2011 12:45 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] WDSc - Auto-Indentation Works, Doesn't Work

I'm WDSC 7 not RDI or RDP, but I think they are referring to automatic indenting in free form RPGIV. There is a setting for that in preferences on WDSC.

I haven't looked for a keyboard map, but the enter keys on my system do act differently. The main enter key (over right control) will give me a new line even if I'm in the middle of existing code and it indents. The enter key on the keypad, will break the line where the cursor is and move it down to the new line without indenting. The right control key does not act like an enter key.



From:
Gary Thompson <GThompson@xxxxxxxxxxx>
To:
Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Date:
07/19/2011 12:35 PM
Subject:
Re: [WDSCI-L] WDSc - Auto-Indentation Works, Doesn't Work Sent by:
wdsci-l-bounces@xxxxxxxxxxxx



Jerry wrote:

Also, still begs the question why the two keys labeled (on my keyboard,
anyway) as "Enter" act differently.

I am using Rational Developer 8.0.3, editing an RPGLE member,
while using either the i Projects or RSE perspectives,
so this may or may not apply to your question, but I
agree, block indent on Enter could be useful.

I have not seen "Automatic indent" work with Enter above the
right hand Ctrl key - even though "Automatic indent"
is checked on ILE RPG Preferences page under:
Remote Systems
Remote Systems LPEX Editor
IBM i Parsers
ILE RPG

under LPEX Editor, Tabs, I see:
Tab stops = 1
Tab increment = 8

Tab settings seem to mainly affect myTab key operation

BTW, I have un-checked Automatic indent for CL, but don't
see how this applies.

Using the Enter key on the numeric key pad, I get some different and
"interesting" results, but nothing useful so far.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.