• Login
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 743 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.
  • 1
    1NGAN
    last edited by 1NGAN Mar 14, 2023, 6:19 PM Mar 14, 2023, 6:17 PM

    ![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.

    M 1 Reply Last reply Mar 15, 2023, 6:14 AM Reply Quote -1
    • M
      Mark Olson @1NGAN
      last edited by Mark Olson Mar 15, 2023, 6:23 AM Mar 15, 2023, 6:14 AM

      @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.

      L 1 Reply Last reply Mar 15, 2023, 6:49 AM Reply Quote 3
      • L
        Lycan Thrope @Mark Olson
        last edited by Lycan Thrope Mar 15, 2023, 6:50 AM Mar 15, 2023, 6:49 AM

        @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

        D 1 Reply Last reply Mar 15, 2023, 8:47 AM Reply Quote 3
        • D
          datatraveller1 @Lycan Thrope
          last edited by Mar 15, 2023, 8:47 AM

          @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.

          1 1 Reply Last reply Mar 15, 2023, 6:18 PM Reply Quote 4
          • 1
            1NGAN @datatraveller1
            last edited by Mar 15, 2023, 6:18 PM

            @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
            • A
              Alan Kilborn
              last edited by Mar 15, 2023, 6:29 PM

              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
              4 out of 6
              • First post
                4/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors