Community
    • 登入

    Feature request: case sensitive search/replace history

    已排程 已置頂 已鎖定 已移動 General Discussion
    4 貼文 4 Posters 2.1k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Szász-Fábián JózsefS
      Szász-Fábián József
      最後由 編輯

      I often use the search/replace dialog with case-sensitive replaces of eg. ‘Pages’ -> ‘Products’, then ‘pages’ -> ‘products’. This replacement repeats often in other files.
      Since NPP treats the search and replace fields history as case-insensitive, in the history only the last term appears which is either ‘Pages’ or ‘pages’. It would be extremely useful to have both ‘Pages’ and ‘pages’ in history.
      Thank you

      Claudia FrankC 1 條回覆 最後回覆 回覆 引用 0
      • Claudia FrankC
        Claudia Frank @Szász-Fábián József
        最後由 編輯

        @Szász-Fábián-József

        please add a feature request here and double check if it hasn’t already added.

        Cheers
        Claudia

        1 條回覆 最後回覆 回覆 引用 0
        • chcgC
          chcg
          最後由 編輯

          My guess would be that your two step approach could also be done in one step with regular expressions.

          Scott SumnerS 1 條回覆 最後回覆 回覆 引用 0
          • Scott SumnerS
            Scott Sumner @chcg
            最後由 編輯

            @chcg

            That wasn’t what the OP was asking about, but you are right about the regex search and here’s how it could be done:

            Find what: ([pP])ages
            Replace with: \1roducts
            Search mode: Regular expression

            1 條回覆 最後回覆 回覆 引用 1
            • 第一個貼文
              最後的貼文
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors