mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 16:00:46 +00:00
Update cheatsheets
This commit is contained in:
36
tldr/helix
36
tldr/helix
@@ -5,38 +5,8 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# helix
|
||||
|
||||
> 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://manpages.debian.org/testing/hx/editor.1.en.html>.
|
||||
> This command is an alias of `hx`.
|
||||
|
||||
- Open a file:
|
||||
- View documentation for the original command:
|
||||
|
||||
`helix {{path/to/file}}`
|
||||
|
||||
- Open files and show them one next each other:
|
||||
|
||||
`helix --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>`):
|
||||
|
||||
`helix --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>`
|
||||
`tldr hx`
|
||||
|
||||
Reference in New Issue
Block a user