Need a ParaEnd "command"

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
roweber@ieee.org
Posts: 2
Joined: Fri Jan 20, 2012 5:20 pm
Location: Dallas, Texas, USA

Need a ParaEnd "command"

Post by roweber@ieee.org »

After using TextPad for upwards of ten years I have finally found a missing feature which seems like a plausible request (i.e., not too big a difference from true-blueTextPad).

I have found ways to move the cursor to the beginning of this paragraph and to the beginning of the next paragraph. What I need is a "move cursor to end of this paragraph".

Representing this as a "ParaEnd" command in the "Cursor" category in the Keyboard preferences would be sufficient for my needs. I can then make any reasonable key shortcut get me to TextPad nirvana.

All the best,

.Ralph
ak47wong
Posts: 703
Joined: Tue Aug 12, 2003 9:37 am
Location: Sydney, Australia

Post by ak47wong »

It won't be perfect, but you might be able to record a macro to simulate an end of paragraph command.

If there is always one line between paragraphs, your macro could be:

1. ParaDown
2. CharLeft
3. CharLeft

or

1. ParaDown
2. WordLeftEnd
3. WordLeftEnd

If there are a variable number of lines between paragraphs, you can try:

1. ParaDown
2. Search for regular expression "." in Up direction
3. CharRight
roweber@ieee.org
Posts: 2
Joined: Fri Jan 20, 2012 5:20 pm
Location: Dallas, Texas, USA

Oh! If life were only that simple!

Post by roweber@ieee.org »

Sadly, I need something that will find the end of a paragraph when the amount of white space after the paragraph (and before the next) is variable.

Truth be told, I want to make a macro that, starting from any point in an existing paragraph, will add two lines of white space after the paragraph and then position the cursor at the beginning of the first of those lines. To keep things "interesting" I want the macro to work recursively so that any number of white space lines can be added after a paragraph in this manner.

Thanks for your thoughts,

.Ralph
Dan_Sitar

Post by Dan_Sitar »

Hi Ralph,
Just in case you or somebody else did not find the solution by now, here is the simplest one:

[X] Regular expression

Code: Select all

Findˌˌˌ: ^$
Replace: \n\n
Hit the ‘Left Arrow’ key one time.
That's all.

^$ ˌ ˌ ˌ is the next empty line.
\n\n ˌ ˌ create two empty lines that remain highlited.
The ‘Left Arrow’ key always brings the cursor to the beginning of the Highlited Text, as the ‘Right Arrow’ key brings it to the end.

BTW, you can add whatever you want between and/or after those two \n\n, e.g., more empty lines \n, tabulations \t with text…, the instructions of an older macro, etc.


    ©Dan_Sitar  https://facebook.com/Dan.Bourdon
&♭¾▐│:Ξ ʓ. ♪♫║: ♪‿♬. |♪♬♫‿ |,♪ ♪♬| ,♬♪‿♬|. ♪‿|♪,,♪♫:║. ♪♫…
           God bless you and Mother Nature‼  Ëœ ̃≈ {(ړײ )}〰͠﹏ ⌢∘⌢
User avatar
jeffy
Posts: 323
Joined: Mon Mar 03, 2003 9:04 am
Location: Philadelphia

Post by jeffy »

ParaEnd and ParaStart, as well as ParaStartExtend and ParaEndExtend would be wonderful additions.
Post Reply