lukasbach / obsidian-file-order

Obsidian plugin to reorder files with drag-and-drop by customizing a number-prefix in the filenames
MIT License
67 stars 2 forks source link

"Fix name to ordering convention" skips by 2 #22

Open auw001 opened 1 month ago

auw001 commented 1 month ago

Describe the bug The option of fixing name to ordering convention skips by 2 sometimes. If the previous number is 02, then applying "Fix name to ordering convention" will make it 04.

To Reproduce Create a folder with some files already having ordered numbers in the title. Create new file under that folder and apply "Fix name to ordering convention." It skips by 2 the first time it is applied in the folder, but repeating this process it works normally.

Expected behavior Expected to display the next number in the sequence, got the number two places ahead.