A post-modern modal text editor.
Go to file
Michael Davis d3575dc0ff
Run textobject queries across injections
With this change textobjects work even within injection layers, so you
can use `]f` to jump to a function definition in a JavaScript `<script>`
tag within HTML for example.

This requires `Syntax::query_iter` - a utility function for running a
query from `HighlightConfiguration` across injection layers - which
comes from the rainbow brackets branch (merged into my driver).
We need to relocate the textobject query from the `LanguageConfiguration`
to the `HighlightConfiguration` in order to access it
per-injection-layer, like we do for the rainbow brackets query. With
that, the only necessary change is to port the contents of
`TextObjectQuery::capture_nodes_any` to a new function that uses
`query_iter` and update callers.

The callers end up being a bit cleaner: they only need to take `Syntax`
now and not `LanguageConfiguration` and the root layer's root
`tree_sitter::Node`.
2024-02-26 06:38:17 -05:00
.cargo Add hook/event system 2024-01-23 11:20:19 +09:00
.github Don't run scheduled builds on forks (#9718) 2024-02-25 19:37:54 +09:00
book Add Groovy grammar (#9350) 2024-02-19 18:37:02 +01:00
contrib Completely fix bash autocomplete handling of filenames with spaces (#9708) 2024-02-24 11:54:40 +09:00
docs use workspace inheritance for common version (#8925) 2023-12-05 10:54:18 +09:00
helix-core Run textobject queries across injections 2024-02-26 06:38:17 -05:00
helix-dap Improve error handling for which::which failures 2024-01-24 15:47:49 +09:00
helix-event Add hook/event system 2024-01-23 11:20:19 +09:00
helix-loader Optimization of tilde expansion (#9709) 2024-02-24 16:59:11 +01:00
helix-lsp Use a hook for resolving completion items 2024-02-22 22:37:23 -05:00
helix-parsec use workspace inheritance for common version (#8925) 2023-12-05 10:54:18 +09:00
helix-stdx switch to regex-cursor (#9422) 2024-02-26 16:45:20 +09:00
helix-term Run textobject queries across injections 2024-02-26 06:38:17 -05:00
helix-tui build(deps): bump unicode-segmentation from 1.10.1 to 1.11.0 (#9617) 2024-02-13 09:57:37 +09:00
helix-vcs build(deps): bump tempfile from 3.9.0 to 3.10.0 (#9538) 2024-02-12 02:23:24 +01:00
helix-view LSP: Key diagnostics off file path instead of URI 2024-02-26 00:12:43 +09:00
runtime Fix colors of tokyonight diagnostic undercurls (#9724) 2024-02-26 10:53:59 +09:00
xtask Run textobject queries across injections 2024-02-26 06:38:17 -05: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
base16_theme.toml Set ui.text.inactive for official themes 2022-12-17 13:59:05 -06:00
Cargo.lock switch to regex-cursor (#9422) 2024-02-26 16:45:20 +09:00
Cargo.toml Create helix-stdx crate for stdlib extensions 2024-01-18 10:57:53 +09:00
CHANGELOG.md Add changelog notes for 23.10 (#8086) 2023-10-26 01:10:45 +09:00
default.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
flake.lock nix: update flake inputs (#8943) 2023-12-04 01:46:17 +01:00
flake.nix Fix version of Nix package (#9013) 2023-12-09 03:04:09 +09:00
grammars.nix Make nix flake respect unused grammars (#9326) 2024-01-14 15:11:40 +01:00
languages.toml slint: Update SHA of tree-sitter parser (#9698) 2024-02-26 16:08:31 +09:00
LICENSE Add the LICENSE file. 2021-05-11 01:44:00 +09: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
logo.svg Reduce logo sizes even more (#9211) 2024-01-02 23:16:37 +01:00
README.md Update README.md to add link to Kakoune and Neovim (#9119) 2023-12-19 15:50:39 +01:00
rust-toolchain.toml bump MSRV to 1.70.0 (#8877) 2023-11-25 13:55:49 +01: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 feat(debug): highlight current line (#5957) 2023-03-29 12:52:19 +09:00

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!