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
Pascal Kuthe 72b9311678 fix view anchors not at start of a visual line
The top of a view is marked by a char idx anchor. That char idx is
usually the first character of the visual line it's on. We use a char
index instead of a line index because the view may start in the middle
of a line with soft wrapping. However, it's possible to temporarily
endup in a state where this anchor is not the first character of the
first visual line. This is pretty rare because edits usually happen
inside/after the view. In most cases we handle this case correctly.

However, if the cursor is before the anchor (but still in view)
there can be crashes or visual artifacts. This is caused by the fact
that visual_offset_from_anchor (and the positioning code in view.rs)
incorrectly assumed that the (cursor) position is always after the
view anchor if the cursor is in view. But if the anchor is not the
first character of the first visual line this is not the case anymore.

In that case crashes and visual artifacts are possible. This commit
fixes that problem by changing `visual_offset_from_anchor` (and
callsites) to properly consider that case.
2 years ago
.cargo enable rendering in integration tests (#5819) 2 years ago
.github update MSRV to 1.65 2 years ago
book Initial Nim language support (#6123) 2 years ago
contrib Add Appstream metadata file (#5643) 2 years ago
docs Document how to run tests (#6268) 2 years ago
helix-core fix view anchors not at start of a visual line 2 years ago
helix-dap feat(dap): implement Restart request (#5651) 2 years ago
helix-loader Generalised to multiple runtime directories with priorities (#5411) 2 years ago
helix-lsp detailed snippet tests 2 years ago
helix-parsec revamped snippet text element parsing 2 years ago
helix-term remove incorrect assert 2 years ago
helix-tui build(deps): bump bitflags from 1.3.2 to 2.0.2 (#6387) 2 years ago
helix-vcs log failures in the git integration (#6441) 2 years ago
helix-view fix view anchors not at start of a visual line 2 years ago
runtime Initial Nim language support (#6123) 2 years ago
xtask feat: lint for `ui.virtual` and catch present and future virtual based features (#6320) 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 Add changelog notes for 22.12 (#4822) 2 years ago
Cargo.lock log failures in the git integration (#6441) 2 years ago
Cargo.toml Add a parser-combinator crate 2 years ago
LICENSE Add the LICENSE file. 4 years ago
README.md Rewrite and refactor all documentation (#5534) 2 years ago
VERSION Add changelog notes for 22.12 (#4822) 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 build(nix): fix devshell 2 years ago
flake.nix build(nix): fix devshell 2 years ago
grammars.nix nix: replace `runCommandNoCC` with `runCommand` (#3992) 2 years ago
languages.toml Initial Nim language support (#6123) 2 years 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 Add `markup.strikethrough` theme keys (#5619) 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!