streetwriters / notesnook

A fully open source & end-to-end encrypted note taking alternative to Evernote.
https://notesnook.com/
GNU General Public License v3.0
9.62k stars 591 forks source link

Import notes duplicate files and make them hidden #5804

Open dmytrodubinin opened 4 months ago

dmytrodubinin commented 4 months ago

What happened?

When I try to import my notes into Notesnook, importer create the same names of file but hidden:

image

And when I import arhive this files also appear in application but with the same text:

image

The content of this hidden files: ����Mac OS X ���� ���2���q���������������������������������������������ATTR��������������� ���������������������� ��com.apple.provenance���1(����

Steps to reproduce the problem

Tested different md files from Obsidian and vanilla markdown, the problem is still here

Version

3.0.6-10be577-desktop

Platform/OS

macOS

Relevant log output

No response

ammarahm-ed commented 4 months ago

Hi, are the imported notes that are not hidden load properly in the editor. Only the hidden files have this problem?

dmytrodubinin commented 4 months ago

Hi, are the imported notes that are not hidden load properly in the editor. Only the hidden files have this problem?

Yes, original files (not hidden) doesn't have this problem. But this imported files have another problem related to this issue: https://github.com/streetwriters/notesnook/issues/4245 - the problem appears not in pdf files but in images (they detected as files, not images):

image

On desktop this files:

image

On mobile app shows them as files, not images (in images section nothing): telegram-cloud-photo-size-2-5386758896611351218-y telegram-cloud-photo-size-2-5386758896611351219-y

dmytrodubinin commented 4 months ago

I got a lot of problems when trying to import files from Obsidian to Notesnook:

  1. Hidden files appear, that I describe before
  2. With import directly from Obsidian file doesn't imported at all! My structure of notes are: _assets - all files of my notes, then folder_1, folder_2 etc for folders and subfolders. Then I try to import this notes - no files and images was imported at all!
  3. So I convert my Obsidian files into vanilla markdown and imported them - they imported but with some other small bugs that i described before
ammarahm-ed commented 4 months ago

Hey, can you tap on the attachment in attachment manager and check it's mime type from properties?

dmytrodubinin commented 4 months ago

telegram-cloud-photo-size-2-5386758896611351303-y

dmytrodubinin commented 4 months ago

I tested again, convert one note in Obsidian and import it into Notesnook: no hidden files but the problem with images are still here. The original note (archived by MacOs Finder): output.zip

Original note opens good in VSCode with preview. The Notesnook also imported it but the problem with images when try to preview them (as before):

image
dmytrodubinin commented 4 months ago

I think the problem with hidden md files when import is not big problem because I can sort files by name and select them all and delete at once. But the problem with preview images are much bigger

dmytrodubinin commented 3 months ago

Any plan to fix the problem of images preview error?

thecodrr commented 3 weeks ago

The problem with hidden files was fixed.