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
Michael Davis 22c1a40725
Fix finding injection layer in tree cursor with nested layers (#11365)
The `take_while` should limit the layers to those that can match the
input range so we don't always scan the entire `injection_layers`. We
can limit `depth == 1` layers to those that start before the search
`end`. Deeper layers overlap with shallower layers though so we need
to allow those layers as well in the `take_while`.

For example

```vue
<script setup lang="ts">
const foo = 'bar'.match(/foo/);
const bar = foo;
</script>
```

L2 and L3 are a typescript layer and the `/foo/` part is a small regex
layer. If you used `A-o` before the regex layer you would select the
entire typescript layer. The search in `layer_id_containing_byte_range`
would not consider the typescript layer since the regex layer comes
earlier in `injection_ranges` and that layer's start is after `end`.
The regex layer has a depth of `2` though so the change in this commit
allows scanning through that layer.

Co-authored-by: Pascal Kuthe <pascalkuthe@pm.me>
4 months ago
.cargo Add hook/event system 10 months ago
.github fix: usage of `node12 which is deprecated` (#11277) 4 months ago
book Add theme keys for the picker header area (#11343) 4 months ago
contrib contrib: nushell: also complete available languages with --health (#11346) 4 months ago
docs Documented ulimit fix for error during integration tests (#11356) 4 months ago
helix-core Fix finding injection layer in tree cursor with nested layers (#11365) 4 months ago
helix-dap `&Option<T>` -> `Option<&T>` (#11091) 4 months ago
helix-event gracefully handle lack of tokio runtime 4 months ago
helix-loader `&Option<T>` -> `Option<&T>` (#11091) 4 months ago
helix-lsp build(deps): bump the rust-dependencies group with 6 updates (#11371) 4 months ago
helix-parsec use workspace inheritance for common version (#8925) 12 months ago
helix-stdx Fix writing hardlinks (#11340) 4 months ago
helix-term Add theme keys for the picker header area (#11343) 4 months ago
helix-tui build(deps): bump the rust-dependencies group with 4 updates (#11032) 5 months ago
helix-vcs build(deps): bump the rust-dependencies group with 6 updates (#11371) 4 months ago
helix-view reduce log noise on file writes (#11361) 4 months ago
runtime new theme named ao (#11063) 4 months ago
xtask chore: remove unused xtask themelint (#10294) 7 months ago
.envrc direnv: Watch the rust-toolchain file (#8921) 12 months ago
.gitattributes Add .gitattributes (#3318) 2 years ago
.gitignore Remove vale from .gitignore 2 years ago
CHANGELOG.md Fix `select_all_children` command (#11195) 4 months ago
Cargo.lock build(deps): bump the rust-dependencies group with 6 updates (#11371) 4 months ago
Cargo.toml avoid collecting columns to a temporary vec 4 months ago
LICENSE Add the LICENSE file. 4 years ago
README.md Exclude EOL repos from the Repology badge (#11159) 4 months ago
base16_theme.toml base16_default: add styles to newer unthemed features (#10858) 5 months ago
default.nix Expose all flake outputs through flake-compat (#10673) 6 months ago
flake.lock flake.lock: Bump flake inputs to prevent a warning message (#9816) 8 months ago
flake.nix in flake mkShell default RUSTFLAGS to an empty string if unset (#10880) 5 months ago
grammars.nix Make nix flake respect unused grammars (#9326) 10 months ago
languages.toml feat(languages): update `just` grammar and queries (#11306) 4 months ago
logo.svg Reduce logo sizes even more (#9211) 11 months ago
logo_dark.svg Reduce logo sizes even more (#9211) 11 months ago
logo_light.svg Reduce logo sizes even more (#9211) 11 months ago
rust-toolchain.toml Bump MSRV to 1.74.0 6 months 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 Adjust the ruler color of the default theme 4 months 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 @jakenvac for designing the logo!