Writing notes
Ways to edit
Switch with the view-mode button, the first button of the top bar (on the reading page and in the editor). It shows only the icon of the mode you are in; press it for the list.
- Live Preview: formatting appears as you type. Only the line with the cursor shows the Markdown signs.
- Source: edit the Markdown text itself.
- Split: the Markdown text on one side and how it looks on the other (one above the other on a narrow screen).
- View: read only, no editing.
The mode a note opens in can be set in Preferences (Editor).
Formatting
| You type | You get |
|---|---|
# Heading, ## Subheading |
headings |
**bold**, *italic* |
bold, italic |
==highlight== |
highlighter |
- item, 1. item |
lists |
- [ ] task |
a checklist |
> quote |
a quotation |
`code` |
inline code |
The buttons on the formatting bar insert the same things. For text and background colours, select the text first and then use the colour buttons.
A code block starts with ```language and ends with ```.
Tables
Choose a size with the table button to insert a table. In Live Preview you click a cell to edit it, add or remove rows and columns, and colour cells. The look of tables (grid, striped...) is chosen in Preferences > Appearance. On a touch screen, drag a finger over the grid to choose the size; lifting it inserts the table (with a mouse you still point and click).
Width of columns and height of rows
In Live Preview a column can have a width and a row a height. A width is both the least and the most of the column, so the text of its cells wraps inside it. A height is the least of the row (a row with more text is taller). Columns and rows you leave alone follow their text. The sizes show the same in the reading view and on published and shared pages.
Choosing cells (a block)
- One cell: put the cursor in it and press F5 once.
- Growing the block: press F5 twice, then use the arrow keys (↑ ↓ ← →). Shift+arrow keys do the same.
- The whole table: press F5 three times in a row. A fourth press starts again with one cell.
- The whole row: F5, then F8. The whole column: F5, then F7.
- With the mouse: drag from one cell to another, or click a cell and Shift+click the last one. Clicking the grip (⋮⋮) of a row or column selects it.
Changing the sizes
- Ctrl + ↓ / ↑ moves the line under the row (changing its height), Ctrl + → / ← the line right of the column (changing its width), 10 px at a time (for a block: under its last row, right of its last column). The next row or column changes the other way, so the table keeps its size. The last row or column has no next one: only it changes, and the whole table gets higher or lower (wider or narrower).
- H (with a block of cells chosen, by F5, the mouse or Shift+click) gives the chosen rows the height of the highest of them, W gives the chosen columns the same width (the average of what they have).
- With the mouse: put the pointer on a line between cells until it turns into an arrow, and drag. Only the row above or the column left of the line changes. A double-click on the line makes it automatic again.
- Exact numbers: choose a cell or a block, and type the Width and Height in px in the bar above the table (empty: automatic). A width is 40 to 1600 px, a height 24 to 1200 px.
The sizes are saved in the note as a comment under the table, for example <!-- table-size: w=120,,240; h=,48 --> (the widths of the columns, then the heights of the rows, the header first; an empty place is automatic). Other programs show the table without sizes and do not show the comment.
Links
- Note links: type
[[and a list of note names appears.[[Note name|shown text]]changes the text that is shown, and[[Note name#Heading]]jumps to that heading. - Web links:
[text](https://...)or Ctrl+K. In Live Preview a click opens the link; in Source hold Ctrl (Cmd on Mac) and click. - Link cards: the link-card button inserts the title, description and image of a web page as a card.
- Media player: the round play-icon button turns an audio or video link into a
media-playercode block. Select the link (a YouTube or Vimeo address, or a file of the vault like[[talk.mp3]]) and press it to get the player at once; press it with nothing selected and a dialog with an explanation asks for it. In Live Preview, the icon at the top right of a link card opens its link in a new tab.
Images and files
Paste an image or PDF, drop it onto the editor, or use the paperclip (attach a file) button. The file is stored in the attachments folder of your vault and inserted as ![[file name.png]]. The drawing-pad button lets you sketch a picture and insert it.
Other files can be attached the same way: Office documents, text and source files (txt, csv, c, java...), zip files, programs and more. They show in the note as a 📎 file name link and are downloaded when clicked; the browser only saves them and never opens them. Files that a server or a browser could run (php, asp, jsp, sh, py, html, js, xml and the like), and files whose content is not what their name says, cannot be uploaded. Check that a downloaded file comes from a safe place before you open it.
A file whose name holds [, ], #, ^ or | cannot sit between [[ ]], so the editor links it as  instead; it looks and works the same.
Attachments that no note uses are removed automatically after a while (7 days by default).
Pictures from an address, and their size
- The picture button shows a picture from a web address: give an address that starts with
https://. The note shows the picture from there; it is not copied into your vault (the paperclip button, a paste or a drop is what copies a file into it). - With an address selected, the picture, video and link-card buttons use the selected text as the address: no question is asked, and the address is replaced by the picture, the video or the card. With nothing selected (or text that is no fitting address), a box asks for the address.
- Double-click a picture in Live Preview to change its size: drag the grip at its corner, and press Original size to undo. Escape or a click elsewhere finishes. The size is written in the picture itself:
![[photo.png|300]](300 px wide),![[photo.png|a caption|300]]or. Reading, published and shared pages show the same size. - Left, center or right: while a picture is being resized, the three alignment buttons beside its size set where it stands in its line. It is written in the picture too:
![[photo.png|center|300]],![[photo.png|a caption|right|300]]or(leftis the default and is not written). It works for a picture alone on its line; in Obsidian the extra word only shows as part of the caption.
Videos
The video button takes the address of a YouTube or Vimeo video and plays it inside the note. Only these two sites are embedded; any other address stays an ordinary link.
Video files (mp4, m4v, mov, ogv) can be attached like any file and play in the note with the browser's controls.
Image viewer
Click a picture in a note to see it large. The arrows (or the keys, or a swipe) go to the previous and the next picture or video of the note. Buttons at the bottom:
- Slide show: a picture stays for the seconds you choose, a video file plays to its end (a YouTube or Vimeo video stays for the chosen seconds, or until it ends).
- Random order, thumbnails, full screen (then only the keys work) and information (name, size, and for a photo the camera, lens, shutter speed, date taken and so on, read from the picture).
- A filter shows all, only images or only videos.
To see every picture and video of a note or a whole folder, right-click it in the file list and choose Image viewer.
Voice recording
The microphone button opens the voice recorder (the browser asks for permission the first time; the site must be opened over HTTPS). Press Start recording, then Stop, listen to it, and press Add to the note: the recording is saved as an audio attachment and a player is inserted into the note. Record again throws the take away. Audio files (webm, ogg, m4a, mp3, wav) can also be added like any other attachment.
Players with tags
A code block marked audio-player (or media-player) is a player whose tags jump to a place of a recording or a video. The first line says what is played; every other line is a tag: a time, ---, and what is there.
```audio-player
[[interview.mp3]]
00:00:44 --- the question
00:01:50 --- the answer
```
- What is played: a recording or a video file of the vault (
[[interview.mp3]],[[clip.mp4]]), or the address of a YouTube or Vimeo video. Nothing is loaded from the video site before you press play. A block with nothing to play stays an ordinary code block. - The player: a recording shows its waveform; click it to go there. The buttons go back or forward 10 seconds, and play or pause. A video file keeps the browser's own controls, and a video of YouTube or Vimeo its own player; the 10 second buttons work for them too.
- Speed: the buttons 0.5×, 0.75×, 1×, 1.25×, 1.5× and 2× set how fast it plays, and the choice is remembered. (On a published page a video of YouTube or Vimeo starts again from the chosen place, and its speed cannot be changed.)
- Tags: press a tag to go to its place and play from there; the tag being played is marked. Press Tag to add one at the place being played, or double-click the waveform of a recording to add one at that place. Type what is there and press Enter. The tags stay in time order in the text of the block, and the × at the right of a tag removes it. The sound goes on playing while tags are added or removed.
- Where tags can be changed: in Live Preview and on the reading page. On published and shared pages the tags only jump.
- Only one player plays at a time: starting another one pauses the first. The waveform is drawn for recordings up to 25 MB; a longer file has a plain bar.
Diagrams written as text (Mermaid)
The Diagram button of the editor toolbar offers templates (flowchart, sequence diagram, state diagram, ERD, colored flowchart, class diagram, Gantt chart, pie chart, mind map) and puts the one you choose in as a mermaid code block. In Live Preview the block is shown as a picture until the cursor enters it; then its text shows and you can change it. The reading page and the published and shared pages draw it too, in colors that fit a dark theme when one is used. A text that cannot be read shows a message and the text itself, never an error page.
Drawings with Excalidraw
The Drawing button opens Excalidraw. Draw with shapes, arrows and handwriting-style text, then press Insert the drawing and it goes into the note as an image (PNG). The image carries the drawing's own data, so in Live Preview the Edit the drawing (pencil) button on the picture opens it again for changes (press Update the drawing when done). The fill colors and the ground are saved as you saw them in the pad, and a drawing made in the dark theme has a dark ground. For a quick scribble use the Drawing pad button.
Calculations
Write a simple calculation as ${...} and it is shown as its result: ${(4+2)*3/2} is shown as 9. What cannot be worked out (a division by zero, a name that is not known) is shown as written. Code and \${ are left alone. You can use + - * / ^, brackets, percent (25%), joining text (&) and comparisons (= <> < > <= >=).
In a table the cells are named as in a spreadsheet: the columns are A, B, ... Z, AA, AB ... from the left, the rows are 1, 2, 3 ... from the top line (the header). So B3 is the second column of the third line, and A1:A10 is a range.
| Name | Score | Result |
|---|---|---|
| Ann | 90 | ${IF(B2>=80, "pass", "fail")} |
| Bob | 70 | ${IF(B3>=80, "pass", "fail")} |
| Sum | ${SUM(B2:B3)} | ${COUNTIF(C2:C3, "pass")} passed |
The functions: a cell may use the result of another cell (calculations that use each other are shown as written).
- Totals:
SUM,AVERAGE,COUNT(cells with a number),COUNTA(cells that are not empty),MAX,MIN - Conditions and logic:
IF(test, if true, if false),SUMIF(range, test, range to add),COUNTIF(range, test),AND,OR,NOT. A test is written like"A"or">=10", and*and?may be used. - Text:
LEFT,RIGHT,MID,TRIM - Numbers:
ROUND,ROUNDUP,ROUNDDOWN,TRUNC(cuts off what is below the digit),INT(rounds down to the smaller whole number, which differs fromROUNDDOWNfor a negative number) - Dates:
TODAY(),NOW()
Formulas
Write formulas in TeX, as in Obsidian: one $ on each side inside a sentence, two $$ on each side for a formula on lines of its own.
Euler's formula is $e^{2i\pi} = 1$.
$$
\int_0^\infty e^{-x}\,dx = 1
$$
The Σ button of the toolbar writes an inline or a block formula for you, and common pieces such as fractions, roots, sums, integrals and matrices. In Live Preview the formula is drawn while the cursor is outside it, and its TeX shows when the cursor enters it.
Text with only dollar signs, such as $5 and $10, is not read as a formula. To write a dollar sign as a letter, write \$. A $ in code is not a formula either. Formulas are drawn on the signed-in pages; published and shared pages show the TeX as written. Inside a table cell, write a vertical bar of a formula as \vert, not |.
Emoticons
The smiley button in the toolbar opens the character emoticons. Pick one and a code such as :apple-03: is written into the text; the reading view and Live preview show it as a picture. Choose the size (default size, x2 to x5) at the top of the list before picking; the larger ones are written as :apple-03@2: to :apple-03@5:, and the list then shows the pictures at that size. You can also type the code yourself. With the cursor on a picture the code shows again, so it can be edited or deleted.
Tying words to a place or a day
Select particular words of the text and press the pin button of the toolbar to tie them to a place on the map or a day on the calendar. The tied words get numbers that make up a route on the map. How it works is in 02 Finding and Organising.
Quotes, callouts and footnotes
A line that starts with > is a quote; it is drawn with a vertical line before the text.
A quote whose first line is [!type] Title is a callout, a coloured box with an icon and a title:
> [!warning] Be careful
> The text of the callout. It can have **formatting** and several paragraphs.
The types are note, abstract (summary, tldr), info, todo, tip (hint, important), success (check, done), question (help, faq), warning (caution, attention), failure (fail, missing), danger (error), bug, example and quote (cite). Another word is allowed too; it looks like a note. Without a title the type is the title. Write - after the bracket ([!note]- Title) for a callout that starts folded and + ([!note]+ Title) for one that can be folded but starts open; click its title to fold it. Callouts can be put inside each other.
A footnote is text[^1] with [^1]: the note written anywhere in the note: the number is raised in the text and the notes are listed at the end. A note can also be written in place: text^[the note].
Folding the parts under headings
An arrow before a heading (#, ##, ...) folds everything under it, up to the next heading of the same or a higher level; click it again to open. In source mode the arrows are in the margin, and Ctrl+Shift+[ and Ctrl+Shift+] fold and open the part at the cursor. Published and shared pages fold the same way.
Two notes side by side
The button with two columns in the toolbar (or **Ctrl+**) splits the editor: a second note opens beside the first one, each with its own cursor, mode and saving. Choose the note in the box that appears, or right-click a note in the sidebar, or a tab, and choose Open to the side. The arrows at the top of the second side swap the two notes, put the second one under the first instead of beside it, or close the split (the note of the second side then takes the place of the first one); drag the line between them to change the sizes. The split is remembered in this browser. A note cannot be open on both sides at once.
Editing in several places at once
- Alt+click adds a cursor; Ctrl+Alt+Up / Down adds one on the line above or below.
- Shift+Alt+drag selects a vertical block of text. Shift+Alt+click somewhere else selects the block from the cursor to that place, and clicking again changes its size. Everything typed goes to every line of the block; Shift+Left / Right widens it; Esc goes back to one cursor.
- Ctrl+F opens find and replace at the top right of the editor: it finds as you type, the three switches in the field are match case (Alt+C), whole word (Alt+W) and regular expression (Alt+R), and the arrow on the left (or Ctrl+H) opens the replace row.
On a Mac, Alt is the Option key.
Banner and icon
A note can have a picture across its top (the banner) and a small picture beside its title (the icon). Double-click the banner or the icon in Live Preview, or press the Banner and icon button of the toolbar, to open the dialog.
- Choose a ready-made sample, a picture of the gallery, or give the address of a picture of your own (a web address, or
[[picture.png]]of your vault). - Drag on the preview to choose the part of the picture that is shown, and use Zoom to enlarge it. Show the middle puts it back and Remove takes the picture away.
- Credit: when the picture needs one (many photo sites ask for it), paste its credit text in the box under the address, for example the "Copy credit" text of Unsplash. It shows small and faint at the top right of the banner (on the reading page and on published pages), and as a tooltip when the pointer is over the icon. Choosing another picture takes the credit away, because it belongs to the old one.
- The dialog only writes the properties
banner,banner-position,banner-zoom,banner-credit,icon,icon-position,icon-zoomandicon-creditat the top of the note, so you can also write them by hand. In a credit a link is written[name](https://address). - The gallery holds pictures that an administrator added in Admin > Gallery (one list for banners, one for icons). They are the same for everyone, come after the samples, and also show on published and shared pages. If an administrator deletes a picture, the notes that used it no longer show it. Where a picture comes from (for example the photographer on Unsplash) is listed under Help > Copyright notices, and shows when you hold the pointer over the picture in the dialog.
The title of a note
A new note starts with a title (the title property) that is the name of its file; it is shown big at the top of the note in Live Preview, and the cursor waits below it.
- Click the title to change it; Enter or leaving the box keeps it, Escape puts the old one back. A title taken away goes back to the file name.
- The title and the file name are separate: they are the same at first, and changing one later does not change the other. The file is renamed in the Files panel.
The width of a note
The width of the text is set in Preferences > Appearance: limited (comfortable to read), full (the whole screen) or custom, a number of pixels (320 to 3000). A note can have its own width: add the property width, for example width: 1200 (pixels), width: full or width: limited. It is used when the note is read or edited, and on its published and shared page, banner included. A note without the property follows the setting; a published page uses the setting of its owner.
Saving
Save with Ctrl+S or wait for autosave (you can turn it off in Preferences > Editor). The editor shows Saving..., Saved or Unsaved. A note open on two devices (the PC and then your phone, say) keeps in step by itself: every few seconds, and when you come back to the window, the editor looks at the saved note. If the other device saved something and you have typed nothing since, its text appears at once, with the cursor where it was. If you typed too, the two are joined line by line when you changed different places. Only when you both changed the same part are you asked which to keep: Keep mine, Use the other version, Keep both and mark the differences (the two versions are written one after the other between <<<<<<<, ======= and >>>>>>> lines for you to tidy up) or Decide later. A save that fails (the connection was lost, say) is tried again by itself after a few seconds. So neither version is lost silently.
Your vault has a storage limit; when it is full, notes cannot be saved. Your usage is shown on the profile page.