obsidian-reference-count icon indicating copy to clipboard operation
obsidian-reference-count copied to clipboard

Bug - Incorrectly renaming links (duplicating folder names) with absolute paths when renaming files

Open dalspok opened this issue 2 years ago • 5 comments

  1. I have "absolute path in vault" option selected, using wikilinks
  2. With this plugin enabled, when changing a filename, all the links to this filename are changed in incorrect way - folder name is duplicated (once per almost every file rename).
  • e.g.
  1. I create new file "Test 1" in folder "ABC"
  2. I link to that file from other file (which is in vault root). The link appears as [[ABC/Test 1]]
  3. After renaming "Test 1" to "Test 2", the original link now appears as [[ABC/ABC/Test 2]]
  4. When I rename it back to "Test 1", now it appears as [[ABC/ABC/ABC/Test 1]]

It seems that folder name is incorrectly added once more with each renaming. I tested which plugin could be responsible and it seems to be this plugin. (Bug apperas to be the same with all plugin options on/off, no effect turning off "Display on links" etc)

I am using Obidian 0.14.6. / Block Reference Counter 0.4.3.

Thanks.

dalspok avatar Apr 29 '22 15:04 dalspok

I'm having the same issue.

macOS 12.4 Obsidian Version 0.15.3 (installer 0.14.6) Block Reference Counter 0.4.3

keithadams avatar Jun 28 '22 16:06 keithadams

I have this issue too!

Hi @shabegom. I think this issue severely affect the usage of Obsidian. Either you fix this issue or put a huge warning in the Readme page warning user about this severe bug. This would cause a lot of confusion on the users part and they will file bug reports to Obsidian as well (which I was doing before thinking of disabling my plugins)

nhan000 avatar Jul 23 '22 15:07 nhan000

Hey! That's weird. The plugin doesn't write anything at all. It is reading from the link cache. I don't have time to look into a solution, but I'll add a note to the readme.

shabegom avatar Jul 23 '22 22:07 shabegom

I encountered the same issue.

user30535 avatar Sep 07 '22 22:09 user30535

@user30535 it's a known issue. See the readme description. I'd advise against using this plugin due to this bug.

nhan000 avatar Sep 07 '22 22:09 nhan000