• Login
Community
  • Login

Trim Leading Space Doesnt Work

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 3 Posters 1.6k 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.
  • A
    Alejandro Alvarez
    last edited by Alejandro Alvarez Dec 4, 2022, 4:31 PM Dec 4, 2022, 4:30 PM

    Hi,
    I’m trying to use Edit -> Blank Operations -> Trim Leading Space.
    Like syhown in this video https://www.youtube.com/watch?v=TgySl7VLCUQ
    But for some reason it doesnt do anything for me… I click it and nothing happens, Tried using it with the text selected, With it not selected but still doesnt do anything, I’m using the latest version.

    Thanks in advance!

    A 1 Reply Last reply Dec 4, 2022, 4:33 PM Reply Quote 0
    • A
      Alan Kilborn @Alejandro Alvarez
      last edited by Alan Kilborn Dec 4, 2022, 4:38 PM Dec 4, 2022, 4:33 PM

      @Alejandro-Alvarez said in Trim Leading Space Doesnt Work:

      I’m using the latest version.

      I guess if someone reads this 3 years from now, looking for a solution to a similar problem, saying it that way is really nonsensical; it really would be best to say v8.4.7 (assuming that is what you mean).


      trying to use Edit -> Blank Operations -> Trim Leading Space
      Tried using it with the text selected, With it not selected but still doesnt do anything

      Trim Leading Space is currently a file-wide operation, meaning that it won’t act on the current selection if there is one.

      It works fine for me in 8.4.7, so maybe provide more detail on your exact data (reference Formatting Forum Posts), and exactly what you are doing.

      A A 2 Replies Last reply Dec 4, 2022, 4:45 PM Reply Quote 0
      • A
        Alejandro Alvarez @Alan Kilborn
        last edited by Dec 4, 2022, 4:45 PM

        @Alan-Kilborn
        I have a long text file that has many leading spaces like this:

        4
             Inf 795
             Sup 793
               Izq 1923
                Der 1923
        5
                 Inf 799
                 Sup 800
                  Izq 1920
                   Der 1920
        
          6.    
                   Inf 800
                    Sup 800
                      Inz 2010
                       Der 2007
        
        7.        
                       Inf 797
                        Sup  800
                         Izq 2090
                          Der 2093
        
        

        I want to get rid of the Leading Spaces

        A 1 Reply Last reply Dec 4, 2022, 5:51 PM Reply Quote 0
        • A
          Alan Kilborn @Alejandro Alvarez
          last edited by Alan Kilborn Dec 4, 2022, 5:53 PM Dec 4, 2022, 5:51 PM

          @Alejandro-Alvarez

          I took:

          c71638fc-5c63-4ca6-b82c-6db8fefb071b-image.png

          And did:

          84bb0ece-d105-467a-9b52-62b543275f6c-image.png

          And obtained:

          86807989-8ebf-4042-b3df-c81ea3396d7b-image.png


          But you can also do it like this:

          8d1e6439-0481-40b4-a671-9d5e26888521-image.png

          To obtain:

          5ae02b64-3ac2-4ebe-9eda-499434226bb1-image.png

          1 Reply Last reply Reply Quote 4
          • A
            Alan Kilborn @Alan Kilborn
            last edited by Dec 4, 2022, 9:07 PM

            @Alan-Kilborn said in Trim Leading Space Doesnt Work:

            Trim Leading Space is currently a file-wide operation, meaning that it won’t act on the current selection if there is one.

            I created an ISSUE so that this gets the attention of the developers. Hopefully they will change the software so that a selection made before the command execution will cause the command to act only upon selected lines.

            A 1 Reply Last reply Dec 5, 2022, 12:57 AM Reply Quote 2
            • A
              Alejandro Alvarez @Alan Kilborn
              last edited by Dec 5, 2022, 12:57 AM

              @Alan-Kilborn
              The regex method worked but the trim leading space option doesn’t, with or without selection… any plugin needs to be installed for it to work?

              P 1 Reply Last reply Dec 5, 2022, 1:37 AM Reply Quote 0
              • P
                PeterJones @Alejandro Alvarez
                last edited by Dec 5, 2022, 1:37 AM

                @Alejandro-Alvarez said in Trim Leading Space Doesnt Work:

                @Alan-Kilborn
                The regex method worked but the trim leading space option doesn’t, with or without selection… any plugin needs to be installed for it to work?

                No, no plugin. It works just fine natively in Notepad++.

                Some scatter-debug suggestions:

                • Can you share your ?-menu Debug Info?
                • Also, can you share a screenshot when the View > Show Symbol > Show all characters… (maybe it’s not actual spaces at the beginning, though then the regex wouldn’t work).
                • What are your Settings > Preferences > Editing > Line Wrap set at? Maybe you just have wrapped lines, so what you see as the beginning of the line is really the middle of a wrapped line.
                • Another idea: try downloading a portable copy of Notepad++ and seeing if that works better for you than your installed Notepad++. If so, maybe a plugin has messed up Notepad++, or your installation is corrupted somehow.
                1 Reply Last reply Reply Quote 2
                1 out of 7
                • First post
                  1/7
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors