Giter Site home page Giter Site logo

Comments (5)

kepano avatar kepano commented on September 24, 2024 1

I would recommend asking on the forum or Discord as this out of the scope of Importer.

from obsidian-importer.

kepano avatar kepano commented on September 24, 2024

The creation date and modified date should be applied to the file itself at the file system level.

When you look at the file in File Explorer you should see those dates. Can you confirm?

Importing those dates as properties is not currently supported but you could populate those using a separate script or plugin.

from obsidian-importer.

Korayem avatar Korayem commented on September 24, 2024

@kepano thanks for your answer. Indeed you're right.

I looked up how I can script this and this is my solution. However, when I do OneNote import, Templater doesn't trigger on created notes. Any ideas?

Here are the steps I took:

  1. Install Templater plugin
  2. Create the /templater/insert file property.md and add the following script
---
Created at: <% tp.file.creation_date() %> 
Last updated at: <% tp.file.last_modified_date() %>
---
  1. Go to Templater Settings and enable Folder Templates, which basically tells Templater to run a specific template whenever a new Note is created inside that folder. Mine is OneNote which I use to import notes into.
    image

from obsidian-importer.

Korayem avatar Korayem commented on September 24, 2024

@kepano To debug the root cause, I created a new note manually inside OneNote and the above solution indeed worked. Templater inserted the File Property block.
image

The issue is with Obsidian Importer. For some reason, when it's importing files from OneNote and creating notes, it's not firing file created event hence Templater isn't detecting any new files.

So plz re-open this

from obsidian-importer.

Korayem avatar Korayem commented on September 24, 2024

Cross-linking a similar discussion on Obsidian forums for reference. I posted there also about this ticket to garner more people into the discussion.

from obsidian-importer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.