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.6k Views 4 Watching
    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.
    • Александр СухоруковА Offline
      Александр Сухоруков
      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 FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        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
        • Александр СухоруковА Offline
          Александр Сухоруков
          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
          • YaronY Offline
            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 SumnerS Offline
              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
              • donhoD Offline
                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

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors