• Login
Community
  • Login

Double click not selecting all occurrences of a word

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
13 Posts 2 Posters 3.8k 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.
  • P
    Peter Finch
    last edited by Peter Finch Jul 27, 2022, 9:47 PM Jul 27, 2022, 9:46 PM

    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

    T 2 Replies Last reply Jul 27, 2022, 9:58 PM Reply Quote 0
    • T
      Terry R @Peter Finch
      last edited by Terry R Jul 27, 2022, 9:58 PM Jul 27, 2022, 9:58 PM

      @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

      P 1 Reply Last reply Jul 27, 2022, 9:59 PM Reply Quote 0
      • P
        Peter Finch @Terry R
        last edited by Jul 27, 2022, 9:59 PM

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

        T 1 Reply Last reply Jul 27, 2022, 10:03 PM Reply Quote 0
        • T
          Terry R @Peter Finch
          last edited by Jul 27, 2022, 10:03 PM

          @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

          P 1 Reply Last reply Jul 27, 2022, 10:19 PM Reply Quote 0
          • P
            Peter Finch @Terry R
            last edited by Jul 27, 2022, 10:19 PM

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

            T 1 Reply Last reply Jul 27, 2022, 10:22 PM Reply Quote 0
            • T
              Terry R @Peter Finch
              last edited by Jul 27, 2022, 10:22 PM

              @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

              P 1 Reply Last reply Jul 27, 2022, 10:29 PM Reply Quote 0
              • T
                Terry R @Peter Finch
                last edited by Jul 27, 2022, 10:29 PM

                @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

                P 1 Reply Last reply Jul 27, 2022, 10:30 PM Reply Quote 1
                • P
                  Peter Finch @Terry R
                  last edited by Jul 27, 2022, 10:29 PM

                  @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
                  • P
                    Peter Finch @Terry R
                    last edited by Jul 27, 2022, 10:30 PM

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

                    T 1 Reply Last reply Jul 27, 2022, 10:37 PM Reply Quote 0
                    • T
                      Terry R @Peter Finch
                      last edited by Jul 27, 2022, 10:37 PM

                      @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

                      P 1 Reply Last reply Jul 27, 2022, 10:42 PM Reply Quote 2
                      • P
                        Peter Finch @Terry R
                        last edited by Jul 27, 2022, 10:42 PM

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

                        P 1 Reply Last reply Jul 27, 2022, 10:50 PM Reply Quote 1
                        • P
                          Peter Finch @Peter Finch
                          last edited by Jul 27, 2022, 10:50 PM

                          @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

                          T 1 Reply Last reply Jul 27, 2022, 11:11 PM Reply Quote 0
                          • T
                            Terry R @Peter Finch
                            last edited by Jul 27, 2022, 11:11 PM

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