Community
    • Login

    Double click not selecting all occurrences of a word

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    13 Posts 2 Posters 2.3k 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.
    • Peter FinchP
      Peter Finch
      last edited by Peter Finch

      Hi there
      I’m struggling to find an answer for this weird issue

      when I double click a word in a log file it normally highlights all occurrences of that word in green.

      sometimes this does not work and I cannot find out why. I have a logfile that does not highlight green when I double click a word, but another log file does, in the same editor session.

      ‘smart highlighting’ is enabled

      This is where is works:
      73c2fc0b-d0fe-4131-8456-c71d7828d5cd-image.png
      This is where it doesn’t
      4680eb9f-cf79-4d1a-8b6d-52decac59fc5-image.png

      both are log files, both generated by the same program, both opened in the same editor at the same time.
      version is 8.4.4
      can someone please help explain this?
      many thanks
      Pete

      Terry RT 2 Replies Last reply Reply Quote 0
      • Terry RT
        Terry R @Peter Finch
        last edited by Terry R

        @Peter-Finch said in Double click not selecting all occurrences of a word:

        can someone please help explain this?

        I can’t explain it, but obviously there must be a difference.

        Can you look at the bottom bar (it shows what type of file, the EOF type, UTF-8 or otherwise, file length) of the Notepad++ app for each of the 2 files. Is there any difference that Notepad++ states about each file?

        Terry

        Peter FinchP 1 Reply Last reply Reply Quote 0
        • Peter FinchP
          Peter Finch @Terry R
          last edited by

          @Terry-R
          Hi Terry
          No difference, both state UTF-8
          21c3d050-9556-41ff-b127-e0da98a7ef94-image.png

          Terry RT 1 Reply Last reply Reply Quote 0
          • Terry RT
            Terry R @Peter Finch
            last edited by

            @Peter-Finch said in Double click not selecting all occurrences of a word:

            No difference, both state UTF-8

            You say both files are opened in the 1 session. Are they in different views, as the smart highlighting has a 2nd tick box which is “highlight another view”.

            Terry

            Peter FinchP 1 Reply Last reply Reply Quote 0
            • Peter FinchP
              Peter Finch @Terry R
              last edited by

              @Terry-R
              Hi again
              its exactly the same in both sessions
              f83fdf80-56e2-4931-bf23-daa71f9e198b-image.png

              Terry RT 1 Reply Last reply Reply Quote 0
              • Terry RT
                Terry R @Peter Finch
                last edited by

                @Peter-Finch said in Double click not selecting all occurrences of a word:

                its exactly the same in both sessions

                What do you mean “both sessions”? Are you meaning you have a second instance of Notepad++ running or is it ONLY 1 Notepad++ running with 2 tabs or with 2 “views”? That’s because your setting states only smart highlight for the first view, 2nd view needs the 2nd tick box ticked.

                Terry

                Peter FinchP 1 Reply Last reply Reply Quote 0
                • Terry RT
                  Terry R @Peter Finch
                  last edited by

                  @Peter-Finch said in Double click not selecting all occurrences of a word:

                  both are log files, both generated by the same program, both opened in the same editor at the same time.

                  Is one of the log files above 200MB or there abouts. That’s because smart highlighting is disabled on large (200MB or over) files due to performance issues.
                  See the announcement of the version 8.2.2 RC4 here.

                  What I haven’t done is to determine that’s still in place. Maybe that’s something you can check, possibly by cutting a large logfile down to under 200MB and trying it.

                  Terry

                  Terry

                  Peter FinchP 1 Reply Last reply Reply Quote 1
                  • Peter FinchP
                    Peter Finch @Terry R
                    last edited by

                    @Terry-R
                    no, sorry, when i say session i mean open tab in the single notepad++ instance
                    d039de08-e3da-494a-bb5f-27886ee58921-image.png

                    1 Reply Last reply Reply Quote 0
                    • Peter FinchP
                      Peter Finch @Terry R
                      last edited by

                      @Terry-R
                      yes, the log file is 649MB
                      can this be enabled?

                      Terry RT 1 Reply Last reply Reply Quote 0
                      • Terry RT
                        Terry R @Peter Finch
                        last edited by

                        @Peter-Finch said in Double click not selecting all occurrences of a word:

                        can this be enabled?

                        Well, the developer has made this statement and I guess he’d need good reason to change it. Currently it would seem that the reason for not doing so out weighs that for enabling it.

                        I suggest have a good read through the announcements (maybe he’s already provided a work-around), and then if you don’t seem to get a satisfactory answer read the FAQ post feature request or bug fix. Those requests are made on a different forum, we’re only people who like to help others and we have no special ability to sway the outcome of these requests.

                        But I would strongly suggest there was a very good reason for disabling it, and I doubt there’s an overriding reason for re-enabling it.

                        Just split your logfile down to size so it works would be the likeliest answer to your issue.

                        Terry

                        Peter FinchP 1 Reply Last reply Reply Quote 2
                        • Peter FinchP
                          Peter Finch @Terry R
                          last edited by

                          @Terry-R
                          Thanks Terry
                          appreciate your time. I’ll split the logs and go from there
                          cheers
                          Pete

                          Peter FinchP 1 Reply Last reply Reply Quote 1
                          • Peter FinchP
                            Peter Finch @Peter Finch
                            last edited by

                            @Peter-Finch
                            downgrading to 8.2 fixed the issue and I can now open a 649MB log file and highlight text.
                            Looks like I’ll be not upgrading for a while.
                            I’ll raise a feature
                            cheers for your time
                            Pete

                            Terry RT 1 Reply Last reply Reply Quote 0
                            • Terry RT
                              Terry R @Peter Finch
                              last edited by

                              @Peter-Finch said in Double click not selecting all occurrences of a word:

                              downgrading to 8.2 fixed the issue and I can now open a 649MB log file and highlight text.

                              Glad you have a solution.

                              Might I suggest installing the “portable” version of 8.2 for this type of work, then you can also have the latest “installed” version for any other work if you require some of the latest features.

                              If you do so, then the installed version gets auto updated (if you have that setting), whereas the portable will never auto update.

                              I think some who operate this way also have the portable version colourized so status bar etc help them to realise which version they are running.

                              Terry

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