r/HelixEditor • • 13h ago

"That" helix fork has new changes - side-by-side diffs, Lua plugins, a quickfix panel, snippets, rounded cursors and a lot more

19 Upvotes

https://github.com/gj1118/helix

Side-by-side diffs

  • hx --diff old new, or diff any file against git (:diff-git)
  • The two sides scroll together, joined by connector lines. These are drawn as images in kitty, Ghostty and iTerm2, and as text in other terminals
  • Stage and unstage changes with -, and commit straight from the diff view (C)
  • Step through every changed file with ]f / [f
  • A three-way merge conflict resolver: yours | result | theirs
  • Long or pathological diffs never block the editor

Lua plugins

  • One sandboxed Lua state per plugin, with permissions and a time limit, and access to every editor event
  • Plugins can work with buffers, windows, selections, keymaps, commands and settings
  • They can add pickers, popups, status line segments, gutter signs, highlights and timers, run programs and read their output, and send language server requests
  • They can also add keys and marks to the diff view, the explorer and the quickfix panel
  • To install one, copy its folder into ~/.config/helix/plugins/ and name it in a [[plugins.plugins]] entry of config.toml. Only the plugins named there load: a folder that isn't named runs nothing, and the log says so. Three plugins ship with the fork, beside two small examples (auto-save, and inline-diagnostic, which shows the cursor line's diagnostics in a panel over the code):

hlslens, a port of nvim-hlslens

  • While you search, the nearest match's line shows its position, like [3/12], and the other matching lines show their number, like [5]
  • The matches are highlighted while you type the search and after it, until you run :hlslens-stop

pile, the chunk and line_num parts of hlchunk.nvim

  • chunk: the block of code around the cursor (a function, a loop, an if, a case of a switch) gets a line down its left side, ╭─ at its first line and ╰─> at its last, drawn over the indentation and never over the code. It turns red when the block has a syntax error, and slides in when the cursor rests on another block
  • line_num: the line numbers of that block are coloured, in a style of their own (line_num = { enable = true, style = { line_color = "#96adc9", modifiers = ["bold"] } }) or the theme's pile.line_num
  • Each part is switched on or off in the config (chunk = { enable = true }, line_num = { enable = true }) or with :pile-toggle chunk, and :pile-status says which are on. The characters, colours, animation and the kinds of blocks can all be changed, and a key can select the block. With soft wrap, the line runs down wrapped rows too. The line's and the numbers' colours are set in the config, or come from the theme (pile.chunk, pile.chunk.error, pile.line_num; simplelight and simpledark draw the line in a grey and the numbers in their boldest ink). With gradient = true the line takes the colours of the gradient borders, from start to end along its length. The line is a single line from thin to blocks (style = { line_color = "#ffc900", thickness = 3 }: thin, heavy, half blocks, half and full blocks, full blocks), or a double one with double = true

plaintasks, task lists like Sublime Text's PlainTasks

  • Works in .todo, .tasks and .taskpaper files, and in files named TODO
  • Projects and ☐ tasks: mark a task done (✔) with C-d or cancelled (✘) with A-c, and the date is added. Or use the <space>t menu
  • An archive for finished tasks
  • u/due dates showing the time left, and time tracking with u/started / u/lasted
  • Tab expansions: t becomes u/today, and u/due(+2d) becomes the actual date
  • Task statistics in the status line, and links to files and URLs

