โ Plugin - Calc
Evaluates mathematical expressions typed directly in InputBar and copies the result to the clipboard.
Keywords:
calcยท*(global โ active on every search) - Edit inPlugins.json
Supported operationsโ
| Operator | Meaning | Example |
|---|---|---|
+ | Addition | 12 + 8 โ 20 |
- | Subtraction | 100 - 37 โ 63 |
* | Multiplication | 6 * 7 โ 42 |
/ | Division | 10 / 4 โ 2.5 |
% | Modulo | 17 % 5 โ 2 |
^ or ** | Power | 2 ^ 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.