seardnaschmid892 downloadsCopy the contents of files and folders in a structured JSON format.
The Recursive Item Copy plugin for Obsidian enhances your note-taking and organization experience by allowing you to easily copy the contents of files and folders in a structured JSON format. This plugin is particularly useful for:

Installation
Copying File or Folder Contents
Using the Copied Data
The copied data is in JSON format and includes:
items: An array of copied files and folderstype: Either "file" or "folder"path: The full path of the item in your vaultcontent: The content of the file (for file types)timestamp: The date and time when the copy was madeExample output:
{
"items": [
{
"type": "folder",
"path": "Essen"
},
{
"type": "file",
"path": "Essen/Milchreis Rezept.md",
"content": "# Der perfekte Milchreis - Grundrezept\n\n## Zutaten (für 4 Portionen):\n\n- 1 Liter Vollmilch, zimmerwarm\n- 250 g Milchreis\n..."
},
{
"type": "file",
"path": "Essen/Rhabarber Kuchen Rezept.md",
"content": "### Zutaten\n\n#### Für die Streusel\n\n- 125 Gramm Butter kalt in Stückchen\n- 125 Gramm Weizenmehl\n..."
}
],
"timestamp": "2024-08-24T19:41:50.729Z"
}
The plugin is implemented in TypeScript and uses Obsidian's Plugin API. Key components include:
ItemType enum to distinguish between file and folder typesFileSystemItem interface to represent both files and foldersCopyInfo interface for the final copy information structureIf you encounter any issues or have suggestions for improvements, please visit our GitHub repository [insert link here] to submit an issue or contribute to the project.
Enjoy recursive copying of your Obsidian content!