visualcurrent / Notion-2-Obsidan

Conversion routines to convert all Notion .md exports to full Obsidian compatibility
262 stars 47 forks source link

Long File Names #38

Open r-menezes opened 1 year ago

r-menezes commented 1 year ago

Amazing tool !! It saved me many hours.

I ran into some problems while using it though. Sometimes I wrote filenames in notion which were just too large. To avoid this problem, I did a quick a dirty fix altering N2O.py (inserted after line 122):

        # Trim long titles
        if len(new_file_name ) > 200:
            new_file_name = new_file_name[:200]

This solved the issue of file names being too large, but I lost some information. If I had more time, I would look for a solution saving the previous title inside the markdown document for safekeeping.