/obsidian-solve

Soulver for obsidian

Primary LanguageTypeScript

Obsidian Solve

A simple calculator like Solvr, Numbr or Numi.

This Obsidian Plugin adds a new code block type solve that will calculate all operations in the code block and display them in a right hand column.

Usage

Start a new code block using backticks "```" and write solve as the code block type, all values contained inside will be calculated when the code block is exited

obsidian-solve

Example


variable = 123
num = 8382
TOTAL


# Heading

100
100
TOTAL

---

# Second heading

239932 // This is a comment

20% of 138291


Variables

You can create variables and asign them values and reuse them inside very code block

Operators

Obsidian Solve allows the following operators

  • "+" Addition
  • "-" Substraction
  • "*" Multiplication
  • "/" Division
  • "%" Percentage
  • "TOTAL" Adds all of the preceding lines until there is a line break
  • "#" Heading
  • "---" Divider

Units

Obsidian Solve supports units when added to every line item

100 km
100 mi

License

Contributions

This plugin was created by Darius Lau its my first obsidian plugin, so issues will crop up, feel free to contribute and request PRs.