Community

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

    How can i prevent NPP to add any text by itself in the search string ?

    General Discussion
    5
    6
    2274
    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.
    • Александр Сухоруков
      Александр Сухоруков last edited by

      hi all. While trying to use find function there is a text added at the search string. This text is from the cursor area, whenever this text was selected it always at the search string if there is a text near the cursor. How can i prevent NPP to add any text by itself in the search string ?

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Александр Сухоруков last edited by Claudia Frank

        @Александр-Сухоруков

        How can i prevent NPP to add any text by itself in the search string ?

        Natively, afaik, you can’t - at least at the moment.
        But may I ask you why this is an issue at all?
        Because when the dialog opens, the find part is highlighted/selected, which means
        as soon as you start typing it overwrites the text.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 1
        • Александр Сухоруков
          Александр Сухоруков last edited by

          Yes, you right. Thank you. Don’t know why this window confused me, selected text the reason inserting text should not be a trouble.

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

            Hello Claudia and @Александр-Сухоруков,

            But may I ask you why this is an issue at all?

            The user may often want to use the last search-term and not the current word.
            Personally, I find the Incremental-Bar behavior more convenient.

            A preference for this can be helpful IMO.

            Best regards.

            1 Reply Last reply Reply Quote 0
            • Scott Sumner
              Scott Sumner last edited by

              I can think of a related thing to this that annoys me. I put the caret where I want my (downward) search to start, then I press ctrl+f. Then I enter my search string and invoke Find Next. Well, I notice my search begins after the word where I wanted it to. Maybe this helps show it:

              Imgur

              In this search, say I wanted to find an “a” in the first word…the search finds the first “a” in the second word. I know why this is, I just find it annoying sometimes.

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

                Done in commit Make filling find field of Find dialog with selected word(s) optional:
                https://github.com/notepad-plus-plus/notepad-plus-plus/commit/7a1096de5b3618bc3e6611e6c25caac952d41ae2

                It will come with v7.8.3

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