Repository navigation
Releases
Releases · matthew-pot/text-to-map
Text to Map 0.3.1
- In-sentence commands now also work with spaces before the bracket:
@map (Kyoto Station),@map (京都駅)(half-width or full-width spaces). At the start of a line,@map (Kyoto Station) …is treated as an in-sentence command, not as a map line. - Added tests for full-width brackets at the start of a line (
@map(京都駅)で…).
Text to Map 0.3.0
- Commands can be used inside sentences by putting the place name in brackets:
Meet at @gmap(Shibuya Station) at noon./@map(渋谷駅)で待ち合わせ. The place name becomes a link. Half- and full-width brackets both work. On by default; turn it off with Commands inside sentences in the settings.
Text to Map 0.2.0
- Trigger names are now listed in the settings and can be changed per service. Separate several names with commas (for example
kmap, kakao). Invalid or duplicate names are rejected with a message; a reset button restores the built-in names.
Text to Map 0.1.1
Requires Obsidian 1.13.0 or later.
- Settings now use Obsidian's declarative settings API, so every setting appears in Obsidian's settings search.
- Map sizes are applied with CSS variables instead of inline styles, so themes and CSS snippets can adjust them.
- Better support for pop-out windows: DOM elements are created with Obsidian's helpers, and the interface language comes from
getLanguage(). - Live Preview maps are refreshed after a settings change through Obsidian's public editor API.
- Release files are built by GitHub Actions and carry a build-provenance attestation (
gh attestation verify main.js --repo matthew-pot/text-to-map). - The project is linted with Obsidian's official ESLint rules (
eslint-plugin-obsidianmd) on every push.
Text to Map 0.1.0
最初の公開版です。
インストール
下の main.js・manifest.json・styles.css をダウンロードし、Vault の .obsidian/plugins/text-to-map/ に置いて、設定「コミュニティプラグイン」で有効にしてください。
主な機能
- 行頭に
@map 東京駅と書くと、ノート内に地図とリンクを表示(読み取りモード・Live Preview・コードブロック) - Google・Yandex・百度は地図+リンク、Kakao・Apple・NAVER・高徳・Yahoo!・2GIS・Bing はリンク
| 大きく、| 高さ400 幅半分などの大きさ指定- 座標を求めて Leaflet で描画するオプション(既定は無効)
注意
- 地図を表示するたびに、地名のテキストが地図サービスに送られます。詳細は README の「通信について」を参照してください。
- 埋め込み地図は非公式のURLを使っており、各社の変更で表示されなくなることがあります。そのため、地図の下には常にリンクを表示します。
- Obsidian上での動作確認はまだ十分ではありません。不具合は Issues へお知らせください。