Skip to main content

โž— Plugin - Calc

Evaluates mathematical expressions typed directly in InputBar and copies the result to the clipboard.

Keywords: calc ยท * (global โ€” active on every search) - Edit in Plugins.json

Supported operationsโ€‹

OperatorMeaningExample
+Addition12 + 8 โ†’ 20
-Subtraction100 - 37 โ†’ 63
*Multiplication6 * 7 โ†’ 42
/Division10 / 4 โ†’ 2.5
%Modulo17 % 5 โ†’ 2
^ or **Power2 ^ 10 โ†’ 1024
()Grouping(3 + 4) * 2 โ†’ 14

Decimal numbers and negative values are supported:

-5 * (3.14 + 1) โ†’ -20.7
2 ^ 32 โ†’ 4294967296

Resultโ€‹

When a valid expression is detected, the result appears at the top of the list as = <value>.
Pressing Enter copies the result to the clipboard.

Float results are rounded to 6 decimal places to avoid display noise.

Safetyโ€‹

Expressions are evaluated using Python's ast module โ€” no eval() call is made.
Only numeric constants and the operators listed above are permitted. Any other input is silently ignored by the plugin.