No description
Find a file
A-Walrus c00b8f7ad7
Fix tab highlight when tab is partially visible ()
* Fix tab highlight when tab is partially visible

* Make it style based, and not truncation based

Dealing with truncating is a mess, especially when it comes to wide
unicode graphemes. This way it should work no matter what.

* Inline style calculation into branches
2022-08-07 00:46:50 +09:00
.cargo add integration-test cargo alias 2022-06-18 23:57:47 -04:00
.github
book add a CLI flag for specifying config file location () 2022-08-04 13:05:52 +09:00
contrib fix: add elvish completions () 2022-08-05 09:50:47 +09:00
docs
helix-core Fix nondeterministic highlighting () 2022-08-05 09:12:14 +09:00
helix-dap
helix-loader add a CLI flag for specifying config file location () 2022-08-04 13:05:52 +09:00
helix-lsp
helix-term Fix tab highlight when tab is partially visible () 2022-08-07 00:46:50 +09:00
helix-tui
helix-view Fix comment () 2022-08-05 20:13:58 -05:00
runtime Fix indent guide styling () 2022-08-07 00:46:23 +09:00
xtask Add workspace and document diagnostics picker () 2022-06-30 18:16:18 +09:00
.envrc
.gitattributes Add .gitattributes () 2022-08-03 08:21:51 -05:00
.gitignore Remove vale from .gitignore 2022-07-26 10:22:28 +09:00
.ignore
base16_theme.toml
Cargo.lock Update dependencies (chrono) 2022-08-05 09:10:07 +09:00
Cargo.toml
CHANGELOG.md Fix link to pop-dark in CHANGELOG.md () 2022-05-28 13:11:31 -05:00
default.nix build(nix): update flake deps, add default.nix file 2022-06-21 17:39:30 -05:00
flake.lock
flake.nix Only add cargo-tarpaulin on x86_64 () 2022-07-31 14:52:54 -05:00
grammars.nix
languages.toml
LICENSE
README.md
rust-toolchain.toml pin the rust toolchain to 1.61.0 2022-05-24 01:05:19 +09:00
rustfmt.toml Add rustfmt.toml to force formatting to use rustfmt defaults 2021-07-23 18:11:22 +09:00
screenshot.png
shell.nix
theme.toml Add a default cursorline style for the primary selection 2022-06-27 17:27:24 +09:00
VERSION

Helix

Build status

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

Packages are available for various distributions (see Installation docs).

If you would like to build from source:

git clone https://github.com/helix-editor/helix
cd helix
cargo install --path helix-term

This will install the hx binary to $HOME/.cargo/bin and build tree-sitter grammars. If you want to customize your languages.toml config, tree-sitter grammars may be manually fetched and built with hx --grammar fetch and hx --grammar build.

Helix also needs its runtime files so make sure to copy/symlink the runtime/ directory into the config directory (for example ~/.config/helix/runtime on Linux/macOS, or %AppData%/helix/runtime on Windows).

OS Command
Windows (cmd.exe) xcopy runtime %AppData%\helix\runtime
Windows (PowerShell) xcopy runtime $Env:AppData\helix\runtime
Linux/macOS ln -s $PWD/runtime ~/.config/helix/runtime

This location can be overridden via the HELIX_RUNTIME environment variable.

Packages already solve this for you by wrapping the hx binary with a wrapper that sets the variable to the install dir.

NOTE: running via cargo also doesn't require setting explicit HELIX_RUNTIME path, it will automatically detect the runtime directory in the project root.

In order to use LSP features like auto-complete, you will need to install the appropriate Language Server for a language.

Packaging status

MacOS

Helix can be installed on MacOS through homebrew via:

brew tap helix-editor/helix
brew install helix

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).