Editing

Write where you read, or in the raw source, and save only when you choose

Click into a sentence and type, and your change is written back into the file at that exact spot. When you would rather see the raw text, the code view shows the file's source. Both write to the same file, and nothing is saved until you press Save.

The same document twice: on the left the rendered page mid-edit with a caret in a paragraph and the green Save button showing, on the right the same file in the code view as raw Markdown

  • Type in the page, with bold, links and tables kept as they are.
  • Rearrange blocks by dragging them, and add new ones from the margin.
  • Format highlighted words from a small bar over them.
  • Draw flowcharts and sequence diagrams instead of typing them.
  • Edit the source in a code view with colors and typing help.

Summary

You want toWhere
Type in the pageInline editing
Move or add a blockThe block gutter, Adding a block
Format wordsThe format bar
Leave a note on a passageComments
Draw a diagramThe flowchart editor
See the raw textCode view
SaveSave

See every detail of editing →

New document

Press New at the top of the library pane, and a blank document opens ready to type. Its first save asks where to put it.

See the details →

Writing in the page

Inline editing (the reading view)

Open the padlock, then click into any sentence and type. Paragraphs, headings, lists, tables and quotes edit in place with their styling intact. Enter splits a block, and a checkbox ticks with a click.

A block the page cannot write back exactly, such as a code block, opens its own source in place instead.

See the details →

Renaming from the heading

When a document has no title of its own, its heading is the file name. Press it to rename the file.

See the details →

Editing an email

A saved email edits where you read it: the subject, every header and the body's lines.

See the details →

Editing an HTML file

With the padlock open, type straight onto the words of a web page. The tags and styles stay as the file wrote them.

See the details →

The fields at the top of a note

A note's field block with the pointer on one row: nothing is painted behind the value and a small cross has appeared at the row's end, a checkbox is a real tick box, the tags are chips each with a cross and a plus after them, and an Add a field row sits under the last field

A note's fields, such as its status, date and tags, edit in a card above the title. A date opens a picker, and a tag is a chip you can add or remove.

See the details →

Deleting

Delete across several blocks at once, and the halves that are left join together. Ctrl+A (Cmd+A on a Mac) selects the block, then its section, then the whole page.

See the details →

The block gutter

One block lifted out of a document mid-drag, floating over the page while its neighbors slide together to close the gap it left

Point at a block, and a handle appears in the margin beside it. Drag the handle to move the block.

See the details →

Adding a block

The insert row fanned out over an empty line: a row of buttons for text, heading, list, quote, code block, table, image, flowchart, divider, framed figure, cards, badge and bars, each drawn with its own icon

The + on an empty line opens a row of blocks to add: text, a heading, a list, a table, a picture, a flowchart and more.

See the details →

Images

Paste a screen clip, or pick a picture file, and it lands on the line below. A pasted picture is saved in an imgs folder beside the note.

See the details →

Badges

A badge is a small colored label in a sentence. Pick its color, then type its words.

See the details →

Bars

A bar draws a number as a filled line, with its label beside it.

See the details →

Editing a table

Type in any cell, and only that cell changes. Drag a row or column by its grip, and right-click a cell to add, delete, align or sort.

See the details →

A table that adds itself up

A table in the page with its right-click menu open over the mug total; Math opens a submenu for row and column totals, calculations with cells, and picked ranges

Right-click a cell to make it a total or a calculation. Leaftext keeps the answer right as the numbers above it change, and the table stays plain Markdown.

See the details →

The format bar

Highlighted words with the format bar floating above them: bold, italic, strikethrough, code and link, the three button styles, then the text, bigger heading, smaller heading and quote buttons, badge, and copy, highlight, annotate and comment at the end

Highlight words, and a bar rises over them. It makes them bold, italic, code or a link, and turns a line into a heading or quote. Copy, highlight, annotate and comment work even on a locked page.

See the details →

Comments

A note with an open comment thread marked by a dot in the right margin beside its first paragraph, a plain marker beside a later one, and the Resolved list at the foot of the page holding that thread's quote, its two messages with their times and when it was resolved

Comment on highlighted words to start a thread. Reply, and resolve it when it is done. Threads are kept inside the note, so it stays a plain file.

See the details →

The padlock

Documents open locked, so a stray click never changes a file. The padlock on the floating toolbar opens the page for typing. The code view has its own padlock.

See the details →

Undo

Ctrl+Z takes back a word of typing, then the last edit. Ctrl+Y or Ctrl+Shift+Z brings it back.

See the details →

The flowchart editor

The flowchart editor open as a full-window sheet: the diagram on the canvas at left, the matching Mermaid text in the pane at right, and the Flow direction control along the top

Open a flowchart on a canvas beside its Mermaid text, and both stay in step as you work.

See the details →

Drawing

Drag from a box's + to add the next step. Click a box to rename it or change its shape.

See the details →

Which way it runs

A chart runs one way, set by the first box's handle you drag.

See the details →

Where the boxes go

Mermaid places the boxes. Dragging a box changes its order rather than its exact position.

See the details →

Export

Save the diagram on its own as Markdown, PNG, WebP, PDF or JPEG.

See the details →

What it can draw

Flowcharts, state diagrams, mind maps, timelines, boards and more open on the canvas. Charts such as pies and Gantt charts edit as rows beside a live picture.

The diagram sheet open on a user journey: the title field and the step rows beside the picture

See the details →

What it refuses

A diagram Mermaid cannot draw says why under the canvas.

See the details →

The sequence diagram editor

Press participants and messages to build a sequence diagram, with its text kept beside it.

See the details →

Working in the source

Source beside the page

Open the source beside the page, and both stay in step as you type.

See the details →

Code view

The code view showing a Markdown file as raw source: line numbers down the left, headings and list markers colored in the theme's own syntax colors, and the editor's minimap rail standing on the window chrome at the right

The code view shows a file's raw source, with line numbers and the theme's colors. Switch to it from the floating toolbar.

See the details →

Editing the source

Open the code view's own padlock, then type. Your place is kept when you switch views.

See the details →

Pinned headings

In a Markdown file, the heading you are under stays pinned at the top as you scroll.

The Markdown code view scrolled into a subsection, with two heading rows pinned at the top edge — the parent heading above the current one, each showing its own line number and syntax colors

See the details →

Typing help

The code view with a completion popup open after typing two square brackets, listing note names from the vault, and a wavy underline beneath a broken link higher up the file

Type [[ to pick a note name, or # for a heading. A broken link gets a wavy underline.

See the details →

YAML schemas

A YAML file named in your project's schema settings offers its field names as you type.

See the details →

Saving

Save

The green Save button appears with your first change. Press it, or Ctrl+S (Cmd+S on a Mac), to write the file.

See the details →

When the app cannot write it

If the disk refuses the write, a message says why, and your edits stay.

See the details →

External changes

When another app changes the file, Leaftext reloads it, unless you have unsaved edits.

See the details →

Formats

The code view over a deck names slide 2 above its XML, with its own words in the source

The code view edits every format Leaftext opens. What you can type in the page depends on the format, because a block is editable in place only when Leaftext knows its exact bytes.

See it format by format →

Editing data files

In JSON, YAML, INI and CSV files you edit values as source, never as drawn text. Where a value's place in the file cannot be proven, it stays read-only and says why.

See the details →

Next