Menu

PLEEEAAASE add support to search TAB, CR, LF

2007-02-10
2012-11-13
  • Nobody/Anonymous

    I love notepad++ but i cannot use it very practically. The one big feature that would be easy to add is multiline search/replace fields with support for special characters like TAB, CR, and LF. when i do a search and replace, most of the time my delimiters are one of those 3. and it is impractical to use regular expressions for them, and much less so in a single line. this one aspect is very important to a text editor. i think a search/replace like in MS word is ideal because it allows for literal copy of multiline text to search and replace, and really the ability to represent any characters simply even although it too is also single line.

    editpad is my choice right now for this feature exclusively. otherwise i would much rather use np++.

    thanks,
    Leon

     
    • Nobody/Anonymous

      thanks for the advice, but as you said, it can be streamlined to the point where it is actually useable, since there is a plugin for hex editor mode, integrating a simple x0Dx0A or something similar seems to be a pretty fast addition that would be more useful that even the UI workovers with docking that are happening now, and there is little room for it not to work from the getgo.

      i'd like to see what Don thinks of this, since the buck stops there :) Don?

      regards,
      Leon

       
      • pshute

        pshute - 2007-03-25

        Not sure what the hex editor has to do with it.  Are you suggesting a plugin to solve this problem?  I suppose it would work if it included its own regex code, rather that using the built-in one.

        I'm surprised that noone has tried it already - the tips in my FAQ will get you around most of these problems, but who can remember what works?  I wrote the FAQ, but I still find myself having to refer to it whenever I have to do something like that.

        There's obviously a demand for it - the question comes up every few days here.

         
    • pshute

      pshute - 2007-02-11

      Have you read the Newline Find and Replace FAQ at http://notepad-plus.sourceforge.net/uk/newlineFindReplace-HOWTO.php?  I agree that's it's much harder to do than it ought to be, but it can be done.  Not sure about tabs.

       
    • DV

      DV - 2007-02-13

      The searching engine comes from Scintilla (SciLexer.dll). Scintilla does not support searching for end of line, so Notepad++ does not also.

       
    • Nobody/Anonymous

      I can find tabs by copying the symbol and pasting in the Search or Replace box. Go to View > Show All Characters. I use this to replace spaces with tabs. Hope that helps.

       
    • pshute

      pshute - 2007-03-25

      The advanced search (control+R) allows you to insert a tab by pressing control+I.  I haven't used it, so I'm not sure whether it's allowed in regex mode, or whether it works in both search expressions and replace expressions.

       
MongoDB Logo MongoDB