-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Saving an empty file creates an additional new line #11044
Comments
I don't see this behaviour on 0.133.2 |
Small update, it's important to have |
Yes, your reproduction is correct. By the way, vim works this way too: it doesn't create a final newline with no content.
|
If you change the |
Yes, if I'm saving empty file. Here is how it works now: example.mp4What I'm expecting: example2.mp4 |
just add the following line to your settings if you want to disable it: |
I believe the OP is aware of the |
zed 0.162.3, |
My two cents: This is a terrible default. When have you ever needed to save a file with exactly one newline in it? |
Somewhat related, the |
Check for existing issues
Describe the bug / provide steps to reproduce it
vim.txt
Same behaviour in vim mode.
I think there shouldn't be multiple new lines in an empty file.
Environment
Zed: v0.132.2
OS: macOS Sonoma 14.4.1
Memory: 16GB
Architecture: Apple M2
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.log
file to this issue.No response
The text was updated successfully, but these errors were encountered: