https://github.com/Mara-Li/obsidian-snippet-downloader
A way to manage snippets (download / update) from repository
https://github.com/Mara-Li/obsidian-snippet-downloader
Last synced: 4 months ago
JSON representation
A way to manage snippets (download / update) from repository
- Host: GitHub
- URL: https://github.com/Mara-Li/obsidian-snippet-downloader
- Owner: Mara-Li
- License: agpl-3.0
- Archived: true
- Created: 2022-04-14T08:44:22.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-11-15T17:17:08.000Z (over 1 year ago)
- Last Synced: 2024-11-27T07:03:28.899Z (5 months ago)
- Language: TypeScript
- Size: 249 KB
- Stars: 77
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - Mara-Li/obsidian-snippet-downloader - A way to manage snippets (download / update) from repository (TypeScript)
README
# Obsidian Snippet Downloader
This plugin is here to help you to download and update css snippet that are on a GitHub repository.
The plugin will download all css snippet on a repository, unless :
- There are two big (< 1MB)
- There are named `obsidian.css` (use BRAT for themes)
- There are excluded (see settings & excluded)In setting, you can :
- Delete a repository. Warning ! It will not delete the snippet from your `.obsidian/snippet` folder.
- Exclude file from the download / update. You can use the name, or a wildcard.So, the commands added by the plugins are :
- **Adding new Snippet** : Use `https://github.com/username/repo` or `username/repo` to add a new repository and download the present css snippet.
- **Update all snippet** : Update all repository and their snippet (unless you exclude them).
- **Update Specific snippet** : You can just update one snippet using its name.
- **Update Specific Repository** : You can just update one repository using its name.💡Note : The file will be updated only if there is a new commit ! It's not based on the file contents.
Also, alternatively, you can use the settings tab to add a repository, delete a repository, exclude a snippets, etc.
⚠️
- The plugin can't work without the
snippets
folder in yourobsidian
: you need to create it before use the plugin for the first time. - Each update will erase any edit you made on the snippet !
## Installation
- Use [BRAT-42](https://github.com/TfTHacker/obsidian42-brat) to install the plugin.
- Use the community plugin market.
## Developpements
- `git clone [email protected]:Mara-Li/obsidian-snippet-downloader.git`
- `npm install`
- `npm run dev`
*Credit to BRAT-42, where I take some idea and code !*
💡If one day BRAT-42 or Obsidian add a similary function, this plugin will be deleted !
🗒️It exists a limit of 60 API call for non identified user... That's mean you can download more than 60 times in a row !