• Login
Community
  • Login

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

Scheduled Pinned Locked Moved General Discussion
6 Posts 5 Posters 4.0k 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.
  • А
    Александр Сухоруков
    last edited by May 23, 2018, 10:05 AM

    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 ?

    C 1 Reply Last reply May 23, 2018, 10:51 AM Reply Quote 0
    • C
      Claudia Frank @Александр Сухоруков
      last edited by Claudia Frank May 23, 2018, 10:52 AM May 23, 2018, 10:51 AM

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

      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 May 24, 2018, 2:57 PM

        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
        • Y
          Yaron
          last edited by May 26, 2018, 12:34 PM

          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
          • S
            Scott Sumner
            last edited by May 29, 2018, 2:27 PM

            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
            • D
              donho
              last edited by Jan 7, 2020, 10:26 AM

              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
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors