LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

hx

command for Helix editor

TLDR

Open file
$ hx [file]
copy
Open at line
$ hx [file]:[line]
copy
Open multiple files
$ hx [file1] [file2]
copy
Check language support
$ hx --health [language]
copy
Open tutor
$ hx --tutor
copy
Split all given files into vertical windows
$ hx --vsplit [file1] [file2]
copy

SYNOPSIS

hx [options] [files]...

DESCRIPTION

hx is the command for Helix editor. Helix is a post-modern modal editor with built-in LSP support and tree-sitter integration.The editor uses selection-first editing model inspired by Kakoune. It provides syntax highlighting, completions, and diagnostics out of the box.

PARAMETERS

FILES

Files to edit, optionally suffixed with :LINE or :LINE:COLUMN.
+N
Open the first given file at line N.
--tutor
Open the interactive tutorial.
--health [CATEGORY]
Check for setup problems; CATEGORY can be a language name, or clipboard, languages, all-languages, all.
-c, --config FILE
Configuration file to use.
-g, --grammar {fetch|build}
Fetch or build tree-sitter grammars.
-w, --working-dir PATH
Initial working directory.
--vsplit / --hsplit
Split all given files vertically / horizontally into separate windows.
--strict
Bail with an error for commands that can fail.
--log FILE
File to use for logging.
-v
Increase logging verbosity (repeatable).
-h, --help
Display help information.
-V, --version
Print version information.

INSTALL

sudo apt install hx
copy
sudo dnf install helix
copy
sudo pacman -S helix
copy
sudo apk add helix
copy
sudo zypper install helix
copy
brew install hx
copy
nix profile install nixpkgs#helix
copy

CAVEATS

Different model than Vim. Learning curve for new users. Rust-based.

HISTORY

Helix was created as a modern terminal editor, taking inspiration from Kakoune and Neovim.

SEE ALSO

helix(1), vim(1), nvim(1)

RESOURCES

Copied to clipboard
Kai