No description
Find a file
Samir Boulema b96e38a4d2
Merge pull request #20 from sboulema/dependabot/npm_and_yarn/typescript-eslint-91cb879acd
build(deps-dev): Bump the typescript-eslint group with 2 updates
2026-05-05 07:21:34 +02:00
.github fix: Fix description containing Obsidian 2026-05-01 21:17:16 +02:00
art Initial commit 2026-04-30 19:51:30 +02:00
jest fix: 1 eslint error to go 2026-05-02 01:18:08 +02:00
src fix: Down to 3 eslint errors 2026-05-02 01:07:30 +02:00
test Initial commit 2026-04-30 19:51:30 +02:00
.editorconfig Initial commit 2026-04-30 19:51:30 +02:00
.gitignore Initial commit 2026-04-30 19:51:30 +02:00
.npmrc buid: Bump version 2026-05-01 21:03:31 +02:00
.prettierignore build: Remove husky 2026-04-30 19:56:15 +02:00
.prettierrc.json Initial commit 2026-04-30 19:51:30 +02:00
esbuild.config.mjs fix: Down to 3 eslint errors 2026-05-02 01:07:30 +02:00
eslint.config.mjs fix: 14 eslint errors to go 2026-05-02 00:48:07 +02:00
jest.config.js Initial commit 2026-04-30 19:51:30 +02:00
LICENSE Initial commit 2026-04-30 19:51:30 +02:00
main.ts fix: Down to 3 eslint errors 2026-05-02 01:07:30 +02:00
manifest.json fix: Fix description containing Obsidian 2026-05-01 21:17:16 +02:00
mtg-deck.code-workspace build: More dependabot groups 2026-04-30 21:10:04 +02:00
package-lock.json build(deps-dev): Bump the typescript-eslint group with 2 updates 2026-05-05 03:16:17 +00:00
package.json build(deps-dev): Bump the typescript-eslint group with 2 updates 2026-05-05 03:16:17 +00:00
README.md fix: Rename MtG to MTG 2026-05-01 20:41:54 +02:00
register.js fix: Down to 3 eslint errors 2026-05-02 01:07:30 +02:00
styles.css Initial commit 2026-04-30 19:51:30 +02:00
tsconfig.json build: Update tsconfig.json 2026-04-30 22:03:18 +02:00
version-bump.mjs Initial commit 2026-04-30 19:51:30 +02:00
versions.json fix: Fix description containing Obsidian 2026-05-01 21:17:16 +02:00

MTG Deck

This is a plugin to manage your Magic: The Gathering card collections and decks as Obsidian notes.

This is a fork from the original obsidian-mtg plugin which seems unmaintained.

Decklists

Using the mtg-deck syntax hint in any Markdown file, you can define your decklists as follows:

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

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