A post-modern modal text editor.
 
 
 
 
 
Go to file
Michael Davis 9e31ba5475
Consolidate DynamicPicker into Picker
DynamicPicker is a thin wrapper over Picker that holds some additional
state, similar to the old FilePicker type. Like with FilePicker, we want
to fold the two types together, having Picker optionally hold that
extra state.

The DynamicPicker is a little more complicated than FilePicker was
though - it holds a query callback and current query string in state and
provides some debounce for queries using the IdleTimeout event.
We can move all of that state and debounce logic into an AsyncHook
implementation, introduced here as `DynamicQueryHandler`. The hook
receives updates to the primary query and debounces those events so
that once a query has been idle for a short time (275ms) we re-run
the query.

A standard Picker created through `new` for example can be promoted into
a Dynamic picker by chaining the new `with_dynamic_query` function, very
similar to FilePicker's replacement `with_preview`.

The workspace symbol picker has been migrated to the new way of writing
dynamic pickers as an example. The child commit will promote global
search into a dynamic Picker as well.
2024-07-15 09:31:32 -04:00
.cargo Add hook/event system 2024-01-23 11:20:19 +09:00
.github --- (#10798) 2024-05-22 01:22:06 +09:00
book Refactor Picker in terms of columns 2024-07-15 09:31:31 -04:00
contrib Add changelog notes for 24.07 (#10731) 2024-07-15 01:17:49 +09:00
docs Fix homebrew formula link (#11058) 2024-06-30 16:07:57 +09:00
helix-core Bump nucleo to v0.4.1 2024-07-15 09:31:32 -04:00
helix-dap `&Option<T>` -> `Option<&T>` (#11091) 2024-07-09 18:34:28 +09:00
helix-event build(deps): bump the rust-dependencies group across 1 directory with 11 updates (#10715) 2024-05-07 21:43:40 +02:00
helix-loader `&Option<T>` -> `Option<&T>` (#11091) 2024-07-09 18:34:28 +09:00
helix-lsp `&Option<T>` -> `Option<&T>` (#11091) 2024-07-09 18:34:28 +09:00
helix-parsec use workspace inheritance for common version (#8925) 2023-12-05 10:54:18 +09:00
helix-stdx build(deps): bump the rust-dependencies group with 4 updates (#11032) 2024-06-25 23:22:20 +09:00
helix-term Consolidate DynamicPicker into Picker 2024-07-15 09:31:32 -04:00
helix-tui build(deps): bump the rust-dependencies group with 4 updates (#11032) 2024-06-25 23:22:20 +09:00
helix-vcs build(deps): bump the rust-dependencies group with 5 updates (#11113) 2024-07-09 19:40:22 +09:00
helix-view Add changes for undo in insert mode (#11090) 2024-07-10 12:38:50 +09:00
runtime Theme: Kanagawa Dragon (#10172) 2024-07-14 03:01:58 +09:00
xtask chore: remove unused xtask themelint (#10294) 2024-04-08 18:15:31 +02:00
.envrc direnv: Watch the rust-toolchain file (#8921) 2023-11-29 11:01:12 +09:00
.gitattributes Add .gitattributes (#3318) 2022-08-03 08:21:51 -05:00
.gitignore Remove vale from .gitignore 2022-07-26 10:22:28 +09:00
CHANGELOG.md Add changelog notes for 24.07 (#10731) 2024-07-15 01:17:49 +09:00
Cargo.lock Bump nucleo to v0.4.1 2024-07-15 09:31:32 -04:00
Cargo.toml Bump nucleo to v0.4.1 2024-07-15 09:31:32 -04:00
LICENSE Add the LICENSE file. 2021-05-11 01:44:00 +09:00
README.md Exclude EOL repos from the Repology badge (#11159) 2024-07-14 11:31:33 +09:00
base16_theme.toml base16_default: add styles to newer unthemed features (#10858) 2024-06-23 10:07:13 +09:00
default.nix Expose all flake outputs through flake-compat (#10673) 2024-05-07 01:33:59 +09:00
flake.lock flake.lock: Bump flake inputs to prevent a warning message (#9816) 2024-03-06 00:00:34 +09:00
flake.nix in flake mkShell default RUSTFLAGS to an empty string if unset (#10880) 2024-06-10 17:08:39 +02:00
grammars.nix Make nix flake respect unused grammars (#9326) 2024-01-14 15:11:40 +01:00
languages.toml Update tree-sitter-todotxt (#11097) 2024-07-14 02:59:21 +09:00
logo.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
logo_dark.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
logo_light.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
rust-toolchain.toml Bump MSRV to 1.74.0 2024-05-07 15:15:52 -04:00
rustfmt.toml Add rustfmt.toml to force formatting to use rustfmt defaults 2021-07-23 18:11:22 +09:00
screenshot.png update screenshot (#1879) 2022-03-30 00:16:57 +09:00
shell.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
theme.toml Adjust the ruler color of the default theme 2024-07-15 01:19:09 +09:00

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 @jakenvac for designing the logo!