-
Notifications
You must be signed in to change notification settings - Fork 16
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
[Bug] Move file command does not work when destination folder contains file with same name #260
Comments
Thank you for the bug report, @isdmg :) |
@isdmg I hadn’t been aware of it, but it seems that Obsidian now has a similar command as a core feature. Since you're using a similar command in Another Quick Switcher, I'd like to hear your thoughts on this: Do you think the Obsidian core feature can fully replace it? |
@tadashi-aikawa I also believe it's safe to delete this command. And the issue that I opened isn't really that big of deal for me. You can do what you think is best for the plugin. I'll still use it even without the move file command feature :) |
@isdmg |
…ntains file with same name (#260)
## [12.1.0](12.0.1...12.1.0) (2024-11-09) ### ✨ Features * **main:** Add a 'close if opened' hotkey command ([#256](#256)) ([9705517](9705517)) * **main:** Auto alias transform ([#262](#262)) ([c526ad8](c526ad8)) ### 🛡 Bug Fixes * **move:** Move file command does not work when destination folder contains file with same name ([#260](#260)) ([fd6f95c](fd6f95c))
Check for Commonly Missed Points
Summary
The
Move file to another folder
command does not work when the destination folder contains a file with the same name as the current file.Steps to Reproduce in the Sandbox Vault
Assume that we have the following file structure:
folder1/
└── same-name.md
folder2/
└── same-name.md
If we run the
Move file to another folder
command onsame-name.md
infolder1
and choose the destination folder to befolder2
, we get the following error in the developer console:Expected Behavior
The native Obsidian command
Move current file to another folder
moves the current file by appending a numerical value on the file name.I expect the
Move file to another folder
command to copy the behavior ofMove current file to another folder
of Obsidian:Before the command
folder1/
└── same-name.md
folder2/
└── same-name.md
After the command
folder1/
└── (EMPTY)
folder2/
├── same-name.md
└── same-name 1.md
Actual Behavior
Currently, the plugin does not work as expected. If we run the
Move file to another folder
command onsame-name.md
infolder1
and choose the destination folder to befolder2
, we get this behavior:Before the command
folder1/
└── same-name.md
folder2/
└── same-name.md
After the command
folder1/
└── same-name.md
folder2/
└── same-name.md
Obsidian Version
1.7.4
Another Quick Switcher Version
12.0.1
OS
Windows
Notes
No response
The text was updated successfully, but these errors were encountered: