Open internettechnik opened 2 weeks ago
I can reproduce this, but everything works as expected if the file is inside a project folder.
Steps to reproduce.
mkdir /tmp/issue18805
cd $_
touch hello_world.txt
zed hello_world.txt
mv hello_world.txt hello_dog.txt
If you change the zed command invocation to zed . hello_world.txt
there is no an issue.
I would still consider it as Bug, if a user on the UI cannot detect in any way, that the file visible in Zed() has changed the location in the file system. On upcoming save*-operation a new file is created which might and will be unexpected behaviour.
(*) possibly removed from the file explorer, but still visible in the open editor window
Check for existing issues
Describe the feature
Move or rename outside Zed (terminal, macOS Finder): Expected behaviour: reflect changes (renaming) in the title, transparently save to proper expected location next time
Actual behaviour: no feedback on the UI. Creation of new file in the file system on the previous (now old) location
Find attached the expected macOS system behaviour (for example with TextMate Editor) and the buggy Zed behaviour after renaming a file /tmp/hello.txt to /tmp/helloworld.txt.
If applicable, add mockups / screenshots to help present your vision of the feature
No response