JLannoo / obsidian-runjs

An Obisidian.md plugin for running JS on your notes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obsidian RunJS

A plugin for Obsidian that allows you to run JavaScript code in your notes.

Very early in development.

Installation

  • (NOT YET AVAILABLE FROM COMMUNITY PLUGINS)

  • Manual Installation

  1. Download the manifest file from manifest.json and the main file from main.js.
  2. Create a folder in your vault's .obsidian/plugins folder called obsidian-runjs.
  3. Place the downloaded files in the folder.
  4. Reload Obsidian.
  5. Enable the plugin in the settings.

Usage

Running Code

  • Create a code block with the language set to js or javascript with your code inside.
  • In Preview Mode, on hover the block will have a Run button.
  • Click the button to run the code.

Todo

  • Add run command to the command palette.
  • Add run command to the context menu.
  • Add run button in edit mode.
  • Add import/export functionality.
  • Add settings.
  • Add toggle to hide code and show only as a button.

About

An Obisidian.md plugin for running JS on your notes


Languages

Language:JavaScript 54.4%Language:TypeScript 45.6%