No description
Find a file
imfenghuang ca455711aa
Feat: syntax highlighting in editing mode
Fix #1
Merge pull request #3 from texastoland/feature/1-syntax-highlighting
2025-04-08 21:48:05 +08:00
.github/workflows fix: fix review 2024-07-14 14:18:29 +08:00
.husky feat: init 2024-07-13 22:39:06 +08:00
src Fix #1 2025-03-29 11:20:11 +00:00
.editorconfig feat: init 2024-07-13 22:39:06 +08:00
.eslintignore feat: init 2024-07-13 22:39:06 +08:00
.eslintrc fix: fix review 2024-07-14 14:18:29 +08:00
.gitignore chore: update .gitignore 2024-07-16 10:50:58 +08:00
.npmrc feat: init 2024-07-13 22:39:06 +08:00
.prettierignore feat: init 2024-07-13 22:39:06 +08:00
.prettierrc feat: init 2024-07-13 22:39:06 +08:00
esbuild.config.mjs fix: cr 2024-07-16 10:28:27 +08:00
LICENSE feat: init 2024-07-13 22:39:06 +08:00
manifest.json fix: cr 2024-07-16 10:28:27 +08:00
package.json fix: cr 2024-07-16 10:28:27 +08:00
README.md Fix #1 2025-03-29 11:20:11 +00:00
tsconfig.json feat: init 2024-07-13 22:39:06 +08:00
version-bump.mjs feat: init 2024-07-13 22:39:06 +08:00
versions.json fix: cr 2024-07-16 10:28:27 +08:00

Obisdian Magic Move

Obsidian Magic Move is a Obsidian (https://obsidian.md) plugin for animating code blocks. It based on shiki-magic-move.

OMM Gif

Install

Method 1:

  1. Open Settings > community plugins
  2. Turn off Safe mode
  3. Click Browse button to browse plugins and search for Magic Move, or open this link obsidian://show-plugin?id=magic-move in your browser
  4. Click Install button
  5. After installed, go back community plugins window, and activate the newly installed plugin below installed plugins list

Method 2:

  1. Download the latest release
  2. Extract obsidian-magic-move folder from the zip to your vault's plugins folder <vault>/.obsidian/plugins/ (Note: .obsidian folder may be hidden, you need to show it firstly)
  3. Open Settings > community plugins, reload and activate the plugin below installed plugins list

Usage

  • working in Reading Mode
  • use ~~~magic-move to wrap multiple code blocks
  • or ~~~markdown:magic-move for syntax highlighting in editing mode
  • code block syntax is the same as you know
  • support code highlighting
~~~markdown:magic-move
```vue
import { defineComponent } from 'vue'

export default defineComponent({
  data: () => ({
    count: 1
  }),
  computed: {
    double() {
      return this.count * 2
    }
  },
})
```
```vue
import { ref, computed } from 'vue'

const count = ref(1)
const double = computed(() => count.value * 2)
```
~~~

Settings

You can set the duration, stagger, lineNumbers animation option and select any theme you like in the settings tab. All settings are effective immediately.

settings

TODO

  • mix Magic Move with line highlighting
  • living preview