Fantasy-Map-Generator/modules
Claude 769d3a31bb
feat: add Obsidian vault integration for modern Markdown notes
Add comprehensive Obsidian integration as intermediate step toward
PostgreSQL migration, enabling modern Markdown-based note editing:

**Features:**
- Obsidian Local REST API integration for vault access
- Coordinate-based note matching (searches vault YAML frontmatter)
- Shows top 5-8 closest matches when clicking burgs/markers
- Modern Markdown editor with live preview
- [[Wikilink]] support for connecting notes
- "Open in Obsidian" button to jump to native app
- Configuration UI for API setup and testing

**Technical Implementation:**
- modules/io/obsidian-bridge.js - Core API integration layer
- modules/ui/obsidian-notes-editor.js - Markdown editor UI
- modules/ui/obsidian-config.js - Configuration panel
- OBSIDIAN_INTEGRATION.md - Complete setup/usage guide

**Coordinate Matching:**
- Parses YAML frontmatter for x/y coordinates
- Calculates distance to clicked element
- Supports nested (coordinates.x) and flat (x:) formats
- Handles missing FMG IDs (common with PostgreSQL imports)

**User Workflow:**
1. Configure Obsidian REST API connection
2. Click burg/marker in FMG
3. System finds matching notes by coordinates
4. Select note or create new one
5. Edit in modern Markdown editor
6. Save syncs to Obsidian vault instantly

This replaces the "Win95-style TinyMCE" editor with a clean,
modern Markdown experience while maintaining compatibility with
the eventual PostgreSQL backend migration. Users can edit notes
in either FMG or Obsidian - both stay in sync via file system.

Version: 1.108.13
2025-11-14 02:57:07 +00:00
..
dynamic perf: set text-rendering to optimizeSpeed, v1.108.1 2025-02-15 14:43:51 +01:00
io feat: add Obsidian vault integration for modern Markdown notes 2025-11-14 02:57:07 +00:00
renderers Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
ui feat: add Obsidian vault integration for modern Markdown notes 2025-11-14 02:57:07 +00:00
biomes.js Urquhart routes (#1072) 2024-08-15 15:46:55 +02:00
burgs-and-states.js [Draft] Submap refactoring (#1153) 2024-12-12 13:11:54 +01:00
coa-generator.js feat: add new emblem charges 2023-10-30 22:27:25 +04:00
coa-renderer.js Fix: rework texture data format (#1017) 2023-11-19 14:43:56 +04:00
cultures-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
features.js fix: features - define first cell 2024-09-22 13:04:22 +02:00
fonts.js feat: new style - DarkSeas 2024-08-17 14:16:01 +02:00
heightmap-generator.js feat: heightmap brushes - linear edit option (1.88.00) 2022-10-31 00:24:54 +03:00
lakes.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
markers-generator.js feat: make lined icons work for all elements, v1.107.0 2025-02-08 14:05:28 +01:00
military-generator.js feat: make lined icons work for all elements, v1.107.0 2025-02-08 14:05:28 +01:00
names-generator.js fix: allow to load smaller namesbase without issues on regeneration 2024-10-09 01:08:47 +02:00
ocean-layers.js feat: optimizeSpeed rendering (1.87.15) 2022-10-13 00:52:49 +03:00
provinces-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
religions-generator.js Removed priority queue in favor of FlatQueue (#1157) 2024-10-26 14:26:59 +02:00
resample.js fix: sumap - clip routes by bbox 2024-12-14 15:12:38 +01:00
river-generator.js fix: 1.106.7 - rivers starting width calc 2024-12-17 17:11:13 +01:00
routes-generator.js [Draft] Submap refactoring (#1153) 2024-12-12 13:11:54 +01:00
submap.js chore: parse DEBUG setting as an object 2024-10-22 14:45:25 +02:00
voronoi.js Fix: flux calculation from area-propotional value instead of normal value. (#654) 2021-08-15 12:43:20 +03:00
zones-generator.js fix: add p to priority queue 2024-10-26 14:29:52 +02:00