strop

Changelog

What changed

The last 3 releases, newest first. Tarballs and checksums are on GitHub releases.

0.80.0 — 2026-11-30

Added

  • The mouse. A click puts the cursor on the character under the pointer, in the pane under the pointer, and focuses that pane; a click in the line numbers goes to the start of the line, below the text to the last line. A drag selects in Visual mode, and dragging past the top or bottom edge scrolls. A double click selects the word, a triple click the line, a right click extends the selection to the pointer and a middle click puts the "* register there. The wheel scrolls the pane under the pointer three lines without focusing it, and moves its cursor only when the cursor's line would leave the screen; sideways it scrolls six columns. The mouse is on by default: hold Shift to select text with the terminal, or turn it off with :set mouse= (:set mouse=a turns it back on, mouse = false in the config file keeps it off).
  • PageUp and PageDown scroll a page, like Ctrl-B and Ctrl-F.

Changed

  • Key change: marks are set with gm, and m is the match prefix (as in Helix). Type gma where you typed ma; 'a and `a jump as before, and jumping to a mark that is not set reminds you of gma. m now starts the match commands: mm jumps to the matching bracket (like %), ms adds a pair around a motion (msiw(), around the line's text (mss") or, in Visual, around each selection, mr(" replaces a pair, md( deletes one, and mi( / ma( select inside / around (like vi( / va(). Macros recorded with ma need recording again.
  • ds cs ys and Visual S no longer surround. Use md mr ms and Visual ms. Visual S changes the selected lines again, as in Vim.
  • A card for every pending key. After z, ctrl-w, [, ], q, @, ", an operator (d, c, y, …), di/va/mi, and wherever a pair is expected (md, mr(, msiw), a card at the bottom lists what can follow. " lists the registers with their first line; q and @ list the recorded macros. Each key has its own short label, and the cards use as many columns as fit: the g card shows everything at 100×30.
  • Surround works at every cursor and every selection, as one undo step: two cursors inside one pair change it once. m as the pair means the nearest pair of any kind (mdm, mrm", and the objects im / am), a count picks the pair (2md( removes the second parentheses out), any other punctuation wraps with itself (msiw*), and V ms{ puts each brace on its own line and indents the body. After mr( the two delimiters it will replace are highlighted before you type the new pair. A key that can never be a pair is refused at once instead of leaving the editor waiting.
  • Cursors that meet become one. After Space c dd on two lines one cursor is left, and the 2× count is always true.
  • Every edit acts at every cursor. With several cursors, ~, r, J, gJ, Ctrl-A, Ctrl-X, gc, a and A now change the text at each cursor, as one undo step; before, they used only the first cursor (A; on aa / cccc gave aa; / ;cccc). Cursors on one number or on one line change it once. The few commands that act at one cursor (R, gi, &, g&, the ! filter, Visual block and Visual Space y) drop the other cursors and say "1 of N cursors".
  • Undo brings the cursors back. u after an edit made at several cursors puts the cursors back where they were before it, and Ctrl-R puts them where the edit left them: gB cx Esc u on three foo lines leaves a cursor on each foo again.
  • Visual works with several cursors. v and V stretch every cursor into a selection, motions extend each, and every Visual command acts on each (d, c, y, p, J, r, ~, >, Ctrl-A, gc, o). I and A insert at the start or the end of each selection, so gB then I types at every occurrence. Esc gives back as many cursors; a second Esc leaves one.
  • A yank from several cursors puts one piece back at each. Space c yiw on aa / cc, then P, gives aaaa / cccc, and a put over several selections gives each its own piece. With a different number of cursors, or read as one text (:reg, the clipboard), the register is the pieces joined by newlines, as before.
  • gb makes the occurrence it adds the main cursor, and the view follows it, so an occurrence further down the file comes into view. Space m x drops the main selection and makes the one before it main; during gb that skips the occurrence, and the next gb goes on past it. :select-skip and :select-pop are gone: Space m x does both jobs.
  • Space C adds a cursor on the line above, and Space c and Space C take a count: 3 Space c adds three cursors below.
  • Q plants a cursor that stays. Press Q, move, press Q again: every place you pressed it keeps a cursor while motions move only the main one, and the statusline says planting. Esc ends planting, and from then on the cursors move and edit together; a second Esc leaves one. An edit typed while planting ends it and acts at every cursor.
  • Files open with the indentation they use. strop reads the leading whitespace of a file's first 1,000 lines and takes the widest indent width some line steps by, as long as most indented lines fit it. Files that used to fall back to Spaces:4 now open as what they are: a YAML workflow with 'release/**' in it, a shell script with src/*.c, C with *p = 1;, Python with r"\w+", Vim script, and Go or a Makefile with only a few indented lines. A 4-space file with one block at 2 stays 4.
  • When the file shows nothing, its language decides. Go and Makefiles use tabs; YAML, JSON, TOML, Lua, Lean, JavaScript, TypeScript, HTML, CSS, Ruby, shell, CMake, C and C++ use two spaces; Rust, Python, Java, C#, PHP, Fish and SQL use four. A new empty .yml, .json, .lua or .lean file starts at 2. Markdown is always 2, because a numbered list's continuation lines are not an indent width; a Makefile always uses tabs, because a recipe needs one. Files strop knows nothing about still use tab_size and indent_style.
  • [language.<name>] in config.toml sets tab_size and indent_style for one language ([language.go], [language.make], [language.markdown]). It beats the built-in language default and loses to what the file itself shows.
  • A tab is drawn at the tab width, not the indent width. A GNU-style C file (two-space indentation, eight columns stored as a tab, as in libstdc++ headers) now shows Spaces:2 with its tabs eight columns wide, and new indentation is typed as spaces. In other space-indented files a tab is drawn tab_size wide. :tab-size N still sets both.
  • >>, <<, :> and :< work as in Vim: they measure a line's indentation with the tab width, move it by the indent width, and write it back in the buffer's style, so a tab-indented line shifted in a space-indented file becomes spaces.
  • Detection runs again when a file is reloaded after changing on disk, and when :tab-size auto or :indent-style auto clears an override. Saving a scratch buffer under a name, or :saveas, applies the new language's default.
  • :explain shows the evidence: detection: spaces 2 — 41 of 44 space-indented lines, 12 steps of 2; tabs 0, and the tab width with its source when it differs from the indent width.

Fixed

  • An arrow key after an operator is its motion, as in Vim: d then Down deletes two lines instead of answering "not an editor command: d". Home and End work the same way (d then End is d$).
  • Ctrl-Y and Ctrl-E keep the cursor's screen column when they move it: on X of abcdX below ééééX, Ctrl-Y lands on the X above, not on the third é.
  • A mouse report left on by another program (ESC [ M and three bytes) is ignored instead of typing three characters.
  • ysiw{, ysiwB and cs"{ wrote the opening brace twice ({it{); every surround key now uses the one pair table.
  • With " pending, the statusline showed " followed by a stray character.
  • Typing with thousands of cursors no longer slows down with their square: each key places every cursor in one pass.

Proofs

  • Where a click lands is proved: the pane under the pointer, the line on its row, the text column past the line numbers and the character that owns it. A click on any cell where a character is drawn lands on that character, both halves of a wide character pick it, and after the wheel pulls the cursor onto the screen the next frame leaves the view where the wheel put it.
  • Detection, the choice between sources, and the column arithmetic of shifts are proved in the kernel: the counts are exact, a detected width is one some line steps by, with four fifths of the indented lines on its grid and no wider candidate that fits; a file printed at one width detects as that width; tabs and spaces win a mixed file only two to one; each setting comes from the strongest source that names it; a tab style has one width; both widths stay within 1–16; and the whitespace written for a column reaches exactly that column.
  • Merging a set of selections, placing every cursor after a batch of edits, and choosing the innermost pair around the cursor are proved functions in the kernel: merged selections are apart, nothing is lost, the primary is tracked, merging twice changes nothing, and the one-pass placement equals the per-cursor computation it replaces.
  • Where an edit made at every cursor leaves each cursor is proved: a cursor any distance past its own edit's start moves exactly as that start does. Which piece of a register each cursor puts is a proved kernel function: its own piece exactly when the register holds one per cursor, and the whole text otherwise.

0.79.0 — 2026-11-29

Changed

  • Search runs on Rust's regex engine. You still type Vim patterns (\(…\), \|, \<word\>, \{n,m}, \zs, smartcase), but every pattern is now fast: a regex whose only match is on the last line of a 500 MB file is found in about 0.7 s, and no pattern can hang the editor or hit a "too complex" limit. Back-references inside a search pattern (\(\w\+\) \1) are refused with a clear message; \1 in :s replacements still works. strop compat and the help list the few patterns strop reads differently from Neovim: an empty first alternative wins, a repeat stops at an empty pass, and word boundaries and case folding follow Unicode.

Performance

  • Drawing: screens draw about twice as fast. Text is painted straight into the terminal grid, and an unchanged file, prose, blame or split view allocates no memory for its panes. With the finder, project search or a symbol list open, the panes hidden behind it are no longer drawn.
  • Typing in a git repository: the change markers refresh on one background worker that keeps git's index and base texts between edits, instead of starting a new thread and re-reading the index on every keystroke: about 1 ms instead of over 100 ms in a 100,000-file repository.
  • Git status: <space>gg opens about three times faster on large repositories. Lines are counted only for the files that changed, so the tree is scanned once.
  • File finder: ranking runs across several threads, so each key in a 100,000-file tree settles about three times faster, in exactly the same order as before.
  • Commit log: a long history no longer slows every redraw of the log.
  • Search after paste: pressing Enter after pasting a search into a very large file is about three times faster.

Fixed

  • Flag emoji always show as one character, even where a very large file's text is split internally between two chunks.

Proofs

  • Scrolling, the picker's list window and clipping wide characters at the screen edge now go through proved viewport geometry. The finder's parallel ranking merges through a proved rule: ranking in chunks gives exactly the single-pass order.
  • The tab line's fit is proved: the current tab page always shows with its name, and the row never runs past the screen.
  • Symbol scopes (the breadcrumb and <space>s) keep their extents through edits by a proved rule, and the git gutter's sign rows are clamped by a proved function.

Compatibility

  • Full session replay uses editor semantics version 15. Replay a 0.78 recording with 0.78, or record it again.

0.78.0 — 2026-11-28

Performance

  • Typing: the Linux binary now uses mimalloc as its memory allocator. A key shows in about 1 ms instead of 2–3 ms, the file finder lists the Linux kernel tree about three times faster, and most built-in speed tests run 1.25× faster or more. It uses 13–50 MB more memory.
  • Search: a lower-case / search no longer drops to the slow engine. The last line of a 500 MB file is found in about a tenth of a second instead of nearly a minute, and *, #, \<word\> and case-folded searches take the same fast path.
  • New lines: o, O and Enter respond at once in large files. The indent now comes from the syntax tree the editor already keeps, instead of a second parse: under 1 ms in a 10 MB file, where a 4.5 MB file used to take 3.5 s. After quick edits, highlighting catches up on the next frame instead of waiting for another key.
  • Very large files: files over 12 MiB are no longer parsed. They show without colours and indent from the previous line, and strop says so once.
  • Large files: opening a file no longer holds a second copy of it in memory. A 500 MB log peaks at about half the memory it did, and opens faster.

Fixed

  • Remote links from a selection: in Visual mode, <space>gy and <space>go copy or open a link to the selected lines (#L10-L20) instead of refusing. <space>gh opens the selected lines' history in Normal mode, so Enter and q work there. The Visual which-key card lists these commands, and a leader key Visual does not bind says so.
  • Remote links name the right lines: a link names the committed line, even with unsaved or uncommitted edits above it. A selection that includes uncommitted lines is refused with the reason, and a request made before the file's diff is ready waits for it. A file that is not in the last commit (untracked, or renamed in the worktree) is refused instead of producing a link that 404s.
  • Line history: <space>gh on a selection looks up the committed lines it covers, and refuses lines that are not in the last commit.
  • Staged changes: the staged gutter mark and <space>gu follow a staged change that sits below unstaged insertions.
  • Discarding a deletion: <space>gX on deleted lines puts the cursor on the first restored line.
  • Search counts: search counts and :s///g no longer count overlapping matches of a case-sensitive pattern separately: aa in aaaa is two matches, as in Vim.

Proofs

  • The line arithmetic behind the git gutter, remote links and line history (a change's regions, a selection's lines, and mapping a line across a diff) now lives in the proved kernel, with machine-checked theorems about the shipped code. The proof audit also states which kernel functions are proved never to fail.

Compatibility

  • Full session replay uses editor semantics version 14. Replay a 0.77 recording with 0.77, or record it again.

All 115 releases →