├── .github └── workflows │ └── release.yml ├── CHANGELOG.md ├── LICENSE ├── README.md ├── assets └── auto layout.png ├── main.js └── manifest.json /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | name: Release 2 | 3 | on: 4 | push: 5 | tags: 6 | - "*" 7 | 8 | jobs: 9 | release: 10 | runs-on: ubuntu-latest 11 | 12 | steps: 13 | - uses: actions/checkout@v3 14 | 15 | - name: Create release 16 | env: 17 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 18 | run: | 19 | tag="${GITHUB_REF#refs/tags/}" 20 | 21 | gh release create "$tag" \ 22 | --title="$tag" \ 23 | main.js manifest.json 24 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # obsidian-canvas-mindmap 2 | 3 | ## 0.1.16 4 | 5 | ### Patch Changes 6 | 7 | - [`9ab50fd`](https://github.com/tim-smart/effect-obsidian/commit/9ab50fd58a5d4e017723913d5b1750f7218c3692) Thanks [@tim-smart](https://github.com/tim-smart)! - check if writable for new node commands 8 | 9 | ## 0.1.15 10 | 11 | ### Patch Changes 12 | 13 | - [`0ce9e30`](https://github.com/tim-smart/effect-obsidian/commit/0ce9e30c9319be8112a5c0be3ab157d43c988473) - use FiberHandle for Canvas.onActive 14 | 15 | ## 0.1.14 16 | 17 | ### Patch Changes 18 | 19 | - [`1feea4c`](https://github.com/tim-smart/effect-obsidian/commit/1feea4cb45d5a2866334af0b4a249f89d26f934e) Thanks [@tim-smart](https://github.com/tim-smart)! - update dependencies 20 | 21 | - [`9f9e7d3`](https://github.com/tim-smart/effect-obsidian/commit/9f9e7d36ac1f21f6aff3ed5aa6b9246476b519a1) Thanks [@tim-smart](https://github.com/tim-smart)! - only create nodes if canvas is writable 22 | 23 | - [`41ff83c`](https://github.com/tim-smart/effect-obsidian/commit/41ff83c097d086bcd9c4ab5f59c632a137645d5a) Thanks [@tim-smart](https://github.com/tim-smart)! - update effect 24 | 25 | ## 0.1.13 26 | 27 | ### Patch Changes 28 | 29 | - [`ecf635c`](https://github.com/tim-smart/effect-obsidian/commit/ecf635c8a567c2afc329648d2023389541fe478c) Thanks [@tim-smart](https://github.com/tim-smart)! - update dependencies 30 | 31 | ## 0.1.12 32 | 33 | ### Patch Changes 34 | 35 | - [`a586ad8`](https://github.com/tim-smart/effect-obsidian/commit/a586ad8d5d254ded24064dc2afa4d8636f02ddec) Thanks [@tim-smart](https://github.com/tim-smart)! - update deps 36 | 37 | ## 0.1.11 38 | 39 | ### Patch Changes 40 | 41 | - [`8b7138d`](https://github.com/tim-smart/effect-obsidian/commit/8b7138d9d756287fb126a91d04df23c2813d574a) Thanks [@tim-smart](https://github.com/tim-smart)! - update effect 42 | 43 | ## 0.1.10 44 | 45 | ### Patch Changes 46 | 47 | - [`d068553`](https://github.com/tim-smart/effect-obsidian/commit/d068553a0bfde9748764ce0d9ccdaf2fae63340b) Thanks [@tim-smart](https://github.com/tim-smart)! - remove hotkeys and fix casing in command names 48 | 49 | ## 0.1.9 50 | 51 | ### Patch Changes 52 | 53 | - [`c22a734`](https://github.com/tim-smart/effect-obsidian/commit/c22a73463ea72a23b06ab9ada5fd10fe9443d28f) Thanks [@tim-smart](https://github.com/tim-smart)! - exclude groups from auto layout 54 | 55 | ## 0.1.8 56 | 57 | ### Patch Changes 58 | 59 | - [`c1af029`](https://github.com/tim-smart/effect-obsidian/commit/c1af0299361bff630adef72bff51f9e231d74933) Thanks [@tim-smart](https://github.com/tim-smart)! - fix patching of Canvas 60 | 61 | ## 0.1.7 62 | 63 | ### Patch Changes 64 | 65 | - [`1950b4e`](https://github.com/tim-smart/effect-obsidian/commit/1950b4e12d009740f83d1f5d2bf9d0a8843006f8) Thanks [@tim-smart](https://github.com/tim-smart)! - refactor auto layout 66 | 67 | ## 0.1.6 68 | 69 | ### Patch Changes 70 | 71 | - [`670eae9`](https://github.com/tim-smart/effect-obsidian/commit/670eae9c8f3caff8671715d561315a59b514dfa2) Thanks [@tim-smart](https://github.com/tim-smart)! - make auto layout configurable per canvas 72 | 73 | ## 0.1.5 74 | 75 | ### Patch Changes 76 | 77 | - [`9e0ab4d`](https://github.com/tim-smart/effect-obsidian/commit/9e0ab4d89e9ca56383cfd3b899f475b7590500ce) Thanks [@tim-smart](https://github.com/tim-smart)! - use pan for node navigation 78 | 79 | ## 0.1.4 80 | 81 | ### Patch Changes 82 | 83 | - [`6c61598`](https://github.com/tim-smart/effect-obsidian/commit/6c6159867c79c88df551d111f0431d5de54786d5) Thanks [@tim-smart](https://github.com/tim-smart)! - pan instead of zoom for new nodes 84 | 85 | ## 0.1.3 86 | 87 | ### Patch Changes 88 | 89 | - [`212ef2a`](https://github.com/tim-smart/effect-obsidian/commit/212ef2ad7528f1f76b90077fcd533aceb930e7cf) Thanks [@tim-smart](https://github.com/tim-smart)! - use sentance casing for settings 90 | 91 | ## 0.1.2 92 | 93 | ### Patch Changes 94 | 95 | - [`8a189b3`](https://github.com/tim-smart/effect-obsidian/commit/8a189b3006627b4a93714ab2e04435f811514f69) Thanks [@tim-smart](https://github.com/tim-smart)! - copy license on release 96 | 97 | ## 0.1.1 98 | 99 | ### Patch Changes 100 | 101 | - [`a095381`](https://github.com/tim-smart/effect-obsidian/commit/a09538163ec02060e5cd0110a8b324d3c67e5f9b) Thanks [@tim-smart](https://github.com/tim-smart)! - update manifest 102 | 103 | ## 0.1.0 104 | 105 | ### Minor Changes 106 | 107 | - [`bf52d73`](https://github.com/tim-smart/effect-obsidian/commit/bf52d73860fbd451c78f74ca5d4fb2124d4ba824) Thanks [@tim-smart](https://github.com/tim-smart)! - initial release 108 | 109 | ### Patch Changes 110 | 111 | - [`909e95b`](https://github.com/tim-smart/effect-obsidian/commit/909e95bf75bc673adf878e2d751782c1d0a36985) Thanks [@tim-smart](https://github.com/tim-smart)! - remove plugin id from command ids 112 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Tim Smart 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Canvas Mindmap Helper 2 | 3 | Useful commands and features to make the Canvas view work more like a mind mapping tool. 4 | 5 | See full source code here: https://github.com/tim-smart/effect-obsidian/tree/main/packages/canvas-mindmap 6 | 7 | ## Features 8 | 9 | - Commands to add new cards quickly 10 | - Commands to navigate cards using the keyboard 11 | - Auto layout command 12 | - Auto layout on card changes 13 | 14 | ### Auto layout on changes 15 | 16 | You can find a setting in the canvas menu here: 17 | 18 | ![Example](assets/auto%20layout.png) 19 | -------------------------------------------------------------------------------- /assets/auto layout.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tim-smart/obsidian-canvas-mindmap/71899efd43244e279258d556250fe444b28cb690/assets/auto layout.png -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "canvas-mindmap-helper", 3 | "name": "Canvas Mindmap Helper", 4 | "version": "0.1.16", 5 | "minAppVersion": "0.15.0", 6 | "description": "Make the Canvas work like a mindmap", 7 | "author": "Tim Smart", 8 | "authorUrl": "https://github.com/tim-smart", 9 | "isDesktopOnly": false 10 | } --------------------------------------------------------------------------------