Community
    • Login

    Advance cursor past any sequence of non-blank characters and following blank, tab, or newlines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 47 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Russ JonesR
      Russ Jones
      last edited by

      Is there any way to advance the cursor to the next “word” where “word” means any non-blank characters delimited by spaces, tabs, or newlines? The definition of “word” in NotePad treats every punctuation character as a word, which I find mostly unhelpful. For example,
      142
      is treated as a word but
      -142
      is treated as two words.
      abc
      is treated as one word but
      “abc”
      is treated as 3 words. This definition of a word when using CTRL-rightarrow to advance through the text is no doubt useful in some contexts, but often inhibits defining effective keyboard macros to advance through the blank-separated fields of a table, because where the cursor stops depends on the field contents.

      I would like to be able to advance through the current sequence of nonblank characters and whatever whitespace follows, and land on the next non-blank character after that. Is this possible? Is there a keyboard shortcut that does that?

      FreeMeowF 1 Reply Last reply Reply Quote 0
      • FreeMeowF
        FreeMeow @Russ Jones
        last edited by

        @Russ-Jones found another post about the same subject that seem to have the answer
        https://community.notepad-plus-plus.org/topic/24248/ctrl-l-r-arrow-keys-distance-modification

        I tried what guy038 proposed and used the characters you gave: - and " ( how do you make the text have the nice red color people use when giving characters? ), and with your examples it does what you want.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors