Skip to content

Commit 5fadac4

Browse files
committed
Rename plugin to Mapsidian and remove Obsidian from description
1 parent 3deec99 commit 5fadac4

7 files changed

Lines changed: 32 additions & 32 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Canvas MindMap
1+
# Mapsidian
22

3-
Turn Obsidian Canvas into a powerful mind mapping tool with keyboard-driven node operations, auto-layout, and branch coloring.
3+
Turn Canvas into a powerful mind mapping tool with keyboard-driven node operations, auto-layout, and branch coloring.
44

55
## Features
66

@@ -57,13 +57,13 @@ All commands are available from the command palette (`Ctrl/Cmd+P`). You can assi
5757
### From community plugins (coming soon)
5858

5959
1. Open Settings > Community plugins
60-
2. Search for "Canvas MindMap"
60+
2. Search for "Mapsidian"
6161
3. Click Install, then Enable
6262

6363
### Manual installation
6464

65-
1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/mobench/canvas-mindmap/releases/latest)
66-
2. Create a folder `canvas-mindmap` in your vault's `.obsidian/plugins/` directory
65+
1. Download `main.js`, `manifest.json`, and `styles.css` from the [latest release](https://github.com/mobench/mapsidian/releases/latest)
66+
2. Create a folder `mapsidian` in your vault's `.obsidian/plugins/` directory
6767
3. Copy the downloaded files into that folder
6868
4. Enable the plugin in Settings > Community plugins
6969

manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"id": "canvas-mindmap",
3-
"name": "Canvas MindMap",
2+
"id": "mapsidian",
3+
"name": "Mapsidian",
44
"version": "0.1.0",
55
"minAppVersion": "1.5.0",
6-
"description": "Turn Obsidian Canvas into a powerful mind mapping tool with keyboard shortcuts, auto-layout, and branch coloring.",
6+
"description": "Turn Canvas into a powerful mind mapping tool with keyboard shortcuts, auto-layout, and branch coloring.",
77
"author": "mobench",
88
"isDesktopOnly": true,
99
"fundingUrl": "https://buymeacoffee.com/mobench"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "obsidian-canvas-mindmap",
2+
"name": "mapsidian",
33
"version": "0.1.0",
4-
"description": "Turn Obsidian Canvas into a powerful mind mapping tool",
4+
"description": "Turn Canvas into a powerful mind mapping tool",
55
"main": "main.js",
66
"scripts": {
77
"dev": "node esbuild.config.mjs",

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,7 +730,7 @@ export default class CanvasMindMapPlugin extends Plugin {
730730
if (!controls) return;
731731

732732
const btn = document.createElement('div');
733-
btn.addClass('canvas-mindmap-toggle-btn', 'clickable-icon');
733+
btn.addClass('mapsidian-toggle-btn', 'clickable-icon');
734734
btn.setAttribute('aria-label', 'Toggle mindmap mode');
735735
this.registerDomEvent(btn, 'click', (e) => {
736736
e.stopPropagation();

src/ui/keyboard-handler.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ export class KeyboardHandler {
357357
*/
358358
private registerPhysicalKeyShortcuts(): void {
359359
const shortcuts = [
360-
{ code: "Period", key: ".", ctrl: true, shift: false, alt: false, cmdId: "canvas-mindmap:mindmap-add-child" },
361-
{ code: "KeyS", key: "s", ctrl: true, shift: true, alt: false, cmdId: "canvas-mindmap:mindmap-flip-branch" },
362-
{ code: "KeyD", key: "d", ctrl: true, shift: true, alt: false, cmdId: "canvas-mindmap:mindmap-toggle-balance" },
363-
{ code: "KeyL", key: "l", ctrl: true, shift: true, alt: false, cmdId: "canvas-mindmap:mindmap-resize-subtree" },
364-
{ code: "KeyR", key: "r", ctrl: true, shift: true, alt: true, cmdId: "canvas-mindmap:mindmap-resize-all" },
360+
{ code: "Period", key: ".", ctrl: true, shift: false, alt: false, cmdId: "mapsidian:mindmap-add-child" },
361+
{ code: "KeyS", key: "s", ctrl: true, shift: true, alt: false, cmdId: "mapsidian:mindmap-flip-branch" },
362+
{ code: "KeyD", key: "d", ctrl: true, shift: true, alt: false, cmdId: "mapsidian:mindmap-toggle-balance" },
363+
{ code: "KeyL", key: "l", ctrl: true, shift: true, alt: false, cmdId: "mapsidian:mindmap-resize-subtree" },
364+
{ code: "KeyR", key: "r", ctrl: true, shift: true, alt: true, cmdId: "mapsidian:mindmap-resize-all" },
365365
];
366366

367367
this.plugin.registerDomEvent(document, "keydown", (e: KeyboardEvent) => {

src/ui/toc-view.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ItemView, WorkspaceLeaf, setIcon, Menu } from "obsidian";
22
import type { Canvas, CanvasNode } from "../types/canvas-internal";
33
import { buildForest, TreeNode, getDescendants } from "../mindmap/tree-model";
44

5-
export const TOC_VIEW_TYPE = "canvas-mindmap-toc";
5+
export const TOC_VIEW_TYPE = "mapsidian-toc";
66

77
interface GroupInfo {
88
node: CanvasNode;
@@ -39,7 +39,7 @@ export class TocView extends ItemView {
3939
}
4040

4141
async onOpen(): Promise<void> {
42-
this.contentEl.addClass("canvas-mindmap-toc");
42+
this.contentEl.addClass("mapsidian-toc");
4343
}
4444

4545
/**
@@ -58,7 +58,7 @@ export class TocView extends ItemView {
5858
const forest = buildForest(canvas);
5959
if (forest.length === 0) {
6060
this.contentEl.createDiv({
61-
cls: "canvas-mindmap-toc-empty",
61+
cls: "mapsidian-toc-empty",
6262
text: "No root nodes",
6363
});
6464
return;
@@ -128,7 +128,7 @@ export class TocView extends ItemView {
128128
): void {
129129
const treeItem = container.createDiv({ cls: "tree-item" });
130130
const self = treeItem.createDiv({
131-
cls: "tree-item-self is-clickable canvas-mindmap-toc-item",
131+
cls: "tree-item-self is-clickable mapsidian-toc-item",
132132
});
133133
self.createDiv({
134134
cls: "tree-item-inner",
@@ -256,7 +256,7 @@ export class TocView extends ItemView {
256256
});
257257

258258
const self = treeItem.createDiv({
259-
cls: "tree-item-self is-clickable canvas-mindmap-toc-group",
259+
cls: "tree-item-self is-clickable mapsidian-toc-group",
260260
});
261261

262262
const collapseIcon = self.createDiv({ cls: "tree-item-icon collapse-icon" });
@@ -294,7 +294,7 @@ export class TocView extends ItemView {
294294
this.rootElMap.clear();
295295
this.contentEl.empty();
296296
this.contentEl.createDiv({
297-
cls: "canvas-mindmap-toc-empty",
297+
cls: "mapsidian-toc-empty",
298298
text: "Open a canvas to see root nodes",
299299
});
300300
}

styles.css

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/* Canvas MindMap Plugin Styles */
1+
/* Mapsidian Plugin Styles */
22

33
/* Mindmap mode toggle button in canvas toolbar */
4-
.canvas-mindmap-toggle-btn {
4+
.mapsidian-toggle-btn {
55
color: var(--text-muted);
66
}
77

8-
.canvas-mindmap-toggle-btn:hover {
8+
.mapsidian-toggle-btn:hover {
99
color: var(--text-normal);
1010
}
1111

12-
.canvas-mindmap-toggle-btn.is-active {
12+
.mapsidian-toggle-btn.is-active {
1313
color: var(--interactive-accent);
1414
}
1515

@@ -26,29 +26,29 @@
2626
}
2727

2828
/* Table of Contents sidebar panel */
29-
.canvas-mindmap-toc {
29+
.mapsidian-toc {
3030
padding: 4px 0;
3131
}
3232

33-
.canvas-mindmap-toc-group .tree-item-inner {
33+
.mapsidian-toc-group .tree-item-inner {
3434
font-weight: var(--font-semibold);
3535
}
3636

37-
.canvas-mindmap-toc .tree-item-children {
37+
.mapsidian-toc .tree-item-children {
3838
overflow: hidden;
3939
max-height: 500px;
4040
transition: max-height 0.25s ease-in-out;
4141
}
4242

43-
.canvas-mindmap-toc .tree-item.is-collapsed > .tree-item-children {
43+
.mapsidian-toc .tree-item.is-collapsed > .tree-item-children {
4444
max-height: 0;
4545
}
4646

47-
.canvas-mindmap-toc .canvas-mindmap-toc-item.is-selected {
47+
.mapsidian-toc .mapsidian-toc-item.is-selected {
4848
background-color: var(--background-modifier-active-hover);
4949
}
5050

51-
.canvas-mindmap-toc-empty {
51+
.mapsidian-toc-empty {
5252
padding: 12px 10px;
5353
color: var(--text-muted);
5454
font-size: var(--font-ui-small);

0 commit comments

Comments
 (0)