{"id":22482396,"url":"https://github.com/mara-li/obsidian-metacopy","last_synced_at":"2025-08-02T16:31:31.560Z","repository":{"id":41055241,"uuid":"420431331","full_name":"Mara-Li/obsidian-metacopy","owner":"Mara-Li","description":"A simple way to copy a frontmatter key in obsidian, and create an url from it !","archived":false,"fork":false,"pushed_at":"2024-05-25T21:20:06.000Z","size":18820,"stargazers_count":17,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-04T12:41:15.111Z","etag":null,"topics":["frontmatter","obsidian","obsidianpublisher","plugin"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mara-Li.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-23T14:12:39.000Z","updated_at":"2024-08-01T04:06:36.000Z","dependencies_parsed_at":"2024-05-28T11:27:24.653Z","dependency_job_id":"58ac6637-fae3-4f15-8dad-a89142221646","html_url":"https://github.com/Mara-Li/obsidian-metacopy","commit_stats":null,"previous_names":["mara-li/obsidian-metacopy"],"tags_count":48,"template":false,"template_full_name":"obsidianmd/obsidian-sample-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mara-Li%2Fobsidian-metacopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mara-Li%2Fobsidian-metacopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mara-Li%2Fobsidian-metacopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mara-Li%2Fobsidian-metacopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mara-Li","download_url":"https://codeload.github.com/Mara-Li/obsidian-metacopy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228492674,"owners_count":17928869,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["frontmatter","obsidian","obsidianpublisher","plugin"],"created_at":"2024-12-06T16:24:42.128Z","updated_at":"2024-12-06T16:24:42.702Z","avatar_url":"https://github.com/Mara-Li.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"This plugin recommended being used\nwith [Obsidian To Mkdocs](https://github.com/Mara-Li/mkdocs_obsidian_publish).\n# Obsidian — MetaCopy\n\nThe purpose of this plugin is to get quickly the value of a front matter key. You can set multiple value in settings, as : `key1, key2, key3, ...`\n\nIf the plugin found multiple key in the front matter :\n\n1. The context takes the **first** value from the front matter.\n2. The command creates a menu where you can choose the value you want.\n\nThe value added in your pasteboard, so you can paste it everywhere.\n\nYeah. That's it.\n\nHere is the plugin in action :\n![presentation.gif](docs/presentation.gif)\n\n# Links creator\n\n## Base options\n\nIf you want to create a link to a page, you can use this plugin.\n\n\u003e ⚠️ This function only work if you have a frontmatter.\n\nThere are 3 possibles configuration :\n\n- Creating link using a default folder\n- Creating link using the base link **plus** the relative obsidian path\n- Creating the link using a frontmatter key.\n\n### Fixed folder\n\nThe resulted link will be `{your_base_link}/{default_folder}/{filename}/`.\n\n\u003e 💭 Folder note option is disabled with this option.\n\n### Obsidian Path option\n\nThe resulted link will be : `{your_base_link}/{obsidian_path}/{filename}/`.\n\n### Frontmatter\n\nYou can create a link using a front matter key.\n\n1. The key must be both in `key` and in `key link`\n2. You need to configure the `base link`\n\nThe link creator works as the main plugin : file menu will take the first value,\nso if this value is the link key, it will create a link.\n\nYou can also set a `default value`, that will be a fallback in case of the\nabsence of a `category` key \u0026 value.\n\n![link creation](docs/link_creation.gif)\n\nFurthermore, the editor menu will add an option to copy the link if it exists.\n\n## Folder note support\n\nYou can enable the support of folder note (with the “folder name” behavior) to\ncreate link without the file's name if it's the same of the last folder of the\nlink key.\n\n\u003e ️🗒️ Example : \u003cu\u003eObsidian Path\u003c/u\u003e\n\u003e - If you set as `default value` : `docs`\n\u003e - If your file is named `noteIndex` and their folder `myFolder`\n\u003e - The link will be `{your_base_link}/{obsidian_path}/docs/myFolder/`\n\n\u003e 🗒️ Example : \u003cu\u003eFrontmatter\u003c/u\u003e\n\u003e - If you set `link_key: folder1/folder2/noteIndex`\n\u003e - If your file is named `noteIndex`\n\u003e - The result link will be : `{base_link}/folder1/folder2/noteIndex/`\n\n\u003e ⚠️ This option is not compatible with the `Fixed Folder` option.\n\n## Disable menu\n\nYou can disable the menu using a front matter key. There are two behaviors :\n\n1. Settings enabled :\n   The key must be present **and** set to **true** to **enable** the menu.\n2. Setting is disabled:\n   The default behavior.\n   The key must be absent **or** set to **false** to **disable** the menu.\n\nRegardless of the option, the command modal continue to work.\n\n# Obsidian Mkdocs\n\nFurthermore, the plugin recommended being used\nwith [Obsidian To Mkdocs](https://github.com/Mara-Li/mkdocs_obsidian_publish) to\ncopy link without editing the source file.\n\nTo use Obsidian2mkdocs with Metacopy, here is the configuration :\n![](docs/metacopy3.png)\n![](docs/metacopy2.png)\n\nThis template allows copying a link, as you will do with Notion or Google Docs (\nfor example).\n\nThe file template will be :\n```yaml\ntitle: \ncategory: something/like/that\nshare: true\n```\n\n[Here is a demo](https://www.loom.com/share/88c64da2ba194e219578d5911fb8e08d) : \n[![click to get a video !](docs/demo.gif)](https://www.loom.com/share/88c64da2ba194e219578d5911fb8e08d)\n---\n\nThe plugin is inspired by [Copy Publish URL](https://github.com/kometenstaub/copy-publish-url) but for all link (instead of only publish).\n\n\n# 🖥️ Development\n\n- Fork / clone the repository\n- `npm install`\n- `npm run dev` (or `npm run build`)\n\n# Installation\n\n1. You can use [BRAT](https://github.com/TfTHacker/obsidian42-brat) with the link to the repository.\n2. You can use the community plugin registry.\n3. Likewise, you can manually install the plugin using [release](https://github.com/Mara-Li/obsidian-metacopy/releases) and unzip obsidian-metacopy-x.x.xx.zip in your `.obsidian/plugins` folder.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmara-li%2Fobsidian-metacopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmara-li%2Fobsidian-metacopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmara-li%2Fobsidian-metacopy/lists"}