Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Feature request: case sensitive search/replace history

    General Discussion
    4
    4
    1766
    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.
    • Szász-Fábián József
      Szász-Fábián József last edited by

      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 Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @Szász-Fábián József last edited by

        @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
        • chcg
          chcg last edited by

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

          Scott Sumner 1 Reply Last reply Reply Quote 0
          • Scott Sumner
            Scott Sumner @chcg last edited by

            @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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors