Duplicate a line

Let us know what you would like to see in the next version of this software

Moderator: kfury77

Forum rules
Please follow these guidelines when posting feature requests. This will help to increase the value of your contribution.
  • Do not create new topics for already requested features. Add your comments to the existing feature request topics instead;
  • Create separate topic for each feature suggestion. Do NOT post a number of non-related feature suggestions in a single topic;
  • Give your topic a meaningful title. Do NOT create topics with meaningless titles, such as "My Suggestion" or "My Problem".
Please note that we DO READ all suggestions, even if a reply is not posted. Thanks!
Post Reply
Reuvenm
Posts: 18
Joined: Sat Jul 02, 2005 1:13 pm

Duplicate a line

Post by Reuvenm »

CMD+D for example, to replicate a line (when the cursor is in that line-begining) OR a block of code (when this block is marked).
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

Currently you can easily delete line using Ctrl+Y (it is undocummented feature, so it may change). You can also delete line by clicking on gutter to select it and then simply using Del key.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Reuvenm
Posts: 18
Joined: Sat Jul 02, 2005 1:13 pm

Post by Reuvenm »

I ment DUPLICATE a line/block (clone, as copy/paste in one go), nice to have when you lay out variables or repetitive lines with only small differences between them.
User avatar
syrupcore
Top Contributor
Posts: 917
Joined: Thu Jul 21, 2005 12:58 am
Location: Portland, Oregon, usa
Contact:

Post by syrupcore »

dbl-click in the gutter to select the whole line, ctrl-x to cut it, ctrl-v to paste it, ctrl-v to paste it again, ctrl-v to paste it again...

starting with the gutter plus cut will insert it as a new line each time. it's one extra key stroke.

will
MoeBass
Posts: 14
Joined: Sat Oct 08, 2005 11:31 pm
Location: southeast USA
Contact:

I agree...

Post by MoeBass »

Reuvenm wrote:I ment DUPLICATE a line/block (clone, as copy/paste in one go), nice to have when you lay out variables or repetitive lines with only small differences between them.
I agree: This feature would be "nice" to have. In the mean time, syrupcore's suggestion is a decent work-around.
-Moe
if, no matter where you go, nothing seems to change, maybe it's time to look at what you're bringing with you.
mwb1100
Posts: 72
Joined: Thu Jun 02, 2005 8:00 am

Post by mwb1100 »

One feature I've gotten used to in other editors that's similar to what's being discussed in this thread is that the Cut and Copy commands (Ctrl-X and Ctrl-C respectively) will act on the current line if nothing is selected.

So to dup a line is simply: Ctrl-C Ctrl-V

To Cut a line: Ctrl-X

I find this very handly, it would be a nice little addition to WeBuilder.
MoeBass
Posts: 14
Joined: Sat Oct 08, 2005 11:31 pm
Location: southeast USA
Contact:

mousing around...

Post by MoeBass »

and another idea if you already have one hand on the mouse at the time:
1) highlight the one line to be duplicated (dbl-click inside gutter on that line),
2) hold down ctrl key while clicking inside the highlighted line and
3) drag cursor to the beginning of the next line.
to some, this may be more work. to that i say:
"To each: their own!" :)
-Moe
if, no matter where you go, nothing seems to change, maybe it's time to look at what you're bringing with you.
Post Reply