Repository navigation
v0.2.2
Inline link mentions with a favicon, title and hover card, table rows and columns added and removed anywhere in the editor, find highlights and scroll-to-range in markdown, text ink on the brand, a terminal content inset and output batch, a WebView that follows its window, and macOS's selection colour.
New
- A
Mark::Mentionpaints as a favicon, the preview's label in muted text when it has a title, and the underlined title, or the host when nothing has resolved it; hovering it shows its bookmark card with the picture on top.markdown::Flatcarriesmentionsandshown, which maps offsets between theTextand what it shows. markdown::Annotation::MatchandAnnotation::Currentpaint find hits.BlockLayouts::revealscrolls a document until the start of a range shows, over the next few frames, throughEditing::scroll.markdown::Editing::imagetakes anOnImage, called with the block whose picture was clicked; a press and release more than a couple of pixels apart is a drag and calls nothing.selectable::render_withisselectable::renderwith anEditing.theme::Brand::inksets the alpha oftext,text_mutedandtext_faintover white in dark and black in light.Ink::APPKIT, AppKit's label colours, is the default;Ink::ACCESSIBLEholds text and muted at 4.5:1 and faint at 3:1 onbgandsurface.terminal::OutputBatchgroups PTY output into one feed perOUTPUT_BATCH_MSwindow, handing held bytes back early atOUTPUT_BATCH_LIMIT.TerminalView::with_content_insetinsets the grid from the element's bounds.Buttons::tinted_icon_buttonis an icon button's square with its glyph in a given colour and no hover.Theme::drop_lineis the colour of the line where a dragged block would land in the editor.- The slash menu shows the quote variants behind one "Quote" row with no query typed; → or Enter opens it and ← closes it. A query still lists every block flat.
- The editor grows and shrinks tables:
+strips along a table's right and bottom edges add a column and a row, and handles on its left and top edges at the hovered cell open insert-before, insert-after and delete for that row or column. Tab and Shift-Tab walk cells, with Tab past the last one adding a row, and Enter goes down a row.Doc::insert_row,insert_column,remove_rowandremove_column,Editor::add_row,add_column,remove_rowandremove_column, andBlockLayouts::cell_boundsandcell_atare the pieces.
Changed
- A mention is atomic: a caret sits at either end and never inside, arrow and word motions step over it, Backspace at its end removes it whole, and text typed at its end falls outside it.
[url](url "chip")alone on a line is a paragraph holding a mention rather than aBlockKind::Bookmark, and the paste menu's chip is a mention wherever it lands. ABookmarkwithForm::Chippaints as a card.link::Paste::aloneis gone.markdown::Flat::chipsis gone, andflatten_withtakes a preview function after the mark painter.Theme::text,text_mutedandtext_faintare translucent ink atInk::APPKIT's alphas rather than opaque greys.Theme::selectionisNSColor.selectedTextBackgroundColorwith the default accent:#3F638Bin dark and#B3D7FFin light, opaque.terminal::TERM_PADDINGis gone; aTerminalViewhas no inset untilwith_content_insetgives it one.- A
WebView's page moves to each window the view is painted in rather than staying in the first. - Block shortcuts (
##,1.,-,>and the rest) turn only a paragraph; in a heading, list item, quote or task the prefix stays text. - The editor's drop line is 1px in
Theme::drop_linerather than 2px inTheme::accent.
Fixed
- A block whose content changes every frame, such as a streamed reply, keeps its last measured height at its index rather than falling back to a guess each frame, and a table's guess counts its cell padding and dividers; a streamed table no longer jumps by its height on every token.
- A heading's text is written without escaping block syntax after its
#:## 1. Foosaves as written rather than as## 1\. Foo.