mirror of
https://github.com/imfenghuang/obsidian-magic-move.git
synced 2026-07-22 10:40:24 +00:00
No description
|
|
||
|---|---|---|
| .github/workflows | ||
| .husky | ||
| src | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .npmrc | ||
| .prettierignore | ||
| .prettierrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| manifest.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
Obisdian Magic Move
Obsidian Magic Move is a Obsidian (https://obsidian.md) plugin for animating code blocks. It based on shiki-magic-move.
Install
Method 1:
- Open Settings > community plugins
- Turn off
Safe mode - Click
Browsebutton to browse plugins and search forMagic Move, or open this linkobsidian://show-plugin?id=magic-movein your browser - Click
Installbutton - After installed, go back community plugins window, and activate the newly installed plugin below installed plugins list
Method 2:
- Download the latest release
- Extract
obsidian-magic-movefolder from the zip to your vault's plugins folder<vault>/.obsidian/plugins/(Note:.obsidianfolder may be hidden, you need to show it firstly) - 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.
TODO
- mix Magic Move with line highlighting
- living preview