v0.108.0
Note
If you enjoyed this release, consider showing a token of appreciation by:
- Pressing the βStarβ button on GitHub (top-right).
- Considering a one-time or recurrent donation to the lead developer via GitHub Sponsors or PayPal.
Trilium can now be written in by hand. Handwriting notes, in beta, take a pen on a tablet or a drawing tablet, on ruled, grid or dotted paper, and can hold photos and PDFs to write over. OneNote pages with ink, RNote and Xournal++ documents are imported as handwriting notes.
Tablets get a new layout, with the note tree docked beside the note, the desktop's tabs and the right sidebar.
Links can now point at a heading or an anchor instead of a whole note, in text and Markdown notes as well as in PDF, EPUB, Word and OpenDocument files. The Outline tab lists the headings of those files too, with a filter and a way to copy a reference to any of them. Text notes gain collapsible headings, aside blocks and a scrollbar that marks search results and colored text.
Vim users can now bring their habits to text notes, with a Vim mode that understands paragraphs, lists, tables and embedded content. Trilium also starts noticeably faster, on desktop and on phones.
Android gets its first stable release, with its APK on the GitHub release. It syncs with a server of the same version and installs beside the nightly build, so moving from the nightly means syncing again or restoring a backup.
π‘ Key highlights
Handwriting notes (beta)
The new Handwriting note type is made for writing by hand with a pen, on a tablet or a drawing tablet. It stays responsive in notes holding a great deal of ink. It is in beta.
- Write on pages of ruled, grid or dotted paper, or on a canvas without bounds, with a pressure-sensitive pen, a highlighter and an eraser.
- Fingers pan and zoom while the pen writes, and a palm resting on the screen is ignored.
- Draw a line, a rectangle, a triangle, a circle or an arrow and hold the pen still at the end, and it becomes a clean shape.
- Add a photo or a screenshot, such as the exercise being worked on, and write over it.
- Add a PDF, such as the slides of a lecture, and write over its pages. A PDF note or attachment already in Trilium has Annotate by hand in its menu.
- Drag a note from the note tree onto the paper to show it in a box.
- Collections and text notes show a picture of the note's first page.
- A Canvas note used for writing by hand can be converted into a handwriting note, which keeps its freehand strokes, its text, its images and its shapes.
- Documents of RNote (.rnote) and Xournal++ (.xopp), on their own or in a ZIP archive, are imported as handwriting notes, with their pen strokes, images and typed text.
Collapsible headings
A heading in a text note can now be collapsed to hide the content under it, up to the next heading of the same or a higher level, which makes a long note easier to work through one section at a time. Click the arrow at the end of the heading, or press Ctrl+Alt+Enter with the cursor in it.
The collapsed state is saved with the note, and dragging a collapsed heading moves its section with it. Search in note, the table of contents and links to a heading still find the hidden content. See Collapsible headings for the details.
Vim mode in text notes
Code notes have had Vim key bindings for years, but text notes, where most of the writing in Trilium happens, had none. For anyone used to Vim, every text note meant putting that habit aside and going back to the mouse and the arrow keys. Vim users have asked for this since 2021, and now the time has finally come to make it real: text notes have a Vim mode of their own. It runs on the same Vim engine as code notes, so the commands work as they do there, and it understands the structure of rich text: a paragraph, a heading, a list item, a table cell and a line of code are each a line; an image, a diagram or an included note is one line that j and k stop on and dd deletes; and yanked text keeps its bold, links and colors when it is put back. Insert mode is the editor as it was, with its formatting shortcuts, slash commands and Markdown autoformatting.
Motions, operators, text objects, counts, repeating with ., registers, marks, macros, search and :s all work, inside included notes too. Trilium commands join them: :w saves the note, :q closes it, gf follows the link under the cursor, za folds a heading, list item or collapsible block, :sort sorts lines, :ck runs any editor command, and "+y copies to the system clipboard with the formatting. The status bar shows the mode, the keys of a pending command and macro recording, and :, / and ? open the command line in place of the breadcrumb. Zen mode keeps both.
Key hints help while you learn and stay quiet otherwise. Normal and Visual mode show their keys in the status bar, and a pause in the middle of a command shows the keys that can follow it. The command line completes command names with Tab, the search prompt tells how the pattern is read, and Alt+F1 or a click on the mode lists every key. Esc in Normal mode switches between the keys and the breadcrumb, and the Key hints option turns them off.
Turn it on in Options β Text Notes β Features β Vim mode, on each device where you want it. The Vim badge in the status bar, or a #vimMode label, turns it on or off for a single note, and startup commands set up mappings such as imap jk .
A faster start, on desktop and on phones
Trilium now starts noticeably faster. It shows the launch bar, the tabs and the note tree first, and loads the rest only once you use it. This applies to phones too.
The difference is largest on slower devices. Simulating a slower device on a 20 Mbit/s connection, a note is ready to edit in 2.5 s instead of 5.2 s on desktop, and in 2.3 s instead of 4.8 s on a phone. On a fast computer, it is ready about 30% sooner.
Link directly to headings within notes
When you create a link to a note, you can choose a heading so the link opens at that section. This works with text notes, Markdown, PDF, EPUB, ODT, and DOCX.
A layout made for tablets
On a tablet, in either orientation, the mobile version now lays the screen out like the desktop version:
- The note tree is docked beside the note. A button in the launch bar hides it, and its edge can be dragged to resize it.
- The tabs are in the desktop's tab bar, and the launch bar has the desktop's launchers.
- The right sidebar is available, in place of the phone's note panel.
- Dialogs are centered on the screen, with their list on the left.
π¨ Breaking changes
- For theme developers: the --background-material CSS variable no longer has an effect. Trilium now chooses the Mica or vibrancy backdrop itself, from the layout, and applies it only to the Next themes and to custom themes based on them with #appThemeBase. The setBackgroundMaterial() and setVibrancy() methods of window.electronApi.window were removed.
π Bugfixes
- Text editor: Clicking out of a link preview inside columns or tabs crashed the editor.
- 0.108.0-rc1: Missing some texts for JavaScript notes by @harrismalik
- The application freezes when opening the backend log.
- Backlinks for block reference links miss context by @tioannidis
- Attribute changes in the status bar popup are not saved (0.108.0-rc.1 regression)
Text editor (18)
- Typing /2 to /4 in the slash command menu suggested the column layout before the heading of that level.
- Opening a note whose included notes include further notes, such as a journal built from templates, could freeze Trilium, as every level of includes rendered in full.
- With a larger interface font size, "Heading 3" in the heading dropdown was smaller than the other headings.
- Typing /page in the slash command menu suggested creating a child note before the page break.
- The rows of a table scrolling under its sticky header rows showed through the header's top and bottom borders, and at display scales such as 125% or 150% the header's column dividers were drawn twice.
- A Heading 1 in pasted text or in an existing note turned into a normal paragraph once the note was edited, and the table of contents listed it only in read-only mode.
- Dragging text from a note onto its title deleted the text instead of moving it, and crashed the editor in Firefox.
- Link previews disappeared from copied content.
- Dragging a link preview by its content dropped a plain link instead of moving the preview.
- The Up and Down arrow keys skipped lines holding only a link preview.
- A link to an included note that showed as a link did not scroll to it, in text notes and on shared pages.
- A note whose only content was a referenced empty paragraph or horizontal line was saved empty.
- The note list opened by typing @ stayed on screen after switching to another tab with the mouse.
- In Firefox, selecting text by dragging past the edge of a note did not scroll the note.
- In Firefox, selecting a link preview from right to left also selected the rest of the note.
- On an iPad in Safari, the on-screen keyboard covered the formatting toolbar of a text note.
- Typing
` opened an extended code block with the backticks inside, a new block needed a click before it took typing, Enter never left the block, and Backspace did not turn an empty block back into a paragraph. by @gongfpp
- With two text notes side by side, clicking the empty space below one of them placed the cursor at the end of the other one. by @N1KHL
Search (3)
- Searching for an empty quoted phrase ("") failed with an error, and a != search that included the flat text of attributes returned notes whose content contained the excluded word.
- Searching in Korean found the right notes but highlighted nothing in their titles and content, and Jump to showed no matched attribute.
- The matched attributes on search result cards had no outline, so their shaded name ended in a corner with nothing around the value.
General (9)