Hi Bego, hi Mofi!
Yep, Bego, you're right, I want to visually move text lines. Since I discovered this feature in Eclipse, I'm eager to have it in UE also. The next logical step was of course to be able to move portions of text to the left and right also.
BIG thanks Mofi for that great tip using "Find" - it does a great job!
Bego, thanks for your scripts! I had done the same in the beginning, then I've found the "SelectLine" command, making things a bit easier. A great idea is to have a macro with default settings to restore them after a macro - I will incorporate that in all future macros.
These are my VisualMove (tm) macros right now:
Move sel left
- Code: Select all
Clipboard 8
InsertMode
ColumnModeOff
Cut
Key LEFT ARROW
Paste
Find Up "^c"
Clipboard 0
Move sel right
- Code: Select all
Clipboard 8
InsertMode
ColumnModeOff
Cut
Key RIGHT ARROW
Paste
Find Up "^c"
Clipboard 0
Move line down
- Code: Select all
Clipboard 8
InsertMode
ColumnModeOff
SelectLine
Cut
Key DOWN ARROW
Paste
Key UP ARROW
Clipboard 0
Move line up
- Code: Select all
Clipboard 8
InsertMode
ColumnModeOff
SelectLine
Cut
Key UP ARROW
Paste
Key UP ARROW
Clipboard 0
Copy line down
- Code: Select all
DupeLine
Copy line up
- Code: Select all
DupeLine
Key UP ARROW