Skip to content

[BUG] File extension removed when renaming files #171

@groksrc

Description

@groksrc

Bug Description

When renaming a file using Basic Memory, the ".md" extension is frequently removed, making the file unrecognizable both in Finder and Obsidian. This forces users to manually add the extension back each time.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Have Basic Memory installed
  2. Use the rename/move functionality to rename a markdown file
  3. The ".md" extension is removed from the filename
  4. File becomes unrecognizable in Finder and Obsidian

Expected Behavior

When renaming a file, the file extension should be preserved. If renaming "document.md" to "new-document", the result should be "new-document.md".

Actual Behavior

The file extension is removed during the rename operation. Files lose their ".md" extension and become unrecognizable to both the file system (Finder) and Obsidian.

Additionally, when attempting to fix this issue:

  • Basic Memory sometimes reports that all files have been modified when many still need fixing
  • Files in subfolders are sometimes completely skipped

Environment

  • OS: [Unknown - reported by Discord user]
  • Python version: [Unknown]
  • Basic Memory version: [Unknown]
  • Installation method: [Unknown]
  • Claude Desktop version (if applicable): [Unknown]

Additional Context

  • User has found a workaround by asking Basic Memory to add the extension back, but this process is unreliable
  • The issue affects file recognition in both Finder and Obsidian
  • Problem extends to batch operations where some files are skipped or incorrectly reported as fixed

Possible Solution

The rename/move functionality should:

  1. Preserve file extensions by default
  2. Handle file extensions separately from the filename when processing renames
  3. Ensure batch operations correctly process all files including those in subfolders

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions