zed
zed copied to clipboard
Add `workspace: save without formatting` and default autosave without formatting
-
Added
autosave.after_delay/on_window_change/on_focus_change.trigger_formattercloses #4882 One quirk to this implementation is you can have a configuration like this and the document won't format on save. A more accurate name for this setting istrigger_format_on_save. Open to changing it. -
Added
workspace: save without formatting. closes #5230 The default key binding is the same as vscode (cmd-k s), open to changing this as well.
Sorry y'all, didn't realize you had already worked on this feature when I opened https://github.com/zed-industries/zed/pull/8806.
I'm gonna merge my PR, as it's essentially the same functionality and approach. But I'll leave this one open for incorporating the autosave setting into the SaveWithoutFormat functionality :)
Sorry y'all, didn't realize you had already worked on this feature when I opened #8806.
I'm gonna merge my PR, as it's essentially the same functionality and approach. But I'll leave this one open for incorporating the autosave setting into the SaveWithoutFormat functionality :)
No problem 👍 I haven't updated this pr in two weeks
Going to close this for now as it'll need significant rebasing to merge; but as Mikayla said, the setting would be nice.