Author Topic: Traverse to the end of a line repeatedly for a group of lines  (Read 1232 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: 2745
  • Hero Points: 340
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

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3723
  • Hero Points: 489
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.