Menu

Set Windows Fomat for conf Files as default

2008-03-18
2012-11-13
  • Nobody/Anonymous

    Hello,

    Currently when i open certain configuration files it opens with Unix Format by default. This causes some issues with copy/paste due to Newline Characters. Is there a way to set up Windows format as my default format to open files? Please advise.

    Thank you,

     
    • Nobody/Anonymous

      Would also be nice if always all convert functions for linebreaks in the Format menu were enabled. If a file is detected as having Windows linebreaks (CRLF) but contains a few others (only CR or only LF), it takes two steps to correct that. First you have to convert to another OS, then convert it all back.

       
      • Fool4UAnyway

        Fool4UAnyway - 2008-06-02

        I support this request. I have a couple of SQL Server output files containing both CRLF's and (only) LF's. Next to currently having to perform two operations, this takes an awful lot of time, because those output files are BIG.

        I haven't found a way (yet) to convert those LF's to CRLF's immediately and only once per line using the available find/replace dialogs and options. Forward replacing \n by \r\n will result in the first LF being replaced by CRLF, then CRCRLF etc.. I then chose the other direction, but still had to replace all CRCRLF's by CRLF's again. So this took me two nasty operations as well.

        So I would very much welcome the ability to always be possible to choose either format directly.

         
        • Fool4UAnyway

          Fool4UAnyway - 2008-07-07

          Well, here's another problem I think is related to this, and this one is really annoying.

          I have a SQL Server output file, containing both LF only and CRLF linebreaks.
          It has a lot of trash in it, I want to delete prior to having to perform these two actions to get only the Windows CRLF linebreaks.

          But when I select the repeating block of a couple of lines containing only an LF linebreak and try to replace them by nothing, the Ctrl+R advanced Find/Replace dialog can't find them!!!

          At least, I would expect that what I directly select and is copied into the Find field of the Find/Replace dialog, can be found!

          This problem would probably be avoided if I could directly select to convert all linebreak into the Windows CRLF format. I guess if I select the lines then, they will be found.

          The Ctrl+F/H Find/Replace dialog does find the LF linebreaks, but it doesn't copy the selection completely, but only 64 characters. I can add more text, but not the other linebreaks... So I can't use this one either.