adamyg/grief

End-of-line terminator conventions; cmd-line option.

Closed this issue · 1 comments

As we know there are several end-of-line termination conventions:

  1. LF in Unix/Linux
  2. CR in ...
  3. CR/LF in DOS etc.

Grief defaults to LF which it uses in new files. However it is smart enough to detect the other conventions in existing files and follows it thereafter in that file. However, the LF default is not convenient for those of us working in non-Unix environments. Manually using "F10 bufinfo" is possible but not convenient especially since one has to do it every new file.

I have 2 alternatives to suggest:

  1. Can we have a flag to force another convention from the git-go, e.g. "--eol CRLF"?
  2. I know there is a "set_terminator" primitive but that requires a macro to be written (I think), e.g. "--macro eol_crlf".
    In either case you could whip that off much faster than I and it would become available to all the users.

Ref: sourceforge

cmdline: --buftype=dos|unix|ansi|mac