Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Aster89 opened this issue Oct 15, 2020 · 0 comments

Comments

@Aster89
Copy link

Aster89 commented Oct 15, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant