Menu

#5 Odd behavior in "Relative Line Numbers" feature

1.0
closed
None
2025-07-27
2025-07-23
No

When "Relative Line Numbers" is enabled. Line # labels are out of order and change as the current line is selected.

2 Attachments

Related

Tickets: #5

Discussion

  • Andreas Heim

    Andreas Heim - 2025-07-26

    This behavior is intentional. I will explain it below.

    The red line number in your screenshots shows the actual line number of the document's current line. Since the "Relative Line Numbers" feature can be combined with the plugin's "Line Numbers Start At" feature, the red line number is also affected by this setting.

    The other line numbers are relative to the document's current line. That means they indicate the distance of a specific line from the current line.

     
    • Stefanya Poesy

      Stefanya Poesy - 2025-07-26

      Hello Andreas:

      Thank you for the clarification, I understand now what you implemented.

      Can I now put in a request then for CustomLineNumbers to support
      highlighting the current line number in similar fashion, while retaining
      the more traditional incremental line numbers?

      Thanks,

      Stefanya Poésy (She/Her)
      stefanyalpoesy@gmail.com

      On Fri, Jul 25, 2025 at 10:16 PM Andreas Heim dinkumoil@users.sourceforge.net wrote:

      This behavior is intentional. I will explain it below.

      The red line number in your screenshots shows the actual line number of
      the document's current line. Since the "Relative Line Numbers" feature can
      be combined with the plugin's "Line Numbers Start At" feature, the red line
      number is also affected by this setting.

      The other line numbers are relative to the document's current line. That
      means they indicate the distance of a specific line from the current line.


      [tickets:#5] https://sourceforge.net/p/customlinenumbers/tickets/5/ Odd
      behavior in "Relative Line Numbers" feature

      Status: open
      Milestone: 1.0
      Created: Wed Jul 23, 2025 01:46 PM UTC by Stefanya Poesy
      Last Updated: Wed Jul 23, 2025 01:46 PM UTC
      Owner: Andreas Heim
      Attachments:

      When "Relative Line Numbers" is enabled. Line # labels are out of order
      and change as the current line is selected.


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/customlinenumbers/tickets/5/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Tickets: #5

      • Andreas Heim

        Andreas Heim - 2025-07-27

        Can I now put in a request then for CustomLineNumbers to support
        highlighting the current line number in similar fashion, while retaining
        the more traditional incremental line numbers?

        Well, of course you could, but unfortunately I have to tell you that I would not implement such a feature request. Notepad++ is able to highlight the text of the current line, have a look at the "Preferences" dialog in the attachments. So, I think what you requested is not worth the effort as it is doubling an already existing feature.

         
  • Andreas Heim

    Andreas Heim - 2025-07-26
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB