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
619 stars 53 forks source link

[Bear] Import data from `.bear2bk` produces unexpected notes #224

Open randy opened 3 months ago

randy commented 3 months ago

After sanitizing my Bear tags to remove spaces, I ran a second import into a new vault. Unfortunately, the affected notes contain proprietary information, so I cannot provide screenshots. However, I can give examples that may help.

The original note in Bear begins similar to this:

# JIRA-123 ❌
- [ ] Investigate
  * In some file, look at some thing...
  * second item, etc.

// many lines elided

#Task_List

So that first line is a "header 1" with an emoji, second line starts a to-do list, followed by an indented bullet list. After many lines, it ends with the tag "#Task_List" which is, let's say, my primary tag for all things "work."

The import produced a note like that, as well as one like this:

# - Investigate
#Task_List
  * In some file, look at some thing...
  * second item, etc

// remainder of file as expected, but lacking the tag on the last line

In another example, the original note looks like this:

# 1:1
- [ ] item one
- [ ] item two
- [ ] etc
// many lines elided again
#today#
#Task_List
#Work_Dev

And the output looks like this:

# 11

# 1:1
- [ ] item one
- [ ] item two
- [ ] etc
/// many lines elided
#today#
#Task_List
#Work_Dev

There is no "correct" file that has the expected 1:1 title.

Let me know if I can provide any other information to assist on this. I'm looking to dump Bear because they pretty much told me I was wrong about some unexpected behavior their app has when moving lines up and down a todo/list. Obsidian handles the movements correctly.