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
A-Walrus 45dbcb6783
Fix closing buffer with custom keymap (#3633)
* Fix closing buffer with custom keymap

* Add comment explaining if
2022-09-02 01:59:39 +09:00
.cargo
.github
book
contrib
docs
helix-core
helix-dap
helix-loader
helix-lsp
helix-term Fix closing buffer with custom keymap (#3633) 2022-09-02 01:59:39 +09:00
helix-tui
helix-view Fix closing buffer with custom keymap (#3633) 2022-09-02 01:59:39 +09:00
runtime Change MonokaiProSpectrum theme error background from red to magenta. (#3627) 2022-09-01 07:45:22 -05:00
xtask
.envrc
.gitattributes
.gitignore
.ignore
base16_theme.toml
Cargo.lock Update deps 2022-09-01 16:00:19 +09:00
Cargo.toml
CHANGELOG.md Add changelog entries for 22.08 2022-08-31 11:37:17 -05:00
default.nix
flake.lock
flake.nix
grammars.nix
languages.toml
LICENSE
README.md
rust-toolchain.toml
rustfmt.toml
screenshot.png
shell.nix
theme.toml
VERSION Bump VERSION to 22.08 2022-08-31 11:43:51 -05: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

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 /e runtime %AppData%\helix\runtime
Windows (PowerShell) xcopy /e 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:

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