Fantasy-Map-Generator/modules/ui
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
..
3d.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
ai-generator.js feat(ai-generator): update supported AI models list 2025-06-14 15:24:23 +02:00
battle-screen.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
biomes-editor.js refactor: drawReliefIcons, v1.108.4 2025-02-15 18:03:54 +01:00
burg-editor.js feat: like temp likeness, 1.106.6 2024-12-17 12:48:41 +01:00
burgs-overview.js fix: lock all burgs 2024-10-16 15:20:44 +02:00
coastline-editor.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
diplomacy-editor.js Merge states (#962) 2023-07-23 14:25:41 +04:00
editors.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
elevation-profile.js Urquhart routes (#1072) 2024-08-15 15:46:55 +02:00
emblems-editor.js fix: (v1.91.00) 2023-08-08 15:25:28 +04:00
general.js fix: routes (v1.104.3) 2024-09-20 14:16:07 +02:00
heightmap-editor.js fix: disable double-click on heightmap edit 2024-09-22 20:07:55 +02:00
hotkeys.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
ice-editor.js fix(#906): ice to follow expected size, reduce ice elements in general 2023-02-25 16:01:22 +04:00
labels-editor.js Draw state labels improvement (#1155) 2024-10-19 13:25:34 +02:00
lakes-editor.js fix: features rendering - close the ring 2024-10-13 20:32:37 +02:00
layers.js refactor: drawReliefIcons, v1.108.4 2025-02-15 18:03:54 +01:00
markers-editor.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
markers-overview.js fix(ui): correct marker note lookup by adding prefix 2025-07-02 00:52:41 +02:00
measurers.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
military-overview.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
namesbase-editor.js fix: allow to load smaller namesbase without issues on regeneration 2024-10-09 01:08:47 +02:00
notes-editor.js fix: notes editor size to be relative to canvas size 2025-02-10 12:41:14 +01:00
obsidian-config.js feat: add Obsidian vault integration for modern Markdown notes 2025-11-14 02:57:07 +00:00
obsidian-notes-editor.js feat: add Obsidian vault integration for modern Markdown notes 2025-11-14 02:57:07 +00:00
options.js fix: submap - generate in current canvas size 2024-12-13 13:15:01 +01:00
provinces-editor.js perf: set text-rendering to optimizeSpeed, v1.108.1 2025-02-15 14:43:51 +01:00
regiment-editor.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
regiments-overview.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
relief-editor.js annotate template strings for syntax hightlight and format 2022-05-08 19:22:15 +03:00
rivers-creator.js [Draft] Submap refactoring (#1153) 2024-12-12 13:11:54 +01:00
rivers-editor.js [Draft] Submap refactoring (#1153) 2024-12-12 13:11:54 +01:00
rivers-overview.js Urquhart routes (#1072) 2024-08-15 15:46:55 +02:00
route-group-editor.js fix: #1129 2024-09-12 12:55:31 +02:00
routes-creator.js fix: routes id after removing all 2024-08-16 13:15:00 +02:00
routes-editor.js fix: routes (v1.104.3) 2024-09-20 14:16:07 +02:00
routes-overview.js fix: routes (v1.104.3) 2024-09-20 14:16:07 +02:00
style-presets.js feat: letter-spacing - update style files 2024-09-01 14:07:18 +02:00
style.js refactor: drawReliefIcons, v1.108.4 2025-02-15 18:03:54 +01:00
submap-tool.js fix: submap - generate in current canvas size 2024-12-13 13:15:01 +01:00
temperature-graph.js feat: like temp likeness, 1.106.6 2024-12-17 12:48:41 +01:00
tools.js Allow data URI scheme for custom images (#1196) 2025-03-08 14:51:48 +01:00
transform-tool.js fix: submap - generate in current canvas size 2024-12-13 13:15:01 +01:00
units-editor.js Refactor layers rendering (#1120) 2024-09-20 12:20:27 +02:00
world-configurator.js fix: typo 2024-09-25 12:13:16 +02:00
zones-editor.js feat: zones editor - don't close other editors on open 2024-10-22 23:04:57 +02:00