Community
    • Login

    Is there way to only copy&replace contents next to the timeline on the left?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 5 Posters 2.1k Views 1 Watching
    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.
    • 1NGAN1 Offline
      1NGAN
      last edited by 1NGAN

      ![alt text](12cdf3e0-09b2-4d8e-b52f-dcfdc71c0b39-image.png image url)
      I’d like to ignore? timeline on the left and only copy the contents on the right.
      and replace the right side with translated contents that I have copied.
      of course I can copy&paste over and over but that would take so long…
      copy the whole thing and runing the translator with it made timeline broken.

      Mark OlsonM 1 Reply Last reply Reply Quote -1
      • Mark OlsonM Offline
        Mark Olson @1NGAN
        last edited by Mark Olson

        @1NGAN
        In the future please paste in raw text surrounded in three rows of triple backticks like this
        ```
        raw text here
        ```
        and it will look like

        raw text here
        

        In any case, what you want is to use the find/replace form, turn regular expressions on, find (?-s)^[\d\d:\d\d\.\d\d](.*) and replace with \1. This will temporarily delete the timestamps, you can select the entire document, copy to clipboard, and then Ctrl+Z to undo the find/replace.

        Explanation: the regular expression looks for lines starting with (^) an open square bracket and two digits, then a colon, then two more digits, then a period, then two more digits [\d\d:\d\d\.\d\d], then captures everything after that on the same line (.*). The (?-s) at the beginning just ensures that (.*) only matches the rest of the line, not the rest of the file.

        Lycan ThropeL 1 Reply Last reply Reply Quote 3
        • Lycan ThropeL Offline
          Lycan Thrope @Mark Olson
          last edited by Lycan Thrope

          @Mark-Olson ,
          Are you sure he isn’t just asking how to do a column select/copy? Perhaps, to translate all lines at one time?
          The OP’s description and lack of proper formatting and presentation of example material is not very conducive to a real answer, if either of our scenarios is the one they are trying to describe.

          OP needs to first read the FAQs starting with this one:
          Formatting

          And this one:
          Search and Replace

          datatraveller1D 1 Reply Last reply Reply Quote 3
          • datatraveller1D Offline
            datatraveller1 @Lycan Thrope
            last edited by

            @Lycan-Thrope Yes, I think he only wants Edit - Column Mode... which leads to the “Column Mode Tip”
            Please use "ALT+Mouse Selection" or "Alt+Shift+Arrow key" to switch to column mode.

            1NGAN1 1 Reply Last reply Reply Quote 4
            • 1NGAN1 Offline
              1NGAN @datatraveller1
              last edited by

              @datatraveller1 This is the feature that I wanted to find!!!
              thank you and others tried to help me.

              1 Reply Last reply Reply Quote 0
              • Alan KilbornA Offline
                Alan Kilborn
                last edited by

                Actually if you use N++ 8.5 or later, going where @datatraveller1 suggests will show you this:

                72b2fe19-9393-438d-af92-8cb376c01f37-image.png

                Number 3 is a new command to Notepad++ 8.5; see the Edit menu:

                b9bcc9f2-067e-44b2-8606-9c23dc137cac-image.png

                Personal note: I actually added this to N++ 8.5 – my FIRST contribution to Notepad++ code! :-)

                1 Reply Last reply Reply Quote 8

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors