macro jump goto empty line select whole paragraph – EmEditor (Text Editor) https://www.emeditor.com Best Text Editor, Code Editor, CSV Editor, Large File Viewer for Windows (Free versions available) Fri, 03 Jan 2014 08:47:12 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.5 Jump / go to / move to next empty line between paragraphs https://www.emeditor.com/forums/topic/jump-go-to-move-to-next-empty-line-between-paragraphs/ Fri, 03 Jan 2014 08:30:00 +0000 http://www.emeditor.com/forums/topic/jump-go-to-move-to-next-empty-line-between-paragraphs/ TASK:
Jump / go to / move to next empty line between paragraphs (or TOF/EOF)

How-To:
Save this two macros (the CODE below) as text file with jsee extension in the EmEditor folder.
Then execute them one time from menu Macros > Select…
Next you can assign an shortcut to them via Help > Keyboard Map… ( search for “jump”, right click the macro, choose “Properties”, assign an Shortcut Key)

CODE:
JumpToNextBlankLineAbove.jsee (Ctrl+Shift+Arrow-Up)
document.selection.Find("(^$|^\\s*?$)",eeFindPrevious | eeFindReplaceRegExp);
JumpToNextBlankLineBelow.jsee (Ctrl+Shift+Arrow-Down)
document.selection.Find("(^$|^\\s*?$)",eeFindNext | eeFindReplaceRegExp);

..

That macro will regex search and goto lines which are empty or contain whitespace chars only (non-greedy), whatever cones first.

Extra Tip:
If you enable “Selection Mode” (read help about “F8” key) afore to executing this macro,
you can use this to select paragraph-wise. (press ESC key to cancel selection mode after you’re done)

HTH?

]]>