Wilang Documentation1.0.0+4

Editor navigation and selection#

Editing mode and command mode#

Click or tap a cell to edit its source. Esc leaves text editing and enters cell command mode, where a bare letter acts on cells instead of typing. Enter returns to editing. Arrows or J/K move between visible cells, and A/B, M/Y, C/X/V, and D act on cells. The shortcut table lists all of them.

Three states decide what a keystroke does, and they are easy to confuse:

Move the caret, move between cells#

Inside a multiline cell, Up and Down move between its lines first. At the first or last line they hand focus to the previous or next visible cell, and Left and Right do the same at the start and end of the source. An active text selection wins over crossing a cell boundary.

Command navigation skips the children of a collapsed folder cell, so expand it first. Arrow navigation still works in a read-only note, but inserting, deleting, formatting, and anything that would re-evaluate is disabled there.

Completion popups and focused plots take their own keys. Esc closes completion, and from a focused plot it returns focus toward the editor. In a Markdown cell the preview is a different surface from the source, so return to the source to place a caret.

Select cells#

Tap a row's selection control, then Shift+tap another row to extend a range. In command mode Shift+Up and Shift+Down do the same. On touch, the row controls and the bulk-action bar cover the same actions.

A text selection copies as text. A cell selection supports Copy, Cut, and Paste as snapshots that keep cell source and structure; ordinary clipboard text pastes at the caret when there is no snapshot. Select All follows the active context, so leave text editing to select cells.

With a collapsed caret and no text selected, the platform Copy chord copies the cell's current result instead of nothing: the result serializer renders it fresh, so the clipboard always holds a usable value. Blocked, stale, and absent results never copy — fix the cell first, then copy. Duplicating cells is Ctrl+D (Cmd+D on macOS): the copies get fresh identities with the same source and settings, evaluation state starts clean, and Undo removes them.

Duplicate Cells, Delete Selected Cell(s), and the reorder actions apply to the selection. Drag a gutter handle to move a cell. Splitting uses the caret, and merging combines adjacent compatible cells, but math never merges with Markdown.

Undo covers structural changes as well as text edits. After a deletion, the selection lands on a neighbouring visible row.

Folder cells inside a note#

Insert → Folder Cell (Ctrl+Shift+F) adds a grouping row. Look for it as Insert Section in the command palette and menus, which is the same action under its command name. Insert Child Expression Cell (Ctrl+Shift+I) and Insert Child Markdown Cell (Ctrl+Alt+N) add a cell inside the focused folder cell. Enter in a folder cell title moves into its children, and Ctrl+Enter there creates a cell outside it.

Drag a cell onto a folder to nest it. The drop position decides whether it lands inside or beside, and a folder cell cannot move into its own descendants. Deleting one promotes its children instead of deleting their content. New folder cells are created at the note root; older nested ones stay readable and movable.

The View menu's Collapse Focused Folder, Expand Focused Folder, Collapse All Folders, and Expand All Folders act on these document folder cells.

Outline and heading jumps#

The note header's Outline lists Markdown headings nested by level, and jumps to the one you choose. A note with no headings has an empty outline.

Go to Location#

The Go to Location palette and the source-editor position readout are no longer part of the app. The implementation is kept on the feat/go-to-location branch, and the position readout is still on the roadmap as a planned capability.

Use the Outline above to jump between headings, and Find and replace below to move between matches.

Find and replace#

Ctrl+F in an open editor opens find. Step through matches with Find Next (Ctrl+G) and Find Previous (Ctrl+Shift+G), or use the bar's own controls. From the library, Ctrl+F searches notes instead.

The bar offers case-sensitive, whole-word, and regular-expression matching. Expand Replace to swap one match or all of them. A read-only note rejects changes.

A broken regular expression finds nothing useful, so simplify the pattern and retry. Find matches cell source, not displayed results, which means a hit inside collapsed content may need expanding first.

Inspector and evaluation#

Show Inspector (Ctrl+Shift+]) lists locals beside System and Globals. Show Explorer Sidebar is Ctrl+Shift+[. With a cell selected, Cell Math Options… overrides that cell's math settings.

Evaluate Cell keeps you in the cell. Re-evaluate All Cells (Ctrl+Shift+R) refreshes the document. Format Cell and Format Document change source formatting, so evaluating and formatting are separate actions.

Cell action names#

The palette and menus use these command names for the actions above. If you can do it to a cell, you can find it by searching the palette (Ctrl+J):

Command What it does
Insert Expression Cell Add a cell for calculations
Insert Markdown Cell Add a cell for written content
Submit Cell and Advance Submit the cell and move on
Insert Cell Before Insert above the focused cell
Toggle Math/Markdown Switch the focused cell's type
Split Cell Split the source at the caret
Merge with Cell Above Combine compatible adjacent cells
Reorder Cell Up / Reorder Cell Down Move the focused cell earlier / later
Delete Cell Remove the focused cell
Redo Reapply an action undone with Undo

Splitting and merging need an editable cell.

Next steps: Getting started · Variables, globals and REPL