Whoops! I missed something! (happens alla da time)
How is "oneSpace" better than End, SHIFT-down-arrow, SHIFT(position-cursor as necessary using arrow keys to where you want the next line joined) and hit the Delete key? That even cleans up any comments out to the right. The sequence sounds complicated, but is easy once the rhythm is established. The positioning is enhanced by using SHFT-CTRL-left arrow, sometimes.
I'm a "don't let your fingers leave the keyboard, and don't take your eyes off the screen" kind of guy myself.
Duane
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck Calabro
Sent: Friday, April 15, 2016 1:26 PM
To: wdsci-l@xxxxxxxxxxxx
Subject: Re: [WDSCI-L] Alt-j (join lines)
On 4/15/2016 11:52 AM, Roger Harman wrote:
I also voted for that one when I first saw it.
But, the "oneSpace" is a great workaround.
Where do you find these things?
I have an unhealthy tendency to use the command line instead of a mouse or a dialogue box. After embarrassing myself with regex, I went back into the documentation to see what else I was getting wrong.
Escape to get to the command line.
F1 to summon the help / references.
Click on 'Issuing editor commands'.
There are 3 separate concepts which are related to each other but are different enough to warrant separate references:
Editor commands
Editor actions
Editor parameters
The distinction between commands and actions is that a command accepts parameters; actions don't. Which makes an action quite suitable to attach to a keyboard shortcut or mouse click :-) So 'findText', having parameters, is a command but 'join' is an action suitable to assign to say, Alt-j.
Editor Parameters are sort of like environment variables for the editor.
Many editor parameters set global behaviour, but others are more transient, and act in concert with Editor Actions. Editor parameters are retrieved with the 'query' command: 'query lines' retrieves the number of lines in the source. Setting the parameters is done with the 'set' command. Here's an interesting thing to experiment with:
Open a source member.
Position to line 1, column 1.
Escape to go to the command line.
action right
Escape to go to the editor.
The cursor should be on line 1, column 2.
Escape to go to the command line
set actionArgument 25
action right
Escape to go back to the editor.
The cursor moved right 25 times.
All of this stuff is in there to help developers write plug-ins. But they can all be used from the command line too, which weirdly enough, is one way to prototype a script I want to run.
--
--buck
Visit wiki.midrange.com and register for an account. Edit a page that helps you, and because it's public, you'll help someone else, too!
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
________________________________
________________________________
CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact NALC Health Benefit Plan at 703-729-4677 and delete and destroy the original message and all copies.
As an Amazon Associate we earn from qualifying purchases.