Skip to content

Add optional .gitignore support#56

Open
tiagoarroz wants to merge 3 commits into
silvanocerza:mainfrom
tiagoarroz:codex-use-gitignore
Open

Add optional .gitignore support#56
tiagoarroz wants to merge 3 commits into
silvanocerza:mainfrom
tiagoarroz:codex-use-gitignore

Conversation

@tiagoarroz
Copy link
Copy Markdown

@tiagoarroz tiagoarroz commented May 4, 2026

Summary

Adds an optional Use .gitignore setting below Repository branch that lets the plugin ignore vault files using root .gitignore rules.

Details

  • Adds ignore as a runtime dependency for Git-compatible ignore matching.
  • Loads .gitignore rules when metadata is initialized, when local vault events are processed, and when sync actions are calculated.
  • Filters ignored local and remote metadata so ignored files are not uploaded, downloaded, or kept in the sync manifest.
  • Applies remote .gitignore rules during first sync from a downloaded repository archive.

@tiagoarroz tiagoarroz changed the title [codex] Add optional .gitignore support Add optional .gitignore support May 4, 2026
@tiagoarroz
Copy link
Copy Markdown
Author

This allows for syncing large files with external cloud solutions, e.g. Filen where you can set custom synchronizations, while still being able to sync the notes with this plugin.

  1. Create a folder for files
  2. Set Obsidian to add the files to that folder by default
  3. Add that folder to the .gitignore
  4. Sync that folder using a cloud service

@tiagoarroz tiagoarroz marked this pull request as ready for review May 5, 2026 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant