• Login
Community
  • Login

Feature request: case sensitive search/replace history

Scheduled Pinned Locked Moved General Discussion
4 Posts 4 Posters 2.1k 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.
  • S
    Szász-Fábián József
    last edited by Feb 27, 2017, 5:41 PM

    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

    C 1 Reply Last reply Feb 28, 2017, 2:13 AM Reply Quote 0
    • C
      Claudia Frank @Szász-Fábián József
      last edited by Feb 28, 2017, 2:13 AM

      @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 Reply Last reply Reply Quote 0
      • C
        chcg
        last edited by Mar 1, 2017, 6:47 PM

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

        S 1 Reply Last reply Mar 1, 2017, 7:58 PM Reply Quote 0
        • S
          Scott Sumner @chcg
          last edited by Mar 1, 2017, 7:58 PM

          @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 Reply Last reply Reply Quote 1
          2 out of 4
          • First post
            2/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors