Community
    • 登入

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

    已排程 已置頂 已鎖定 已移動 General Discussion
    6 貼文 5 Posters 4.2k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Александр СухоруковА
      Александр Сухоруков
      最後由 編輯

      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 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Александр Сухоруков
        最後由 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 條回覆 最後回覆 回覆 引用 1
        • Александр СухоруковА
          Александр Сухоруков
          最後由 編輯

          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 條回覆 最後回覆 回覆 引用 0
          • YaronY
            Yaron
            最後由 編輯

            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 條回覆 最後回覆 回覆 引用 0
            • Scott SumnerS
              Scott Sumner
              最後由 編輯

              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 條回覆 最後回覆 回覆 引用 0
              • donhoD
                donho
                最後由 編輯

                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 條回覆 最後回覆 回覆 引用 3
                • 第一個貼文
                  最後的貼文
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors