2025-03-14 21:59:59 -06:00
|
|
|
# hx
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> Helix, a post-modern text editor, provides several modes for different kinds of text manipulation.
|
|
|
|
|
> Pressing `<i>` enters insert mode. `<Esc>` enters normal mode, which enables the use of Helix commands.
|
|
|
|
|
> More information: <https://manned.org/man/debian-forky/hx>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Open a file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`hx {{path/to/file}}`
|
|
|
|
|
|
|
|
|
|
- Open files and show them one next each other:
|
|
|
|
|
|
|
|
|
|
`hx --vsplit {{path/to/file1 path/to/file2 ...}}`
|
|
|
|
|
|
|
|
|
|
- Show the tutorial to learn Helix (or access it within Helix by pressing `<Esc>` and typing `<:>tutor<Enter>`):
|
|
|
|
|
|
|
|
|
|
`hx --tutor`
|
|
|
|
|
|
|
|
|
|
- Change the Helix theme:
|
|
|
|
|
|
|
|
|
|
`<:>theme {{theme_name}}`
|
|
|
|
|
|
|
|
|
|
- Save and Quit:
|
|
|
|
|
|
|
|
|
|
`<:>wq<Enter>`
|
|
|
|
|
|
|
|
|
|
- Force-quit without saving:
|
|
|
|
|
|
|
|
|
|
`<:>q!<Enter>`
|
|
|
|
|
|
|
|
|
|
- Undo the last operation:
|
|
|
|
|
|
|
|
|
|
`<u>`
|
|
|
|
|
|
|
|
|
|
- Search for a pattern in the file (press `<n>`/`<N>` to go to next/previous match):
|
|
|
|
|
|
|
|
|
|
`</>{{search_pattern}}<Enter>`
|