Replies: 1 comment
-
Hi, probably the best way would be to create a conversion script which would convert your old note's attributes/tags/labels into trilium's attributes (labels). Trilium import format is ZIPped hierarchy with the notes and accompanying metadata JSON file which contains attributes (among other things). There isn't documentation for this format but it's quite self-explanatory. Example: {
"formatVersion": 1,
"appVersion": "0.47.4",
"files": [
{
"isClone": false,
"noteId": "EelysgPkV6d4",
"notePath": [
"MVbNEoJpQAd6",
"IZRM8GFD9I0m",
"11gPNZszYbkT",
"EelysgPkV6d4"
],
"title": "The Last Question by Issac Asimov.pdf",
"notePosition": 0,
"prefix": null,
"isExpanded": false,
"type": "file",
"mime": "application/pdf",
"attributes": [
{
"type": "label",
"name": "originalFileName",
"value": "the_last_question_-_issac_asimov.pdf",
"isInheritable": false,
"position": 1
}
],
"dataFileName": "The Last Question by Issac Asi"
},
{
"isClone": false,
"noteId": "MVbNEoJpQAd6",
"notePath": [
"MVbNEoJpQAd6"
],
"title": "Trilium Demo",
"notePosition": 10,
"prefix": null,
"isExpanded": true,
"type": "text",
"mime": "text/html",
"attributes": [
{
"type": "relation",
"name": "imageLink",
"value": "t4rgiLEtZBak",
"isInheritable": false,
"position": 1
},
{
"type": "relation",
"name": "internalLink",
"value": "CpNMiLz4YcM6",
"isInheritable": false,
"position": 2
}
],
"format": "html",
"dataFileName": "Trilium Demo.html",
"dirFileName": "Trilium Demo",
"children": [
{
"isClone": false,
"noteId": "UOb7ErVptONA",
"notePath": [
"MVbNEoJpQAd6",
"UOb7ErVptONA"
],
"title": "Formatting examples",
"notePosition": 10,
"prefix": null,
"isExpanded": false,
"type": "book",
"mime": "text/html",
"attributes": [],
"dirFileName": You can also check the demo document which is an example of export. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a bunch of tags on older notes I'm considering importing, is there an efficient way to copy these all into a Trilium note's attributes?
I have arrays from various programs; some use commas to separate their tags, some use a marker like an @ sign or a # sign. An example would be notes from the program jrnl.sh, which reads a note for @ signs (or another marker) and interprets/parses those as tags. Another example would be YAML frontmatter from a variety of programs which does something like:
or
Beta Was this translation helpful? Give feedback.
All reactions