Author Topic: Traverse to the end of a line repeatedly for a group of lines  (Read 2478 times)

Ken_M

  • Junior Community Member
  • Posts: 3
  • Hero Points: 0
Have you ever needed to traverse to the end of a line repeatedly for more than a single line?

Description:  This macro moves the cursor to the end of the line and, if already at the end, move it to the end of the next line.

Typically, you would map the "end" key to this macro and then you can repeatedly, hit the "end" key.

Graeme

  • Senior Community Member
  • Posts: 2793
  • Hero Points: 347
Re: Traverse to the end of a line repeatedly for a group of lines
« Reply #1 on: March 03, 2022, 06:25:48 AM »
Looks like a good macro.
I'm not sure about this but if you add VSARG2_MULTI_CURSOR to the name-info list it might work for multiple cursors - dunno if that's useful though.


Dennis

  • Senior Community Member
  • Posts: 3955
  • Hero Points: 515
Re: Traverse to the end of a line repeatedly for a group of lines
« Reply #2 on: March 07, 2022, 09:21:35 PM »
I like this concept.  Would you have any objection to me adding a similar command (end_line_then_down) to the next release of SlickEdit?  I would also want to add a "begin_line_then_up" command for symmetry (which would position on the first non-blank character).

Hehe, this command should really be named east-bound-and-down.

kniped1

  • Community Member
  • Posts: 19
  • Hero Points: 1
Re: Traverse to the end of a line repeatedly for a group of lines
« Reply #3 on: April 18, 2022, 08:29:52 PM »
Good macro. Dennis, for me a matching prev_end_line makes more sense so can I "scroll" up and down at the end of the lines. I added the matching macro in the attached updated file.