{"id":29927543,"url":"https://github.com/crypdick/obsidian-tools","last_synced_at":"2025-08-02T13:11:20.596Z","repository":{"id":304843619,"uuid":"1020227051","full_name":"crypdick/obsidian-tools","owner":"crypdick","description":"Scripts to help manage my Obsidian 2nd brain","archived":false,"fork":false,"pushed_at":"2025-07-15T18:22:20.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-16T08:04:43.310Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crypdick.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2025-07-15T14:34:59.000Z","updated_at":"2025-07-15T18:22:23.000Z","dependencies_parsed_at":"2025-07-16T12:41:04.206Z","dependency_job_id":"cbe04fdc-d908-44b5-b9ff-d6ede6fbec94","html_url":"https://github.com/crypdick/obsidian-tools","commit_stats":null,"previous_names":["crypdick/obsidian-tools"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/crypdick/obsidian-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypdick%2Fobsidian-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypdick%2Fobsidian-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypdick%2Fobsidian-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypdick%2Fobsidian-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crypdick","download_url":"https://codeload.github.com/crypdick/obsidian-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crypdick%2Fobsidian-tools/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268394094,"owners_count":24243352,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-02T13:11:10.269Z","updated_at":"2025-08-02T13:11:20.586Z","avatar_url":"https://github.com/crypdick.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Obsidian Tools\n\nScripts to help manage my Obsidian 2nd brain\n\n- `add_dataview_limits.py`: Recursively scans markdown files in an Obsidian vault and appends `LIMIT 1000` (configurable) to Dataview queries that lack a limit. This is useful to prevent memory leaks from larger queries. Use `--go` to apply changes.\n- `dedup.py`: Deduplicates Markdown files in a directory by content, keeping a single canonical copy (preferably the one without or with the lowest numeric suffix), deleting the rest, and optionally renaming the survivor. Use `--go` to apply changes.\n- `strip_frontmatter.py`: Recursively scans markdown files in a directory (defaults to flashcards subdirectory) and strips YAML frontmatter blocks, leaving only the body content. Use `--go` to apply changes.\n- `unclobber_yaml_frontmatter.py`: Fixes duplicate or clobbered YAML front-matter blocks (typically introduced by merge conflicts). The script merges all front-matter sections found at the top of a Markdown file, resolves conflicts (earliest timestamps, union of lists, prompts for manual choice on other types), and rewrites the file with a single clean front-matter block. Use `--go` to apply changes.\n \n## Installation\n\nOptional: set `VAULT_PATH` and `VAULT_NAME` environment variables to avoid having to pass them as arguments to the scripts. For the `strip_frontmatter.py` script, you can also set `FLASHCARDS_PATH` to specify the flashcards directory directly. These can also be defined in the `.env` file.\n\n```bash\n# Create (or update) the project environment and install all runtime + dev deps\nuv pip install -e '.[dev]'\n\n# Register the Git hooks provided by pre-commit\nuvx pre-commit install\n```\n\n### Running the linters \u0026 formatter\n\n```bash\n# Execute the full pre-commit suite across all files\nuvx pre-commit run --all-files\n```\n\n### Running the tests\n\n```bash\n# Run the tests\nuv run pytest\n```\n\n# Contributing\n\nSee CONTRIBUTING.md before making edits.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrypdick%2Fobsidian-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrypdick%2Fobsidian-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrypdick%2Fobsidian-tools/lists"}