1
0
mirror of https://github.com/helix-editor/helix synced 2024-11-10 10:34:45 +01:00
A post-modern modal text editor. https://helix-editor.com
Go to file
Hugo 89c6e8aa94
Remove unnecessary unwrap (#2599)
`strip_prefix` will itself check whether the string starts with the
prefix, so the extra call to `starts_with` was unnecessary.
2022-05-29 11:13:21 +09:00
.cargo
.github
book Add Vlang tree-sitter in the languages.toml (#2526) 2022-05-28 14:46:10 -05:00
contrib
docs
helix-core Remove unnecessary unwrap (#2599) 2022-05-29 11:13:21 +09:00
helix-dap
helix-loader mention the C++ compiler in the grammar build failure message (#2597) 2022-05-29 11:06:31 +09:00
helix-lsp
helix-term Bump dependencies, allow retain_mut for now 2022-05-29 11:10:49 +09:00
helix-tui
helix-view
runtime Add Vlang tree-sitter in the languages.toml (#2526) 2022-05-28 14:46:10 -05:00
xtask
.envrc
.gitignore
base16_theme.toml
Cargo.lock Bump dependencies, allow retain_mut for now 2022-05-29 11:10:49 +09:00
Cargo.toml
CHANGELOG.md Fix link to pop-dark in CHANGELOG.md (#2594) 2022-05-28 13:11:31 -05:00
flake.lock
flake.nix
grammars.nix
languages.toml Add Vlang tree-sitter in the languages.toml (#2526) 2022-05-28 14:46:10 -05:00
LICENSE
README.md
rust-toolchain.toml
rustfmt.toml
screenshot.png
shell.nix
theme.toml
VERSION Fix the VERSION file 2022-05-29 01:07:30 +09:00

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
hx --grammar fetch
hx --grammar build

This will install the hx binary to $HOME/.cargo/bin and build tree-sitter grammars.

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 xcopy runtime %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).