Quick Calculator

unlisted

by JPHsystems

Open a quick calculator — launches your system calculator on desktop or a built-in scientific calculator modal everywhere.

Updated 1mo agoMIT
View on GitHub

Version License Obsidian Platform No eval Parser

Quick Calculator — Obsidian Plugin


✨ Features

🖥️ System launcherOne-click to open macOS Calculator.app, Windows calc.exe, or your Linux calculator
📱 Built-in scientificFully functional calculator modal — works on iOS, Android, and desktop
📌 Dockable panelPersistent side panel on desktop — stays visible as you work
🔬 Scientific modesin · cos · tan · log · ln · √ · x² · xʸ · π · e · n! · abs · floor · ceil · round
📐 DEG / RAD toggleSwitch angle units for trigonometry — one tap
🔄 Basic & ScientificToggle modes with the button or ⌘/Ctrl+M
💯 Percentage100+21% = 121 — real calculator percentage logic
🧠 MemoryMC · MR · M+ · M— — persists across Obsidian restarts
📜 HistoryLast 20 calculations — tap any to reuse
📝 Insert into noteWrite expression = result into the active Markdown note + copies to clipboard
📋 Copy LaTeXCopy as MathJax-ready LaTeX — paste into any note for rendered math
👁️ Live LaTeX previewSee the LaTeX equivalent as you type
⌨️ Full keyboard supportType expressions — no mouse needed
🌗 Theme-awareRespects Obsidian light and dark themes
🛡️ Safe parserRecursive-descent — no eval(), passes community plugin review

🚀 Usage

Opening the calculator

ActionHow
Side panel⌘/Ctrl+POpen calculator panel (docks in right sidebar)
Floating modal⌘/Ctrl+POpen quick calculator (modal)
System calc⌘/Ctrl+POpen system calculator
Ribbon iconClick 🧮 in the left sidebar (configurable in settings)

Keyboard shortcuts inside the calculator

KeyAction
09Digits
.Decimal point
+ - * / % ^Operators
( )Parentheses
Enter / =Evaluate
BackspaceDelete
CClear
⌘/Ctrl+MToggle Basic / Scientific
EscapeClose

Header buttons

ButtonWhat it does
Basic▾ / Sci▾Toggle between Basic and Scientific modes
DEG / RADSwitch angle units (Scientific mode only)
📝Insert expression = result into active note + copy to clipboard
📋Copy expression as LaTeX to clipboard
⚙️Open plugin settings
Open calculation history
Close the calculator

On mobile 📱

  • Tap buttons like a regular calculator
  • Or tap the text input field above the grid to type with the keyboard
  • Press Enter to evaluate and dismiss the keyboard
  • Full-width layout optimized for phone screens

💯 Percentage calculations

The % operator works like a real calculator:

You typeResultHow it works
100+21%121100 + (21% of 100)
100−21%79100 − (21% of 100)
50×10%510% of 50
200÷10%2000200 ÷ 0.10
21%0.21Standalone percentage
10%31Modulo — not treated as percentage

🎨 LaTeX export

Click 📋 to copy your expression as a MathJax-ready formula:

You typeCopied LaTeX
sin(45) + sqrt(16)$\sin(45) + \sqrt{16}$
pi * e^2$\pi \times e^{2}$
log(100) + ln(e)$\log_{10}(100) + \ln(e)$
tan(30) + cos(60)$\tan(30) + \cos(60)$

Paste into any Obsidian note — MathJax renders it beautifully.


⚙️ Settings

SettingDescriptionDefault
Ribbon icon actionSystem calculator, modal, or side panelOpen system calculator
Insert templateFormat for 📝 insert. Uses {{expression}} and {{result}}`{{expression}}` = **{{result}}**

Template examples

# Default
`sin(45)` = **0.7071**

# Pure LaTeX
$sin(45)$ = 0.7071

# Plain text
sin(45) = 0.7071

🖥️ Platform support

PlatformSystem CalculatorIn-App Calculator
🍎 macOS✅ Calculator.app
🪟 Windows✅ calc.exe
🐧 Linux✅ gnome-calculator / kcalc / qalculate-gtk / xcalc
📱 iOS
🤖 Android

📦 Installation

Community Plugin Store (recommended)

  1. Open Obsidian → Settings → Community plugins
  2. Click Browse and search for Quick Calculator
  3. Install and enable

BRAT (beta)

  1. Install the BRAT plugin
  2. Add this repository: https://github.com/jphermans/obsidian-quick-calculator

Manual

  1. Download main.js, manifest.json, and styles.css from the latest release
  2. Copy into <Vault>/.obsidian/plugins/quick-calculator/
  3. Enable in Settings → Community plugins

🔧 Building from source

git clone https://github.com/jphermans/obsidian-quick-calculator
cd obsidian-quick-calculator
npm install
npm run build   # production build
npm run dev     # watch mode — rebuilds on save

🤝 Contributing

Pull requests welcome! Open an issue.

  • Build passes: npm run build (zero errors)
  • No eval(), new Function(), or innerHTML usage
  • Works on both desktop and mobile
  • Theme-aware (test light + dark)

📄 License

MIT © 2026 JPHsystems

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.