Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Search fails

    Help wanted · · · – – – · · ·
    3
    12
    166
    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.
    • hatsa tsaa
      hatsa tsaa last edited by

      Pasting from clipboard when searhing, the search fails, but if I write the same search item, the search succeed. Why?

      Thanks in advance!

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @hatsa tsaa last edited by

        @hatsa-tsaa

        You would have to give an example (specific text), but in general not everything pastes well into the Find what box.

        For example, line-endings do not paste into this box, so if you have multiline data in the clipboard when you paste you will only get the first line.

        This may not be what is going wrong for you, but unless you provide more information no one can help further.

        1 Reply Last reply Reply Quote 2
        • hatsa tsaa
          hatsa tsaa last edited by

          I have a big music database file in txt mode. When I see artist’s name in internet and copy the name to clipboard to search if I already have that artist in my database, the search could occasionally fail, but if I write it, the search could probably succeed.

          Alan Kilborn 1 Reply Last reply Reply Quote 0
          • Alan Kilborn
            Alan Kilborn @hatsa tsaa last edited by

            @hatsa-tsaa

            music database

            That really adds no helpful information for us to provide any more help to you. We are open to helping if something more is provided.

            1 Reply Last reply Reply Quote 0
            • guy038
              guy038 last edited by guy038

              Hello, @hatsa-tsaa, @alan-kilborn and All,

              I agree, Alan, that if you select a multi-lines text, then copy it in the clipboard, with Ctrl + C and finally paste it, with Ctrl + V, in the Find what: box, only the first line of your text is written, in that input box !

              However ( and luckily ! ), if you just select a multi-lines text, then open the Find dialog, it does write this multi-lines text, inside the Find what: box, assuming that :

              • The total amount of text is between 1 and 2046 chars long

              • The option Settings > Preferences... > MISC > Don't fill find field dialog with selected word is not ticked


              So, @hatsa-tsaa, you may use this method :

              • First paste the artist’s name in your current database file, opened in Notepad++

              • Select, again, this artist’s name

              • Hit the Ctrl + F shortcut, whatever the state of the Find dialog ( open or closed )

              • Finally, click on the Find Next button

              => You should get matches, if your database contains this artist’s name, of course !

              Best Regards,

              guy038

              Alan Kilborn hatsa tsaa 2 Replies Last reply Reply Quote 3
              • Alan Kilborn
                Alan Kilborn @guy038 last edited by

                @guy038

                I was just giving a “for example” when I cited multiple line data. We don’t know that this is the case for the OP.

                1 Reply Last reply Reply Quote 2
                • hatsa tsaa
                  hatsa tsaa @guy038 last edited by

                  @guy038 said in Search fails:

                  guy038

                  Thanks guy038!

                  Your method doesn’t work either.
                  I don’t mean multiline text.
                  Is there also some kind of html or css code in clipboard, when copying from web site and pasting it to input box? Because, when I write the search term, I get matches.

                  Thanks!

                  hatsa tsaa 1 Reply Last reply Reply Quote 0
                  • hatsa tsaa
                    hatsa tsaa @hatsa tsaa last edited by

                    There is html code. When I copied phrase “Jimi Hendrix” from a web page and then I pasted it with Paste HTML content to Notepad++, I got this:

                    Version:0.9
                    StartHTML:00000173
                    EndHTML:00000329
                    StartFragment:00000207
                    EndFragment:00000293
                    SourceURL:moz-extension://13d61562-b74f-4d46-9793-e72234da2bf4/reader.html
                    <html><body>
                    <!–StartFragment–><h1 class=“post-title”>Jimi Hendrix </h1><!–EndFragment–>
                    </body>
                    </html>

                    That’s why I didn’t get matches.

                    1 Reply Last reply Reply Quote 2
                    • guy038
                      guy038 last edited by guy038

                      Hello, @hatsa-tsaa, @alan_kilborn and All,

                      Of course, from your example, below, copied in a new N++ tab :

                      Version:0.9
                      StartHTML:00000173
                      EndHTML:00000329
                      StartFragment:00000207
                      EndFragment:00000293
                      SourceURL:moz-extension://13d61562-b74f-4d46-9793-e72234da2bf4/reader.html
                      <html><body>
                      <!–StartFragment–><h1 class="post-title">Jimi Hendrix </h1><!–EndFragment–>
                      </body>
                      </html>
                      

                      This following regex S/R :

                      SEARCH (?s-i)Version:.+"post-title">(.+?)\h*<.+</html>

                      REPLACE \1\r\n

                      would change all this multi-lines text into the artist’s name, only :

                      Jimi Hendrix
                      

                      However, does your browser have a plain-text reading mode that displays plain text ? I suppose that selecting the artist’s name would give you just the string Jimi Hendrix !

                      Best Regards,

                      guy038

                      1 Reply Last reply Reply Quote 1
                      • hatsa tsaa
                        hatsa tsaa last edited by

                        @guy038 said in Search fails:

                        plain-text reading

                        Thanks guy038!

                        I use mainly Firefox. Probably there’s addon to do the trick.

                        1 Reply Last reply Reply Quote 1
                        • guy038
                          guy038 last edited by guy038

                          Hello, @hatsa-tsaa, @alan_kilborn and All,

                          I always use an old Firefox version for Win XP : Firefox ESR v52.9.0 ( 32 bits )

                          Here is main page of the Le Monde newspaper, in normal mode :

                          061a9383-c42b-4536-af9c-37d17c5031b6-Ess_Normal.PNG

                          And here is the same page in Plain-text reading mode :

                          bb840515-a680-4f0b-baa7-ca10a68817a0-Ess_Lecture.PNG


                          The tooltip “Passer en mode lecture” means "Switch to reading mode" and “Quitter le mode lecture” means "Exit Reading mode" !

                          Best Regards,

                          guy038

                          1 Reply Last reply Reply Quote 0
                          • hatsa tsaa
                            hatsa tsaa last edited by

                            Thanks guy038 for the tip!

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post
                            Copyright © 2014 NodeBB Forums | Contributors