Comments (5)
I would recommend asking on the forum or Discord as this out of the scope of Importer.
from obsidian-importer.
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.
@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:
- Install Templater plugin
- 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() %>
---
- Go to
Templater
Settings and enableFolder Templates
, which basically tells Templater to run a specific template whenever a new Note is created inside that folder. Mine isOneNote
which I use to import notes into.
from obsidian-importer.
@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.
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.
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)
- Import Google Takeout for Keep notes doesn't finish and freezes HOT 3
- [Pelican] Importing Pelican article files into Obsidian Notes HOT 2
- Failed to load plugin on Obsidian desktop app HOT 4
- [Apple Notes] issue with .jpg files HOT 1
- Tables containing links with aliases do not escape pipe.
- Convert from downloaded notebook HOT 1
- Import from Mozilla Firefox Extension
- Attachments links when using the Importer for Roam JSON
- [OneNote] Can't select which MS Account to import from HOT 1
- Feature Request: Handle Evernote Internal Links HOT 1
- GoodNotes import request HOT 2
- [Notion] Import of equations with the cases environment do not work
- [OneNote] The path generation rules imported from OneNote to Obsidian caused compatibility issues.
- 登入onenote 点击sign in无反应 HOT 2
- Plans for import from zim-wiki? HOT 1
- Importing from OneNote completely broken HOT 5
- [Evernote] Still fails to set some notes' dates
- [Evernote] Image size not preserved after importing
- Failed to load plugin
- [Notion]: breaks with additional cases inside a math formula
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-importer.