Open vito opened 3 months ago
Thanks for reporting! Looks like we need to create an action for this, and then bind :e
to do it. If you want to pair on this https://calendly.com/conradirwin/pairing
is there a way to trigger relaod automatic. i wanna format my file with an cli tool.
any updates on this?
I'd like it if it noticed the file was updated out of band immediately as well.
Check for existing issues
Describe the feature
(Sorry if dupe, searched pretty hard and couldn't find anything.)
Zed will notice when a file has updated out-of-band and warn me when I try to save, which is great. But how can I do the equivalent to Vim's
:e!
to reset to the current file's content?Even better would be for a buffer which was initially unmodified (i.e. saved to disk) to just automatically refresh when it notices the file changed (i.e. due to a Git branch switch). It doesn't seem like that happens now. It seems like it prefers to retain the old content and deem it "modified" (state != disk) and then warns me about closing with unsaved changes. (I could be wrong here, sorry if so.) (edit: just saw this working, so not sure what gave me that impression)
Side note: I have the tab bar disabled locally for a more Vim-like experience, otherwise I end up with a million tabs duped between all my panels. So not seeing the file modification state might be a factor in my UX here.
If applicable, add mockups / screenshots to help present your vision of the feature
No response