Helix Mirror
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Go to file
Gokul Soumya 40916dff63
Move FilePicker::render from Component impl to normal impl
Merges the code for the Picker and FilePicker into a single Picker that
can show a file preview if a preview callback is provided. This change
was mainly made to facilitate refactoring out a simple skeleton of a
picker that does not do any filtering to be reused in a normal Picker
and a DynamicPicker (see #5714; in particular [mikes-comment] and
[gokuls-comment]).

The crux of the issue is that a picker maintains a list of predefined
options (eg. list of files in the directory) and (re-)filters them every
time the picker prompt changes, while a dynamic picker (eg. interactive
global search, #4687) recalculates the full list of options on every
prompt change. Using a filtering picker to drive a dynamic picker hence
does duplicate work of filtering thousands of matches for no reason. It
could also cause problems like interfering with the regex pattern in the
global search.

I tried to directly extract a PickerBase to be reused in Picker and
FilePicker and DynamicPicker, but the problem is that DynamicPicker is
actually a DynamicFilePicker (i.e. it can preview file contents) which
means we would need PickerBase, Picker, FilePicker, DynamicPicker and
DynamicFilePicker and then another way of sharing the previewing code
between a FilePicker and a DynamicFilePicker. By merging Picker and
FilePicker into Picker, we only need PickerBase, Picker and
DynamicPicker.

[gokuls-comment]: https://github.com/helix-editor/helix/issues/5714#issuecomment-1410949578
[mikes-comment]: https://github.com/helix-editor/helix/issues/5714#issuecomment-1407451963
1 year ago
.cargo enable rendering in integration tests (#5819) 2 years ago
.github build(deps): bump cachix/install-nix-action from 20 to 21 (#7170) 1 year ago
book Add forth-lsp and update tree-sitter-forth (#7334) 1 year ago
contrib Add 23.05 to the AppData 2 years ago
docs misc doc fixes/improvements (#7282) 1 year ago
helix-core Add config for default line ending (#5621) 1 year ago
helix-dap Fix unwrap bug in DAP (#6786) 2 years ago
helix-loader build(deps): bump tempfile from 3.5.0 to 3.6.0 (#7326) 1 year ago
helix-lsp Rebase cleanup/fixes and use lsp::CompletionItem in item_to_transaction directly 2 years ago
helix-parsec revamped snippet text element parsing 2 years ago
helix-term Move FilePicker::render from Component impl to normal impl 1 year ago
helix-tui Fix style overwriting in table rows with multiple cells (#7281) 1 year ago
helix-vcs build(deps): bump gix from 0.44.1 to 0.46.0 (#7325) 1 year ago
helix-view Use default line ending in open command (#7357) 1 year ago
runtime Add forth-lsp and update tree-sitter-forth (#7334) 1 year ago
xtask Fix docgen again 2 years ago
.envrc Work around a nix-direnv issue 3 years ago
.gitattributes Add .gitattributes (#3318) 2 years ago
.gitignore Remove vale from .gitignore 2 years ago
.ignore Add a .ignore file to make ripgrep more useful (#3315) 2 years ago
CHANGELOG.md misc doc fixes/improvements (#7282) 1 year ago
Cargo.lock build(deps): bump libc from 0.2.145 to 0.2.146 (#7327) 1 year ago
Cargo.toml Update tree-sitter to v0.20.10 (#6608) 2 years ago
LICENSE Add the LICENSE file. 4 years ago
README.md Rewrite and refactor all documentation (#5534) 2 years ago
VERSION Bump the version to 23.05 2 years ago
base16_theme.toml Set ui.text.inactive for official themes 2 years ago
default.nix build(nix): update flake deps, add default.nix file 2 years ago
flake.lock nix: Update flake dependencies 2 years ago
flake.nix nix: add overlay for convenient package usage (#7078) 2 years ago
grammars.nix nix: replace `runCommandNoCC` with `runCommand` (#3992) 2 years ago
languages.toml Add forth-lsp and update tree-sitter-forth (#7334) 1 year ago
logo.svg Add the new logo! 2 years ago
logo_dark.svg Add logo with text included (#4973) 2 years ago
logo_light.svg Add logo with text included (#4973) 2 years ago
rust-toolchain.toml update MSRV to 1.65 2 years ago
rustfmt.toml Add rustfmt.toml to force formatting to use rustfmt defaults 3 years ago
screenshot.png update screenshot (#1879) 3 years ago
shell.nix build(nix): update flake deps, add default.nix file 2 years ago
theme.toml feat(debug): highlight current line (#5957) 2 years ago

README.md

Helix

Build status GitHub Release Documentation GitHub contributors Matrix Space

Screenshot

A Kakoune / Neovim inspired editor, written in Rust.

The editing model is very heavily based on Kakoune; during development I found myself agreeing with most of Kakoune's design decisions.

For more information, see the website or documentation.

All shortcuts/keymaps can be found in the documentation on the website.

Troubleshooting

Features

  • Vim-like modal editing
  • Multiple selections
  • Built-in language server support
  • Smart, incremental syntax highlighting and code editing via tree-sitter

It's a terminal-based editor first, but I'd like to explore a custom renderer (similar to Emacs) in wgpu or skulpin.

Note: Only certain languages have indentation definitions at the moment. Check runtime/queries/<lang>/ for indents.scm.

Installation

Installation documentation.

Packaging status

Contributing

Contributing guidelines can be found here.

Getting help

Your question might already be answered on the FAQ.

Discuss the project on the community Matrix Space (make sure to join #helix-editor:matrix.org if you're on a client that doesn't support Matrix Spaces yet).

Credits

Thanks to @JakeHL for designing the logo!