Skip to content

Suggestion: showing in the recap bar (?) whether the file ends with a newline #13

Description

@Aster89

I was stung by not knowing this here.

Jokes apart, I'd be very useful if that info bar was provided. All lines end with \n?

 4 lines, showing 4 (POSIX-compliant file)

As before, but the last line has no line terminator?

 4 lines, showing 4 (non-POSIX-compliant file)

All lines end with \r\n except the last?

 4 lines, showing 4 (typical Windows file)

Some lines end with \n other with \r\n?

 4 lines, showing 4 (file with Windows and Unix mixed line endings)

All other cases?

 4 lines, showing 4

Something like this I guess can be easily handled by having some function return an enum telling which case it is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions