Using the Obsidian URI interface to create a new file with the overwrite option set, if the file name ends with a space, I cannot get the overwrite option to work. Obsidian insists on creating a new file with an incremented number appended to the end of the filename. When the trailing space is removed, the overwrite option behaves as expected.
Steps to reproduce
Consider the following terminal command on MacOS:
% open “obsidian://new?vault=MyVault&overwrite&name=foo%20bar%20baz%20&content=hello%20world”
An existing file is not overwritten and a new one is always created.
Remove the trailing space (after baz above) and overwrite works as documented.
Did you follow the troubleshooting guide? [Y/N]
Sigh (this is a minor bug). Yes. Same result.
Expected result
I expected the existing file to be overwritten
Actual result
A new numberer file was created
Environment
SYSTEM INFO:
Obsidian version: v1.7.7
Installer version: v1.4.13
Operating system: Darwin Kernel Version 24.1.0: Thu Oct 10 21:05:14 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T8103 24.1.0
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 3
Plugins enabled: 3
1: File Info Panel v1.3
2: Custom File Explorer sorting v2.1.14
3: Dataview v0.5.67
RECOMMENDATIONS:
Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.