A glitch with moving file to another folder if src == dest

Steps to reproduce:

  1. open a file,
  2. open Command palette,
  3. select “Move current file to another folder”,
  4. select the identical folder (the folder that the file is currently in) as the destination.

Observed result:

The file stays in the same folder, but " 1" is added to its name.

Expected behavior:

Do not rename the file. Instead:

  • either do nothing,
  • or (even better) display an unintrusive message box.

I was able to reproduce this in the sandbox vault. Environment:

SYSTEM INFO:
	Obsidian version: v1.5.3
	Installer version: v1.4.13
	Operating system: Darwin Kernel Version 22.6.0: Wed Jul  5 22:22:52 PDT 2023; root:xnu-8796.141.3~6/RELEASE_ARM64_T8103 22.6.0
	Login status: logged in
	Catalyst license: none
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 0
	Plugins enabled: 0

RECOMMENDATIONS:
	none

1 Like

@ush You already reported this bug and I already pointed you to an already existing bug report. This is not helpful.

I didn’t notice this is the same bug as the one I reported before because this one is about the Move current file to another folder command, while mine was about dragging & dropping in file explorer. I’m still not fully convinced, but it makes sense assuming what is happening internally would be the same.

1 Like

These seem to be independent bugs.

  1. Ush reported that dragging and dropping a file into the src folder moves it to the vault root folder instead.

  2. I reported that moving a file into its original folder using a command (or a hotkey) adds a number to its name.

Nevertheless, my bug was reported too, in a comment to Ush’s bug.

Please attempt to read the thread that I linked in that report.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.