Wilang Documentation1.0.0+4

Getting started#

A note is a vertical list of cells. A math cell runs through the math engine and shows a result. A Markdown cell holds prose. This page takes you from an empty note to your first results. For the language itself see Syntax and operators, and for every built-in name see All functions.

Your first note in 60 seconds#

  1. Create a note with New Note (Ctrl+N) and give it a title.
  2. In the first math cell, type 2 + 2 and press Enter. The result appears below and a fresh cell opens.
  3. Type radius = 3 and press Enter, then type pi * radius^2 and press Enter. The second cell reads the first. That top-to-bottom flow is how every note works.
  4. Press Ctrl+S to save. Autosave keeps you safe after that. See Workspace and notes.

Try it live. Change a below and the second result follows:

Example
a = 2
a * 3

Edits are temporary. Reset restores the example.

Cell types#

Cell Create it with Behavior
Math cell Enter, or Insert ▸ Expression Cell (Ctrl+M) Evaluated by the math engine, and the result appears below.
Markdown cell Insert ▸ Markdown Cell (Ctrl+Shift+N), or by starting a cell with # Rendered as styled text. Only {{ ... }} inline calculations read engine values.
Folder cell Insert ▸ Folder Cell (Ctrl+Shift+F) A grouping row. Its children are the cells indented beneath it.

A Markdown cell keeps its type when you delete the leading #. Toggle Math/Markdown (Ctrl+/) converts between the two content types. Folder cells never convert.

Folder cells are not Folders#

A folder cell groups cells inside one document. A library Folder classifies the note itself and appears in the explorer. Folders nest, and a note belongs to exactly one.

Deleting either one keeps the content it held: a folder cell promotes its children, and deleting a Folder promotes its child Folders and keeps their notes.

New folder cells are created at the document root. Insert ▸ Child Expression Cell (Ctrl+Shift+I) and Insert ▸ Child Markdown Cell (Ctrl+Alt+N) add a cell inside the focused folder cell.

Creating, deleting, and reordering#

Action Gesture
New cell after Enter in a math cell. Focus moves to the new cell.
New cell before Ctrl+Shift+Enter, in any cell.
Enter a folder cell Enter in its title moves into the first child, creating one if needed.
Leave a folder cell Ctrl+Enter in its title creates a cell below the folder, outside it.
Collapse / expand Activate the folder cell title or its disclosure control.
Split / merge Ctrl+Shift+- splits at the caret; Ctrl+Shift+Backspace merges with the cell above. Math and Markdown do not merge.
Delete a cell Backspace in an empty cell, or the cell's × action.
Select cells Tap a cell, then Shift+tap another to extend the range.
Delete selected Delete, or the bulk-action bar.
Reorder Drag the gutter handle up or down.
Copy / cut / paste Ctrl+C / Ctrl+X / Ctrl+V. A cell pastes as a snapshot; a plain string pastes as text at the caret.
Undo / redo Ctrl+Z / Ctrl+Shift+Z (⌘Y on macOS). Covers edits and structural changes.

Cell menus hold the same actions, plus duplication and per-cell options. Use Undo/Redo freely, because nothing here is destructive. See Editor navigation for selection and find and replace.

How evaluation works#

Enter in a math cell sends the expression to the engine. The result renders in one of several forms:

Result Shown as
A number, fraction, BigNumber, complex value, unit, boolean, string, or function Text, with a type chip when the type is worth naming
A matrix or vector A table
Typeset math (tex(...)) LaTeX
A plot (plot(...)) An interactive graph
An error Red text with a copy button

Cells read the assignments of the cells above them, so an input change marks dependent results stale until they refresh. Re-evaluate All Cells refreshes the whole note.

An assignment such as x = 5 is kept by the parser and is visible to every later cell in that note. Scope belongs to the note, not the app: another note starts empty, and the REPL has a separate scope. See Variables, globals and REPL.

Headings#

A cell starting with # followed by a space is Markdown, and the number of hashes sets the heading level: # is H1, ## is H2, ### is H3. A # without a following space stays ordinary text. For full prose syntax such as lists, tables, callouts, and formulas see Writing Markdown.

Result chips#

A scalar result carries a small chip naming its value type, so you can see at a glance whether 1/3 stayed a decimal or became an exact fraction. Five types get a chip:

complex · fraction · BigNumber · unit · function

Plain numbers, booleans, strings, matrices, and plots show no chip, because their appearance already says what they are.

Key shortcuts#

These are defaults. Show Keyboard Shortcuts (Ctrl+Shift+/) lists your current bindings and lets you rebind them. On macOS, read Ctrl as ⌘.

In a cell#

Key Action
Enter Evaluate and open a new cell below.
Shift+Enter Insert a line break without evaluating.
Enter on a // directive line Continue the directive instead of evaluating.
Enter in a fenced code block Insert a line break — a fence never submits.
Alt+Enter Evaluate and stay in the cell (math cells only).
Ctrl+Enter Open a new cell below. In Markdown, toggle a task item under the caret first.
Ctrl+Shift+Enter Open a new cell above.
Ctrl+Shift+- Split at the caret.
Ctrl+Shift+Backspace Merge with the cell above.
Ctrl+Shift+K Format the cell.
Ctrl+/ Convert between math and Markdown.
Alt+P Flip the Markdown preview.
Ctrl+B / Ctrl+I / Ctrl+K Bold / italic / link, in Markdown.
Backspace Delete the selection, or the whole cell once empty.
Ctrl+Z / Ctrl+Shift+Z Undo / redo.
Ctrl+C / Ctrl+X / Ctrl+V Copy / cut / paste the cell.
↑ / ↓ at the start / end of the line Move focus to the previous / next cell.

In command mode#

Esc leaves text editing and puts the cell in command mode, where a bare letter acts on cells instead of typing. Enter returns to editing. A modified chord acts on the selection; a bare letter acts on the command-focused cell.

Key Action
↑ / ↓ or J / K Move command focus through visible rows, skipping collapsed children.
Shift+↑ / Shift+↓ Extend the cell selection.
A / B Insert a cell above / below.
M / Y Convert to Markdown / to math.
X / C / V Cut / copy / paste.
D or Delete Delete the focused cell, or the selection.
Ctrl+D Duplicate the selection.
Ctrl+Shift+↑ / ↓ Move the cell up / down.
Ctrl+Shift+- Split the cell.
Ctrl+Shift+Backspace Merge with the cell above.
Ctrl+Shift+Enter Insert a cell above.
Alt+Enter Evaluate the cell.
Ctrl+Shift+K Format the cell.
Ctrl+/ Convert between math and Markdown.
Ctrl+Alt+, Open cell options.

With a plot focused#

? toggles the plot's own shortcut overlay. A focused plot owns its key scope, and Esc returns focus to the cell.

Elsewhere in the app#

Key Action
Ctrl+G / Ctrl+Shift+G Find next / previous match.

Persistence and session restore#

Cell contents are saved with the note, including folder structure, collapse state, and last results. An evaluation-only refresh does not mark the note dirty.

Reopening a saved note restores those cached results. Use Re-evaluate All Cells when you want current numbers. Importing a document is different from reopening a note, because imported expressions need fresh evaluation. See Import and export.

Next steps: Workspace and notes · Editor navigation · All functions