https://github.com/omardelarosa/obsidian-mtg
A plugin for managing Magic: The Gathering decks and card lists as Obsidian notes
https://github.com/omardelarosa/obsidian-mtg
Last synced: about 2 months ago
JSON representation
A plugin for managing Magic: The Gathering decks and card lists as Obsidian notes
- Host: GitHub
- URL: https://github.com/omardelarosa/obsidian-mtg
- Owner: omardelarosa
- License: mit
- Created: 2022-09-23T21:47:03.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-09-27T20:48:27.000Z (about 2 years ago)
- Last Synced: 2024-04-14T19:44:39.799Z (over 1 year ago)
- Language: TypeScript
- Size: 1.93 MB
- Stars: 29
- Watchers: 4
- Forks: 4
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Obsidian MtG Plugin
This is a plugin to manage your Magic: The Gathering card collections and decks as Obsidian notes.
## Decklists
Using the `mtg-deck` syntax hint in any Markdown file, you can define your decklists as follows:
```mtgdeck
4 Delver of Secrets // Insectile Aberration
4 Haughty Djinn
3 Tolarian Terror
4 Consider
4 Essence Scatter
4 Fading Hope
4 Make Disappear # consider Negate instead
4 Slip Out the Back
3 Spell Pierce
3 Thirst for Discovery
20 Island
1 Otawara, Soaring City
1 Otherworldly Gaze
1 Reckoner Bankbuster
Sideboard:
2 Disdainful Stroke
4 Negate
4 Out of the Way
1 Reckoner Bankbuster
4 Ertai's Scorn
```
Which in turn renders as:

You can also copy paste directly from MTGA exports, though setlists and collector's numbers will not be shown and are not yet supported in the renderer.
## Collections
This plugin expects your collection to be stored as csv files with the extension `.mtg.collection.csv` by default. This extension is configurable in settings:

These files are expected to be properly formed CSVs such as those generated by tools like [Deckbox](https://deckbox.org/)
### Example CSV Files
```
Name,Count,Set
Delver of Secrets // Insectile Aberration,8,MID
"Otawara, Soaring City",4,NEO
"Rona's Vortex",2,DMU
```
```
Name,Count,Set
Delver of Secrets // Insectile Aberration,1,MID
"Otawara, Soaring City",6,NEO
"Rona's Vortex",3,DMU
Ledger Shredder,5,SNC
```
Note that your collection will consist of the merged result of all of your CSV files.
# Contributing
See [the official Obsidian plugin guidelines](https://github.com/obsidianmd/obsidian-sample-plugin#obsidian-sample-plugin)