Quick Preview

CoreBox provides built-in instant preview capabilities that automatically recognize and display preview cards as you type in the search box.

Feature List

Tuff includes 9 preview abilities covering calculations, conversions, time, colors, and more.

Advanced Expression Calculator

Examples: sqrt(16), sin(45), log(100), 2^10, 10% of 200

Supported functions:

  • Trigonometric: sin, cos, tan
  • Logarithmic: log, ln
  • Mathematical: sqrt, abs, round, ceil, floor, pow, exp
  • Constants: pi, e
  • Percentage syntax: X% of Y (calculates X% of Y), X + Y% (increases X by Y%)

Powered by mathjs with high-precision BigNumber support.


Basic Expression Calculator

Examples: 1+2, 100*3, (10+5)/3, 50%

Quick calculation for pure numbers and basic operators (+, -, *, /, %, ()). Lightweight mode without loading math libraries.


Unit Conversion

Examples: 10km to mi, 100kg to lb, 32f to c, 1gb to mb

Supported unit types:

CategoryUnit Examples
Lengthmm, cm, m, km, in, ft, mi
Massmg, g, kg, lb, oz, t
Volumeml, l, gal, cup
Databit, byte, kb, mb, gb, kib, mib, gib
Temperaturec(℃), f, k

Also supports Chinese unit names like 米, 千克, 公斤.


Scientific Constants

Examples: gravity, speed of light, planck constant, π

Built-in physics and mathematics constants library including:

  • Speed of light, gravitational acceleration
  • Planck constant, Boltzmann constant
  • Avogadro's number
  • Pi (π)

Displays constant value, unit, source (CODATA 2018), and aliases.


Color Parser

Examples: #ff5500, rgb(255, 100, 50), hsl(30, 100%, 50%), red, blue

Supported color formats:

  • HEX: #RGB, #RRGGBB, #RRGGBBAA
  • RGB/RGBA: rgb(r, g, b), rgba(r, g, b, a)
  • HSL/HSLA: hsl(h, s%, l%), hsla(h, s%, l%, a)
  • Named colors: red, blue, green, orange, etc.

Preview card shows color swatch and automatically converts between HEX, RGB, and HSL formats.


Time Calculator

Examples:

ScenarioInput Example
Time offsetnow + 2h, now - 30min
Natural languagetomorrow, yesterday, 3 days ago, in 2 weeks
Duration conversion90min, 2.5h, 180s
Date difference2024-12-31, 2024-01-01 - now

Supports multiple time units: seconds (s), minutes (m/min), hours (h/hr), days (d/day), weeks (w/week).


Currency Conversion

Examples: 100 usd to cny, $50 to eur, ¥1000 to jpy

Supported currencies:

CurrencyCodeSymbol
US DollarUSD$
Chinese YuanCNY¥ / ¥
EuroEUR
Japanese YenJPY-
Hong Kong DollarHKD-
British PoundGBP£
Korean WonKRW
BitcoinBTC
EthereumETHΞ

Note: Exchange rates are built-in reference values, not real-time data.


Percentage Calculator

Examples:

ScenarioInputResult
Increase100 + 20%120
Decrease100 - 15%85
Calculate20% of 500100
Percentage math30% + 20%50%

Text Statistics

Examples: len "Hello World", count "some text", words "hello"

Trigger keywords: words, chars, len, length, count

Statistics include:

  • Character count
  • Word count (split by whitespace)
  • Chinese character count
  • ASCII character count
  • Line count

Tips

  1. Direct input: No prefix needed, CoreBox automatically recognizes content type
  2. Copy result: Click on preview card to quickly copy the result
  3. Multiple results: Some abilities (like unit conversion) show multiple common conversions
  4. Real-time: All previews are calculated in real-time as you type