on 44566ea help sign in
helix/README.md
88 lines 3.3 kB history raw
1# Helix
4[![Build status](https://github.com/helix-editor/helix/actions/workflows/build.yml/badge.svg)](https://github.com/helix-editor/helix/actions)
6![Screenshot](./screenshot.png)
8A kakoune / neovim inspired editor, written in Rust.
10The editing model is very heavily based on kakoune; during development I found
11myself agreeing with most of kakoune's design decisions.
13For more information, see the [website](https://helix-editor.com) or
14[documentation](https://docs.helix-editor.com/).
16All shortcuts/keymaps can be found [in the documentation on the website](https://docs.helix-editor.com/keymap.html)
18# Features
20- Vim-like modal editing
21- Multiple selections
22- Built-in language server support
23- Smart, incremental syntax highlighting and code editing via tree-sitter
25It's a terminal-based editor first, but I'd like to explore a custom renderer
26(similar to emacs) in wgpu or skulpin.
28# Installation
30Note: Only certain languages have indentation definitions at the moment. Check
31`runtime/<lang>/` for `indents.toml`.
33We provide packaging for various distributions, but here's a quick method to
34build from source.
36```
37git clone --recurse-submodules --shallow-submodules -j8 https://github.com/helix-editor/helix
38cd helix
39cargo install --path helix-term
40```
42This will install the `hx` binary to `$HOME/.cargo/bin`.
44Now copy the `runtime/` directory somewhere. Helix will by default look for the runtime
45inside the config directory or the same directory as executable, but that can be overriden
46via the `HELIX_RUNTIME` environment variable.
48> NOTE: running via cargo doesn't require setting explicit `HELIX_RUNTIME` path, it will automatically
49> detect the `runtime` directory in the project root.
51If you want to embed the `runtime/` directory into the Helix binary you can build
52it with:
54```
55cargo install --path helix-term --features "embed_runtime"
56```
58[![Packaging status](https://repology.org/badge/vertical-allrepos/helix.svg)](https://repology.org/project/helix/versions)
60## MacOS
61Helix can be installed on MacOS through homebrew via:
63```
64brew tap helix-editor/helix
65brew install helix
66```
68# Contributing
70Contributors are very welcome! **No contribution is too small and all contributions are valued.**
72Some suggestions to get started:
74- You can look at the [good first issue](https://github.com/helix-editor/helix/labels/E-easy) label on the issue tracker.
75- Help with packaging on various distributions needed!
76- To use print debugging to the `~/.cache/helix/helix.log` file, you must:
77 * Print using `log::info!`, `warn!`, or `error!`. (`log::info!("helix!")`)
78 * Pass the appropriate verbosity level option for the desired log level. (`hx -v <file>` for info, more `v`s for higher severity inclusive)
79- If your preferred language is missing, integrating a tree-sitter grammar for
80 it and defining syntax highlight queries for it is straight forward and
81 doesn't require much knowledge of the internals.
83We provide an [architecture.md](./docs/architecture.md) that should give you
84a good overview of the internals.
86# Getting help
88Discuss the project on the community [Matrix Space](https://matrix.to/#/#helix-community:matrix.org) (make sure to join `#helix-editor:matrix.org` if you're on a client that doesn't support Matrix Spaces yet).