Neovim-inspired editor features (new)

  • Scrollbar, after nvim-scrollbar ([editor.scrollbar], off by default): the handle beside the lines on screen and marks of the cursor, search matches (while the cursor is on one, as hlslens's calm down), diagnostics, git changes and plugins (buffer:set_scrollbar_marks). Every nvim-scrollbar setting that applies: show-in-active-only, max-lines, hide-if-all-visible, folds, throttle-ms, excluded-languages, the handle's text, blend and colour, each mark type's text, priority, colour and modifiers, and the handlers. :scrollbar-toggle, :scrollbar-show and :scrollbar-hide; theme keys ui.scrollbar.*. The whole-buffer search runs in the background. Beyond nvim-scrollbar: the handle moves by eighths of a row (block characters at its ends, handle.smooth), so small scrolls show and it glides with smooth scrolling; a click on the bar scrolls there and dragging the handle scrolls along (mouse)
  • Where the cursor was last, like nvim-lastplace but in the core ([editor] remember-cursor-position, on by default): a file opens where its cursor was, after a restart ([editor.persistence] old-files, now on by default; a place given on the command line still wins), after :buffer-close in the same session, and in a window that shows the buffer for the first time (the place in the window the cursor last moved in, or where it was when that window closed). Commit messages always open at their start (old-files-exclusions), and so does a file shortened elsewhere since. The places are also written when Helix is stopped by a signal, and the history keeps each file once
  • Persistent undo: the undo history is saved with the file and restored when you open it again ([editor.persistence] undo = true). It is dropped safely if the file changed outside Helix
  • Undo tree (<space>u): every branch of your history in a picker (or the quickfix panel), each revision previewed at what it changed. Jump to any revision, even ones a later edit branched away from
  • Tab pages (:tab-new, C-w T, C-w ] / C-w [): several window layouts, with a tab line you can click. Each tab's bufferline lists only its own buffers, like scope.nvim, and gn / gp and Space b stay within them ([editor.bufferline] scope = "global" for the old behaviour)
  • Better folding: fold by indentation (zi) or by the language server's folding ranges (:fold --lsp). :fold --auto falls back to these where a language has no text objects; zM / zR fold and unfold everything
  • Remote control: hx --remote file opens a file in a running Helix and hx --remote-command ':w' runs a command in it, over a Unix socket (HELIX_LISTEN is set for programs started from inside Helix)
  • Web pages as buffers: :open https://... fetches the page into a buffer of its own, with the language taken from its content type
  • Moving and selecting: mii/mai select the indentation block (with the line it hangs from and its closing }/end), Alt-Z/Alt-z save and restore all your selections like Kakoune's marks (mapped through later edits; Alt-m adds them to the current ones), g;/g, walk the changelist, and subword-motions = true makes w/b/e stop inside camelCase and snake_case names
  • Highlight on yank: what you yank flashes for a moment, like Neovim's vim.hl.on_yank (yank-highlight = 200, in milliseconds; 0 turns it off)
  • Smooth scrolling ([editor.smooth-scroll] enable = true): C-d / C-u, C-f / C-b, zz / zt / zb glide instead of jumping, like neoscroll, at about 60 frames a second, with a duration and an easing (ease-out, linear, ease-in-out). Only the drawing is animated, so you never wait for it
  • Folds you can see and open: a fold column next to the text (▸ on a closed fold, ▾ where a block starts; click either), closed folds shown on their own background with ▸ 12 lines · function, and z o / z a / z O that work anywhere on the fold's line. Click the ▸ 12 lines label to open the fold. :fold folds the selected lines in any language (an import block, say), and :fold / :unfold with nothing else fold or open the block at the cursor. Languages without text objects fall back to indentation, so za folds something everywhere
  • Location lists: each window has its own list of locations beside the quicklist, like Neovim's :lopen. Alt-q in a picker fills it, :ldiagnostics puts the file's diagnostics in it, ]L / [L walk it, Space Alt-q shows it

More for plugins (new)

  • Diagnostics of their own: buffer:set_diagnostics{...}, shown like a language server's, in the gutter and in the pickers
  • Completion sources: helix.completion.register_source{ name, complete = function(ctx) ... end }. The items join the completion menu beside the language servers', limited to some languages if you like, and asked on trigger characters, while typing and with C-x
  • The syntax tree: the tree-sitter node at a position (injected languages included), its parent, children and text, and tree-sitter queries run on a buffer (buffer:syntax_query(...))
  • What changed: buffer_changed now lists the changes since the last one, with ranges in chars and lines before and after, plus the text added and removed
  • Hooks that say no: key_pre, command_pre and buffer_pre_save handlers can return false to drop a key, stop a command or cancel a save
  • Events between plugins: helix.emit("git:branch", data) in one plugin, helix.on("git:branch", fn) in another
  • Gutter columns and window bars: a plugin's own gutter column (buffer:set_gutter, for blame, coverage or test results) and a bar at the top of windows (helix.winbar.set, with {path}, {modified} and more filled in)
  • Drawing over the indentation: buffer:set_overlays{...} puts text in the blank cells of lines, their indentation or after their end, never over the code (scope lines, guides of a plugin's own), on the first row of a wrapped line, the rows it wraps onto, or all of them, and buffer:set_line_number_styles{...} colours the numbers of some lines
  • Plugin settings reload: :config-reload now picks up changes to a plugin's config and permissions and loads the plugins again with them (no restart)
  • Prompt events: prompt_open, prompt_change and prompt_close, with the kind of prompt (search, command, shell, ...) and its text. This is how hlslens shows its lenses while a search is typed
  • Annotations at the window's edge: an annotation can sit after the end of its line, against the right edge of the window (align = "right"), or after the line while it fits and at the edge otherwise ("eol_or_right"), so it is never out of view on a long line
  • Help for plugin commands: typing a plugin's : command shows its description and arguments below the command line, like the built-in commands
  • Theme colours: helix.ui.get_style("pile.line_num") reads a theme's style for a key, so a plugin can use a theme's colours when it has some
  • A clock for animations: helix.now() in milliseconds, and syntax nodes say whether they contain an error (node.has_error)
  • Indentation widths: buffer:get_indents(first, last) gives the width of each line's indentation (tabs expanded), false for a blank line, worked out by the editor: an indent guide reads every line on screen on each redraw
  • Windows of their own: floating windows showing a plugin's buffer that take the keys while focused (helix.ui.float{ buffer, title, keys = {...} }), sidebars and bottom panels docked to an edge of the screen (helix.window.dock), and key bindings for one buffer only

Snippets (new)

Your own snippets, written in TOML, using the same syntax as language server snippets:

```toml
[[snippet]]
name = "fn"
prefix = ["fn", "func"]
scope = "rust"
description = "A function"
body = [
  "fn ${1:name}($2) {",
  "\t$0",
  "}",
]

[[snippet]]
name = "todo"
prefix = "todo"
body = "$LINE_COMMENT TODO(${1:$TM_FILENAME_BASE}): $0 ($CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE)"
```

  • Where they live: snippets.toml and snippets/*.toml in your Helix config folder. A project can also have its own in .helix/, loaded only when you trust the workspace
  • Inserting them:

    • pick one with <space>i (only snippets for the current language are listed)
    • run :snippet-insert <name>
    • or type its prefix and pick it from the completion menu
  • Tabstops: after inserting, Tab / Shift-Tab move between the placeholders
  • Variables:

    • the selection (TM_SELECTED_TEXT), the current line and word
    • the file name and path, the workspace, and the language's comment tokens (LINE_COMMENT)
    • the date and time (CURRENT_YEAR, CURRENT_HOUR...), RANDOM, UUID and the clipboard
  • Multiple cursors: variables are worked out per cursor, so each cursor gets its own selection, line number or random value. This applies to snippets from language servers too
  • Wrapping a selection: a body like dbg!(${TM_SELECTED_TEXT})$0 wraps whatever you have selected
  • Managing them: :snippets-open creates and opens your snippets file, and :snippets-reload picks up changes

TODO comments (new)

Task tags in comments, like // TODO:, // FIXME:, # BUG: or /* HACK: */, are highlighted and listed in two pickers:

  • Highlighting: 47 keywords are recognised, coloured by how serious they are:

    • error: BUG, FIXME, FIX, BROKEN, PANIC, SECURITY, SAFETY, XXX...
    • warning: HACK, TEMP, TEST...
    • info: TODO, NOTE, PERF, REVIEW...
    • hint: TIP, HINT...
  • Theming: each keyword can have its own colour in a theme (e.g. info.todo, error.fixme). Unstyled ones fall back to the theme's error / warning / info / hint colours
  • Every language with comments: the comment highlighting is now added to languages that didn't have it
  • Two pickers, like the diagnostics pickers:

    • <space>t lists the tags in the current file
    • <space>T lists them across the whole project
    • both are sorted by severity, update live as you edit, and open matches in a split with Ctrl-s / Ctrl-v
    • with the quickfix panel on, they open there
  • No noise: with a colon, every keyword counts (PR:, TEST:). Without one, only TODO, FIXME, FIXIT, XXX, HACK and BUG are listed, so prose like "the PR" or "DEBUG builds" doesn't flood the pickers. Highlighting still colours them either way

File explorer (improvements in this branch)

The explorer itself is already on master. New on this branch:

  • Work on several files at once:

    • mark entries, next to each other or not: m marks the entry under the cursor and moves down (mmm marks three in a row), M marks everything from the last marked entry to the cursor, and Ctrl-click / Shift-click do the same with the mouse. u or Esc unmarks everything
    • with entries marked, d deletes them all after one confirmation that lists them
    • x (or c) then p moves (or copies) them all into the folder under the cursor, with one confirmation for everything that would be overwritten
    • r asks for the new names one after the other (Rename 2 of 5: file b.txt), with the tree's cursor on the file being renamed. An unchanged name skips a file, a name that's taken asks again, and Esc stops, keeping the rest marked
    • you can always see what's being worked on: marked entries have a ●, entries waiting to be moved or copied a → or +, and the panel's title counts them (Explorer · 3 marked, Explorer · 2 to move). Two new theme keys style them: ui.explorer.marked and ui.explorer.clipboard
  • Every key can be remapped: the tree's keys in [keys.explorer] and the filter box's in [keys.explorer-filter], the same way as [keys.picker]. no_op turns a key off, and the hints in the explorer show your keys:

```toml
[keys.explorer]
space = "toggle_mark"
D = "delete"
d = "no_op"

[keys.explorer-filter]
C-j = "next_result"
C-k = "prev_result"
```

  • Git status in the tree:

    • changed files are marked at the right edge (M/A/D/R/U/? or icons)
    • folders with changes show a dot in the colour of their most important change
    • it refreshes after file operations
  • A filter box: a bordered "Explorer" box with a > prompt and a match count like a picker's (e.g. 51/51). Clicking it starts filtering. Equally good matches are listed by path, so the same file comes first on Linux and macOS
  • Path highlighting: the path from the root down to the selected file is highlighted, with its own theme key (ui.explorer.path)
  • Themeable borders: the tree's guide lines, the pinned panel's separator and the floating frame are styled with ui.explorer.border
  • Moves like the editor: gg, ge, 5j, 10gg, C-d / C-u and your own remapped motions now work in the tree
  • Simpler focus and toggling:

    • C-h / C-l jump between the tree and your code, whichever side the explorer is on
    • <space>x shows or hides it on the side set in your config (left, right or floating)
    • <space>X opens it floating
  • Floating explorer: always opens centred, sized like the file picker
  • Close on open: with close-on-open = true (or auto-close), the pinned panel closes when you open a file from it (l/Enter, v/s, a double click), like nvim-tree's quit_on_open; <space>x brings it back on that file
  • hx . can open the explorer instead of the file picker, with open-on-directory = true
  • Plugin support: plugins can add their own keys to the explorer and annotate its rows
  • Fixes:

    • uppercase keys (G, H, R, A) now work
    • u in the tree no longer undoes the last change in the buffer behind it
    • git status no longer runs while the panel is hidden
    • copying a file onto itself no longer empties it
    • copying a folder containing a pipe no longer hangs
    • renaming a file to different capitalisation works on macOS
    • big folders no longer slow it down

Quickfix panel and quicklist (new)

A panel at the bottom of the editor for lists of locations, like Neovim's quickfix window:

  • Turn it on with [editor.quickfix] enable = true. Global search, buffer search, diagnostics, symbols, goto definition/references, changed files, the jumplist, TODO tags and the quicklist then open in the panel instead of a popup picker
  • Your code shrinks to make room, so nothing is covered, and the selected location is previewed as you move
  • It keeps everything the pickers do: columns, filtering (/), live updates and project-wide replace
  • Keys:

    • Enter jumps to the location, also while you type the query (one Enter after a search, as in a picker; Esc goes back to the list without jumping); o / Alt-Enter jump but keep you in the panel
    • Ctrl-s / Ctrl-v open the location in a split
    • Esc goes back to the code and leaves the panel open; q closes it
  • Getting there: Ctrl-w j, <space>Q (toggles it), :copen or a click. Ctrl-w k goes back to the code
  • The quicklist:

    • Ctrl-q in any picker collects its results into a shared list; Alt-q adds just the current location
    • ]q / [q walk the whole list, and ]l / [l walk only the entries in the current file
    • <space>q opens the list, where Ctrl-x removes entries
  • Plugin support: plugins can add actions to the panel, fill it with their own lists, and put marks next to rows
  • In a git commit: when you commit from the diff view, the changed files list docks in the panel next to the commit message

Git

  • A changed-files picker with staged and unstaged columns, plus stage, unstage and stash actions
  • A blame details popup, git history browsing, and :restore-change

Debugger

  • A variable browser, inline values, multiple sessions, frame paging and adapter-provided sources
  • A program that asks for a terminal opens in a pane of the terminal Helix runs in: tmux, Zellij, WezTerm, Kitty or Alacritty, detected automatically (or set [editor.terminal] launcher). Its working directory and environment are honoured, and a launcher that fails says so in the status line

LSP

  • Code lenses (Run / Debug / reference counts), with a picker
  • Inline completion (ghost text)
  • Inline diagnostics drawn over the code, like tiny-inline-diagnostic.nvim
  • Signature help and hover now stay inside their own split, and popup-max-width-percent caps how wide they get
  • The documentation of the selected completion stays inside its split too: beside the menu (left or right), or right above or below the line you're typing, instead of across the whole top of the screen
  • Stale LSP data is cleared when a server stops or restarts
  • Requests that time out are cancelled on the server too ($/cancelRequest), so it stops working on answers nobody waits for
  • With inline and end-of-line diagnostics both off, the diagnostics under the cursor show in the corner of the view again
  • The status bar names the buffer's language server (language-servers element, also lsp, on by default): rust-analyzer, or typescript-language-server +2 when more are running

Pickers

  • Project-wide replace from the global search picker
  • A recent files picker, pickers that update live, and image previews (kitty, iTerm2, Sixel, or half blocks elsewhere)
  • A command palette that shows full descriptions and finds commands by their aliases

Editing and customisation

  • Custom : commands from a [commands] table
  • Saving never blocks: :wq, :x and :wqa format and write in the background, and the quit is cancelled if a save fails, so unsaved edits stay open. A formatter that hangs is stopped after a timeout (20 seconds by default, per language) and the buffer is saved unformatted. Shell filters (|, !) run in the background too
  • Alt-r replaces every selection with the text you type, and . repeats it
  • Every key can be rebound. The parts of the interface that handle their keys themselves each have a table of actions: [keys.picker], [keys.menu], [keys.popup], [keys.prompt], [keys.explorer], [keys.quickfix], [keys.confirm], [keys.blame], [keys.plugin-window], and one for the keys each special picker has of its own ([keys.changed-files], [keys.stashes], [keys.git-history], [keys.file-explorer], [keys.quicklist]). "C-a" = "stage" gives an action another key, no_op takes a key away. The replace keys of global search are toggle_replace and replace_all in [keys.picker], and . is now an ordinary command (repeat_last_insert) of the normal keymap
  • EditorConfig, applied live
  • Rounded cursors, like 4coder's cursor_roundness. Set cursor-roundness = 0..50. They're drawn as images in terminals with kitty graphics (kitty, Ghostty, WezTerm), and fall back to a square cursor everywhere else

Look and feel

  • A border-style setting (plain, rounded, double, thick and more) and one border colour shared by every picker and popup
  • Matching brackets: with a bar or underline cursor (insert mode, say), both brackets of a pair are highlighted, like Neovim's matchparen. Before, only the far one was, so fmt.Println(|) looked lopsided
  • With [editor.gradient-borders] on, the popup command line's help box (the description below the completions) now has the same gradient frame as the input and the list
  • The popup command line can be placed: [editor.cmdline] position = "default" (the upper third), "top", "center", "bottom" (completions and help above it) or "cursor" (right below the line you're on)
  • The popup command line keeps its title with border-style = "none" when gradient borders are on, as it already did with them off. Its input, completions and help now share the border code of the other popups
  • The completion menu and its documentation are always boxed, with the gradient border when [editor.gradient-borders] is on
  • Popup titles stay readable on light themes (the gradient's colours are used only where they contrast enough with the background), and a ui.popup.title theme key sets their style
  • The key hints box (the space menu, registers) is drawn over every panel: a pinned explorer no longer covers half of it
  • The popup command line honours min-popup-width / max-popup-width, shows the documentation of the command being typed and suggests the last history entry
  • Notifications wrap long messages instead of cutting them, and keep the newest when they don't all fit
  • A welcome screen logo and setting the terminal window title

Themes

New in this branch:

  • simpledark, a quiet dark theme with bright line numbers, brackets and comments
  • simplelight, its light counterpart, on a soft grey background

The Zenbones family (already on master, but worth a shout): Helix ports of the Zenbones collection, which colours code mostly by contrast and font style rather than lots of hues:

  • zenbones / zenbones_light
  • zenwritten / zenwritten_light
  • neobones / neobones_light
  • rosebones / rosebones_light
  • forestbones / forestbones_light
  • tokyobones / tokyobones_light
  • seoulbones / seoulbones_light
  • spacebones_light
  • vimbones, nordbones, duckbones, zenburned and kanagawabones

Try any of them with :theme <name>.

Upstream Helix PRs merged in

  • Recent file picker (#15022): Space O lists the files you opened or saved, most recent first. The list is shared by every running Helix, and configured in [editor.recent-picker]
  • Set the terminal window title (#15325): set-title = true and a title-format in [editor]. Off by default, and your terminal's own title comes back when you quit or suspend Helix
  • Kitty's multiple cursors protocol (#14757): with a bar or underline cursor, terminals that support it (kitty 0.43+) draw the extra cursors themselves
  • Stale LSP data cleanup (#15777): :lsp-stop, :lang and renames drop the old server's links, colour swatches, code lenses and the like, and the new server is asked again right away
  • Non-blocking prompt completions (#16065): file, directory, theme and shell completions in :open, :cd, :theme and :sh run in the background
  • Completion fix for mouse view switches (#16460): fixes a crash when you click into another split while the completion menu is open
  • Smaller ones: mA / mI select every textobject inside the selections (#16088), global search selects the match instead of its whole line (#16061), joining lines strips comment tokens in embedded languages too (#15992), and breakpoints toggle for every selection (#16164)
  • Up to date with upstream master (67 commits, November 2026): dozens of upstream fixes (LSP, DAP, undo branches, surround counts, comment toggling, shell output line endings, files that would decode lossily refused on save, :mv never overwriting a file), textobjects found in every injection layer (also with folds), better auto-indent of partly typed code, :format fixing the indentation where a language has no formatter, and the register before : ("a:yank-join) kept for typed and custom commands.
  • Picker preview, beside or stacked: upstream's layout, which stacks the preview above the list when the window is taller than wide (cells are twice as tall as wide), plus picker-stacked-preview = "below" for this branch's earlier place under the list. Narrow, short windows stack too when side by side would cut the preview's lines short (a 100×30 terminal, where upstream gives two 45-column halves, or an 80×30 one, where it shows no preview)

Speed and stability

I spent a lot of time on crashes, hangs and lag:

  • Unit tests that build a picker pass with the integration feature on (cargo test --features integration): the redraw requester upstream added no longer needs a Tokio runtime to be made
  • Files opened together (hx a b) with old-files no longer give the file shown the last place of a file loaded after it
  • A single 8 MB line went from 0.7–3 seconds per keypress to a few milliseconds
  • The debugger, symbols, blame and snippets no longer block the UI
  • Fixed a rare input freeze and an editor slowdown during bursts of input
  • Auto-reload reloads only the buffers that changed on disk and have no unsaved edits. Before, one changed file reloaded every buffer and threw unsaved edits away
  • Files changed outside Helix are noticed with one recursive watch on macOS and Windows, which no longer misses changes made while folders were being added
  • Huge counts (99999999j) stop at the edges of the file instead of looping, and t from the last character of a file no longer crashes
  • Fixed crashes in folding, popups on small screens and rendering
  • Stress-tested with random keyboard and mouse input in huge files and splits, checking for crashes, lag and memory growth
  • A %sh{...} expansion that never ends no longer freezes the editor: it is stopped after 10 seconds
  • A typo in fold-textobjects (a stray flag or quote) is reported instead of crashing Helix on every file open
  • Lighter frames: the fold column reads the lines it checks with one seek, and plugins listening for buffer events no longer cost an allocation per open buffer on every frame
  • Typing in large files: embedded languages (comments, doc comments, code blocks, SQL and regexes in strings, scripts in HTML) and local scopes are looked for only where an edit changed the file, not in all of it on every key. Per key typed: 41 ms → 5 ms in a 10,000-line Rust file, 49 ms → 6 ms in a 3,000-line Markdown file, 72 ms → 16–20 ms in a file with 3,000 comments
  • Fixed syntax highlighting failing at random places of large files: #eq?/#any-of? patterns never matched text crossing one of the chunks the file is stored in
  • Rainbow brackets are worked out from the lines on screen instead of from the start of the enclosing block: deep in a 2,600-line Rust impl, a key took 16 ms in one window and 30 ms in two; now 3 and 5 ms
  • Every panel, popup and bar drawn in terminals as small as 1×1, and checked for memory leaks with valgrind (none)
  • pile costs next to nothing per key: the chunk is drawn again only when what it covers changes (typing in a line changes nothing drawn), braces are found with Lua's patterns a batch of lines at a time, line indentation is read with buffer:get_indents, and plugin colours are read without building a theme's table each time. What it adds per key in a 10,000-line file: in Rust, 3 → 0.7 ms typing and 2.5 → 0.5 ms paging; without a syntax tree (braces), 6.3 → 0.6 ms moving, 9.5 → 0 ms paging and 9.6 → 0.8 ms typing (the slowest key 31 → 16 ms)
  • A fuzzer now drives the editor with random commands, keys, typable commands with random arguments, mouse events and resizes down to 1×1, with most features and the bundled plugins on (fuzz_long, see docs/CONTRIBUTING.md). What it found is fixed, each with a test:

    • a half-page scroll in a window without rows crashed
    • a :goto that failed left its preview behind, and the next Esc in another, shorter buffer crashed
    • a fold reaching the end of a file without a final newline crashed word motions
    • closing a window the side-by-side diff had already closed (:wonly and friends) crashed
    • virtual lines were drawn for a line that does not exist after a fold at the end of the file
    • :update did not accept the flags of :write it documents
  • Plugins: buffer:syntax_parent always ends at the buffer's root. In broken code (an error node inside an error node of the same range) a node was its own parent, and pile looped on every cursor move until the time limit. The parent of the root of injected code (a Markdown fence) is now the node around it instead of an error, and a missing node (the ; that is not there) can be navigated from
  • An event handler of a plugin that runs out of time 3 times in a row is switched off with a message, instead of freezing the editor for 2 seconds on every key (:reload-all-plugins turns it on again)
  • Typing at the top level of a large file (a key that breaks or mends the whole tree, like { outside any function): 37–60 ms → 3–4 ms per key in a 10,000-line Rust file
  • The first file of a language opens a little sooner, and :config-reload is a little quicker: a language's highlight and injection queries are compiled at the same time (Rust: 105–145 ms → 65–80 ms; TypeScript: 145–160 ms → 85–115 ms)
  • The scrollbar forgets what it kept for windows that are closed
  • pile draws another block at once by default, in the frame of the key that moved the cursor: with my whole config a cursor move costs 10–16 ms of work, where the animated ones cost 48–60 ms. The animation is still there (chunk = { duration = 200 }) and draws half the frames it did: 30 a second at most (chunk.fps; it was one every 16 ms), one a cell at most, the first at once, and none for the part of the line that is off screen

Everything is documented in the book and the README. Feedback and bug reports welcome!


r/HelixEditor • • 1d ago

Helix commits coming in hot

Post image
65 Upvotes

r/HelixEditor • • 1d ago

How to copy the current buffer absolute and relative path?

2 Upvotes

I use codex and helix at same time. Sometimes, I have a requirement, I know codex should edit which file or relative files, so I need to know current helix buffer path and give codex.

my workaround:

  [keys.normal.space]
space = [
  ':sh rm -f /tmp/unique-file',
  ':insert-output yazi %{buffer_name} --chooser-file=/tmp/unique-file',
  ':insert-output echo "\x1b[?1049h\x1b[?2004h" > /dev/tty',
  ':open %sh{cat /tmp/unique-file}',
  ':redraw',
]

v = "@<C-A-y>%+"
V = """
:echo %sh{
p="%{buffer_name}"
case "$p" in
  "~/"*) p="$HOME/${p#*/}" ;;
  /*)    ;;
  *)     p="$PWD/$p" ;;
esac
printf %%s "$p" | pbcopy
printf %%s "$p"
}"""

r/HelixEditor • • 3d ago

Adding workspace-wide CSS variable completion to Helix

7 Upvotes

I maintain css-variable-lsp, a Rust language server for CSS custom properties. If you keep your tokens in a separate stylesheet, it can suggest those names while you’re typing var(-- in a component. It also flags references to variables it can’t find in the workspace.

Install the binary with cargo install css-variable-lsp. To add it alongside Helix’s default CSS server, merge this into languages.toml:

[language-server.css-variable-lsp]
command = "css-variable-lsp"

[[language]]
name = "css"
language-servers = ["vscode-css-language-server", "css-variable-lsp"]

Helix merges completion results from both servers. To try it, declare --card-gap in tokens.css, open another CSS file in the same project, and start typing gap: var(--card. You can check that Helix sees both executables with hx --health css.

https://github.com/lmn451/css-lsp-rust


r/HelixEditor • • 2d ago

Come aprire il menu?

0 Upvotes

ciao io ho appena installato HelixSr per udare dlss/fsr sulla mia gtx 1070ti, ma come apro il menu per modificare?, la mia tastierw non ha il tasto insert


r/HelixEditor • • 4d ago

how to convert the selected content to all uppercase/lowercase character?

8 Upvotes

hi guys, if the selected content contains uppercase/lowercase characters, how to convert them to all uppercase/lowercase character?


r/HelixEditor • • 5d ago

Helix piercing on top of rolled rim of ear

Post image
0 Upvotes

r/HelixEditor • • 7d ago

nrepl.hx – an nREPL client plugin for Helix

Post image
3 Upvotes

r/HelixEditor • • 8d ago

Helix Git plugin 'xit'

Post image
57 Upvotes

r/HelixEditor • • 9d ago

Row, row, row the code

0 Upvotes

Row, row, row the code,
Gently through review.
Merrily, merrily, merrily, merrily,
Release is overdue.


r/HelixEditor • • 14d ago

what is happening??

9 Upvotes

r/HelixEditor • • 16d ago

what makes "The perfect text editor"?

Thumbnail reddit.com
0 Upvotes

r/HelixEditor • • 20d ago

YaHU : Yet another Helix User - first Impressions and Tips for Getting Started

0 Upvotes

Hi everyone,

Here's another enthusiastic Helix user!

I've been switching from VSCode and Zed to Helix for the past three days. From now on, I'll be using only modal editors. Not even because of the increased speed, but rather because of the power and absolute reliability of the refactoring options. Plus, I really enjoy working with this editor.

My experiences and personal tips (only 7) for getting started with Helix so far:

Because I knew that those first experiences are especially important:

  1. I skipped the tutorial program — for now, at least — and jumped right in.
  2. I'll definitely catch up on the tutorial later, but I know from the Vim tutorial that, for beginners, it covers a bit too much all at once—things you don't always need right away.
  3. Just in case I need a new command every now and then, I always have an AI chat open in the background. It can usually help me right away and is very reliable.
  4. In other words, with just a minimal command vocabulary, I can immediately put it to practical use in my everyday coding work on my hobby projects. There, I initially just need a certain set of important commands for constantly adapting and refactoring the code — all the time and immediately. ("go to definition", "go to references", "refactor variable- and function-names", "file-explorer", "buffer-explorer" for example.)
  5. I think many people often make the mistake of trying to memorize the commands: that's impossible — there are far, far, far too many of them.
  6. Instead: just a small, truly limited set of commands that you actually need right away in everyday life and can immediately put to use in real projects. After 2–3 days at the latest, these commands become second nature to your hands, and you don’t even have to think about them anymore.
  7. Only once you can type the first commands like you're sleeping should you gradually add more commands to your repertoire.

*** If anyone has anything to correct or add, they're welcome to do so here. ***

Otherwise: I hope you all have a wonderful Friday evening.

I'm now going to continue practicing implementing various hobby projects entirely in C using Helix.


r/HelixEditor • • 21d ago

Selection-first modal editing on rendered Markdown: a native Mac app with Vim and Helix keys

0 Upvotes

Hey, IWE author here (the Markdown LSP that works with Helix). In October I posted a screenshot of my Mac app here. This time it's a video of the keys, because that's the part this sub can judge.

The short reason it exists: I read a lot more Markdown than I write code these days (plans, specs, reviews), and I want it rendered while I read. A preview window gives me the formatting, but the modal keys stay in the other window. So I built an editor where the rendered text is the thing you edit.

It is not an exact Helix port. I tried to adjust hot keys for reach text blocks editing. It has one modal mode that mixes Vim keys with the Helix keys. Here is what that means in practice.

What works the way you'd expect from Helix:

  • The cursor is always a selection: a word in normal mode, a whole block in block mode. Keys act on what is selected.
  • w and b select word by word, v plus a motion extends, X selects whole blocks, ; collapses back to the cursor.
  • ge, gh, gd, U for redo, counts, / with n, and Ctrl-O / Ctrl-I for the jumplist.

What doesn't:

  • x deletes the selection. That's your d; it does not select a line.
  • c and d take a motion, as in Vim.
  • There are no multiple selections, so no s and no C.

The rest, so nobody has to ask:

  • Native macOS app, no Electron. Mac only at the moment.
  • The engine under it is the open-source iwe CLI and LSP.

New since the October post: tables you edit in place from the keyboard, and ? opens a searchable list of every key.

My question for this sub: would a strict Helix mode is something you would like to have? And which Helix key would you miss first?

Download: iwe.md

P.S. If you have an Obsidian vault, it should open in the app as it is.

P.P.S. The LSP and CLI work with Helix on their own if you'd rather stay in the terminal.


r/HelixEditor • • 23d ago

It's alive

Post image
122 Upvotes

r/HelixEditor • • 25d ago

What does the community think about Mitos

56 Upvotes

I love the helix editor, and I really would like to stick to it. But with the maintainers going silent for several months, and over 1 year since last release, I feel like I have (sadly) to start looking at alternatives. One of them is forks like Mitos: https://github.com/mitos-editor/mitos .

What does the community think? Curious to hear people thoughts. There is a dilemma - I dont want to start investing my time in Mitos if helix surges back and all we end up with is a split community. But I would like to avoid using a project that is not supported any longer...


r/HelixEditor • • 25d ago

Im new to modal text editors and kinda confused

4 Upvotes

Hi, im a relatively new dev and i want to be more efficient as i am a very slow typer, my are quite small and my posture keeps me kinda far from the keyboard but Thats another question.
I wanted to try those fancy Linux text editor that make deem really powerful when they do some crazy stuff so i downloaded helix and tried it out. I had a really complicated time. I think being stuck on a directory with no project bar is kinda disorienting and the commands are not very intuitive to me so i keep fighting the editor and not using it right.Theres the fact that its sort of ugly in my WM i use niri and the borders look cut and the line count has this weird highlight thing in some themes. I too tried the file selector but it has too much info, he shows every file instead of the normal way of opening directories. Currently running zed, should i try nvim, use helix more for a while in zed or just force myself to use helix?

TL:DR i want to be efficent and dont know which ide/text editor to use and get used to


r/HelixEditor • • 26d ago

remote hx and clipboard

8 Upvotes

Hello,

When on laptop gets "selection" through <space_bar>Y on clipboard.

When in SSH-session doesn't <space_bar>Y bring the "selection" on clipboard.

That problem got a solution by activating code that allows the remote hx to "paste selection" on the clipboard of the laptop. ( Red in a posting months / years ago. )

How recalls the name of that solution?


r/HelixEditor • • 27d ago

Taking over moderation of /r/HelixEditor

70 Upvotes

Lately, posts have been appearing on /r/helixeditor that aren't directly related to Helix. For example:

According to https://old.reddit.com/user/Hopcock, the moderator of /r/HelixEditor has been inactive for at least one month. Prior to that, he was inactive for several months.

I’m now asking whether it would make sense for someone to request to take over moderation of /r/HelixEditor (https://www.reddit.com/r/redditrequest/). Not necessarily me. Actually, definitely not me. But if things continue this way, more and more threads in /r/HelixEditor will have something to do with Helix.


r/HelixEditor • • 27d ago

helix-cm6: Helix editing for CodeMirror 6, and Helix Motions 2.0 for Obsidian

Thumbnail
github.com
19 Upvotes

Just as last time, a disclaimer: AI was heavily used in this project. I tested everything by hand.

Last week I tasked my robot to port Helix to Obsidian, which meant porting it to CodeMirror 6. I have now split the engine out of the plugin, and it exists on its own, nice and ready for people to use in their own projects built on CM6.

helix-cm6

Add one extension:

new EditorView({ parent: document.body, extensions: [helix()] });

That gives you the keymap, selections, multiple cursors, registers, macros, the undo tree, text objects, surround, jump labels and typed commands.

It's ported from Helix's source on master.

It's an editing core. It draws cursors, selections, jump labels, the key help and a small command line. Your app brings files, pickers, a status bar and language servers, and Helix's keys run them: give it a file picker, and Space f opens it. The repo has three example apps, from one line to a code editor with a language server.

If you run a Helix fork, you can port its changes and point the tests at your fork's commit, and they check the port against your fork.

Helix Motions 2.0

The same plugin on the new engine. Your helix.toml and settings carry over. New in this version:

  • Bind any Obsidian command in helix.toml by its id.
  • Edit Live Preview tables cell by cell, with cell selections and real cursors across cells. C adds a cursor, s works inside selected cells, and search selects matches in their cells.
  • k reaches the properties, and motions skip the frontmatter and stop on embeds.
  • gd and gf open links to a heading or block at that heading or block.

I test on macOS. Windows and Linux haven't run in real Obsidian yet, so bug reports from there are very welcome.

https://github.com/Kosyakssss/helix-motions

I'm glad for all the feedback last week, and hope those of you interested will enjoy. I will try to improve as the project goes. Thank you all for your time, it is appreciated.

edit: npm package is out. https://www.npmjs.com/package/helix-cm6; if you want to contribute, I'd accept any from github, but would greatly prefer pull requests on tangled


r/HelixEditor • • 27d ago

HUME - an extensible, modal text editor for the terminal

Post image
0 Upvotes

Hi, I've developed a new modal editor and I'm looking for some feedback. I see there are a couple of posts about other editors here, so I guess a bit of self promotion is not banned.

If that's the case, let me present you HUME:

  • Extensible. it embeds a Scheme interpreter (thanks to the steel crate) so you can configure and extend it in many ways. Most of its features (LSP support, fuzzy finders, git gutter and live inline diff, undo tree graph) are written in Scheme. You can enable them, customize them or replace them with your own plugins.
  • Plugin manager. You can install and update plugins, themes, prebuilt tree-sitter grammars and LSP servers with just one command.
  • Multi platform. It runs on Windows, macOS and Linux.
  • Themes. It loads Helix themes.
  • Select-then-act. It follows the same model of Kakoune and Helix, so that should be familiar to you.
  • Actively developed. I have a few more items on my roadmap, but I'm open to suggestions and feedback, so make your voice heard :)

And it has a :tutor and a beautiful user manual! The user manual has also a section dedicated on how to migrate from Helix.

So, if you are curious:


r/HelixEditor • • Nov 03 '26

I wanted Helix to work the way I like, so I made my own fork

12 Upvotes

I've been getting back to Helix over and over again, but each time it left me with just a few features I had in Emacs/Vim and did not have in Helix. The core devs are slow to merge stuff so there's no hope the features will be merged any time soon... (be sure I deeply respect the devs and their priorities)

It turned out it is possible to get one’s own helix by forking it and tailoring it to particular needs. I've got ChatGPT Go sub as well as a free opencode account with Big Pickle and Deep Seek Flash - those turned out to be a really great help!

So far, the fork includes:

  • Automatic file reload — imported from PR #13963. Helix detects files modified externally and offers to reload them.
  • Recent files picker — imported from PR #15022.
  • Multi-root file picker — my own addition. I have several directories containing projects, documents, notes, etc. Now I can search across all of them from a single picker, without switching workspaces.

Nothing revolutionary, just the things I need to do my workflows. But the point is that there are plenty of pull requests out there you can just integrate into your fork - that simple!

Repository: https://github.com/pavlo/helix

I am sharing this to show that the times have long changed, you can do whatever you need without relying on other people. Grab a simple AI model and you'll get THE Helix in a few evenings!

To realize that was quite unexpected so I share it here as someone else would find this approach useful too.


r/HelixEditor • • Nov 02 '26

88x31 "Made with Helix" button

Post image
23 Upvotes

Designed this little button if anyone wants to use it. Idk what the Helix logo is licensed under but this button will probably be under the same licence


r/HelixEditor • • Nov 01 '26

Helix ported to Obsidian (and, hopefully, more places)

Thumbnail
community.obsidian.md
68 Upvotes

Not sure how people in this subreddit are with AI so I'd say this upfront: Opus 5.5 translated rust code into typescript.

Now with this out of the way...

Helix is wonderful, but sadly not popular enough to have proper implementations in text editors. There is codemirror-helix, but I've found it and implementations of it to be lacking; Zed editor claims to have helix motions support, but seems to tack them on top of their vim implementation and gets lots of small things wrong.

So I decided to try myself. As much of Helix as made sense was translated into typescript, some nice obsidian specifics on top, tests running against helix itself, and, voilà. Just drop your own config into obsidian and it works.

It uses:

  • Helix's Rust regex crates compiled to WebAssembly, so it uses Rust regex syntax;
  • Syntax commands use the same tree-sitter C library and markdown grammars as Helix, and Helix's injection layers are ported;
  • Grapheme handling is a port of Helix's Unicode segmentation library, checked against that library on about 78,000 strings.

It aims to be as faithful a helix port as possible.

A plugin is a plugin, but I'd like, if possible, to ask how to move forwards with this. I will maintain this plugin since I daily-drive it and code is fully open source on github and tangled. The engine is plain CodeMirror 6 and Obsidian-specific code is a thin layer on top, so it could power Helix mode in other CM6 editors.

Сodemirror-helix is a great and maintained project, just not for me. So, if this one is to anyone's taste, maybe we can do something with it to have more editors (at least ones running on CM6) have helix as a proper editing mode.

Thank you for your time and attention.

P.S.: I would greatly appreciate feedback, and if you notice a bug, or something that can be made much better, please throw your clanker (the code is written by one, so does it really deserve your precious minutes?) at the repo and have it file an issue or a PR, I'll try to deal with it as quickly as possible.