#1245 New file from command line ignores format setting

1.x
closed
nobody
None
5
2014-08-16
2008-02-25
Anonymous
No

I have the new files format setting, setup to create files in Unix format. If I open a new file from the icon bar 'new file icon', this has the desired effect: a new file in Unix format.

If I open a non existing file from a command line (cygwin in my case), NPP offers to create the file as new. It does this, but always seems to make it in Dos/Windows format.

Work around is to manually switch, but I often forget this and then get wrath from my Config Manager about submitting DOS format files :-(

Discussion

  • Logged In: NO

    When you open a notepad++ window (and you didn't have any opened files previously), notepad++ automatically creates a new empty document. This empty document also doesn't inherit the "new file settings".

     
  • Kaishain
    Kaishain
    2011-11-18

    I think my issue is similar to this:

    I'm running Notepad++ v5.9.5 on Windows Vista.

    My typical workflow for creating new documents is:
    * Use Windows Explorer to create an empty text file in the directory where I want it.
    * Name the file to whatever I need, whether it be plain text, html, javascript, etc.
    * I then open this zero-byte file in Notepad++, which I have configured to default to UNIX/ANSI, but the EMPTY file, which contains NO DATA which could be analyzed and interpreted as DOS or UNIX, always defaults to Dos/Windows, and then I have to go about manually converting the file after I realize what's happened.

     
  • Don HO
    Don HO
    2014-08-16

    • status: open --> closed
    • Group: --> 1.x
     
  • Don HO
    Don HO
    2014-08-16

    outdated.