obsidianmd / obsidian-importer

Obsidian Importer lets you import notes from other apps and file formats into your Obsidian vault.
https://help.obsidian.md/import
MIT License
762 stars 72 forks source link

Bear importer only imports attachments #304

Closed jezper closed 1 month ago

jezper commented 1 month ago

Any issue with the Bear importer or is this a user error on my behalf?

Trying to import a .bear2bk into a fresh Vault and only getting the attachments imported, no notes. I get two empty folders for trash and archive, but nothing in there either.

rtud commented 1 month ago

Seeing the same behavior on my end.

HybridRbt commented 1 month ago

I can confirm that this exact issue happens to me as well.

tgrosinger commented 1 month ago

Hello, thanks for reporting this issue. I've got a couple exports from Bear that we use for testing, and both are importing the notes as expected. Would one of you be able to share an export that reproduces this issue that I can use for fixing this issue?

tgrosinger commented 1 month ago

Could you please also let us know what operating system you are using?

HybridRbt commented 1 month ago

I am on macOS 15.0. My Bear is on v2.3.3. I will see if I can create a shareable backup of the notes.

rtud commented 1 month ago

System 1: macOS 15.0, Bear 2.3.3, Obsidian 1.6.7, Obsidian Importer Plugin 1.6.5 System 2: Arch Linux via LTS kernel, Obsidian 1.6.7-1 via pacman, exported Bear notes in .bear2bk format from Bear 2.3.3

Thank you!

tgrosinger commented 1 month ago

I have made some changes to the Bear importer to improve how we handle attachments and duplicate file paths (#305). Would any of you be willing to give it a test and report if it resolves this issue?

  1. Download this zip: main.zip
  2. Unzip the file.
  3. Open your Obsidian vault, replace <your-vault>/.obsidian/plugins/obsidian-importer/main.js with this file.
  4. Close and reopen Obsidian.

Thank you!

jezper commented 1 month ago

@tgrosinger

That did the trick (at least for me!)

image

HybridRbt commented 1 month ago

I can also confirm that the new main.js file has fixed it.

截屏2024-10-04 下午11 47 36
tgrosinger commented 1 month ago

This problem should be resolved in the latest release. Thanks for helping test!