From db62462a93e49466e184c066680a4a01dfe60f87 Mon Sep 17 00:00:00 2001 From: archseer Date: Mon, 30 Sep 2024 02:19:18 +0000 Subject: [PATCH] deploy: 42453786a0530d0d0bb26e6420e1631939cb04b9 --- master/print.html | 15 +++++++++++++++ master/searchindex.js | 2 +- master/searchindex.json | 2 +- master/usage.html | 15 +++++++++++++++ 4 files changed, 32 insertions(+), 2 deletions(-) diff --git a/master/print.html b/master/print.html index aaefe4fef..c826e2cfa 100644 --- a/master/print.html +++ b/master/print.html @@ -457,6 +457,21 @@ can be accessed via the command hx --tutor or :tutor.<

💡 Currently, not all functionality is fully documented, please refer to the key mappings list.

+

Modes

+

Helix is a modal editor, meaning it has different modes for different tasks. The main modes are:

+ +

Buffers

+

Buffers are in-memory representations of files. You can have multiple buffers open at once. Use pickers or commands like :buffer-next and :buffer-previous to open buffers or switch between them.

+

Selection-first editing

+

Inspired by Kakoune, Helix follows the selection → action model. This means that whatever you are going to act on (a word, a paragraph, a line, etc.) is selected first and the action itself (delete, change, yank, etc.) comes second. A cursor is simply a single width selection.

+

Multiple selections

+

Also inspired by Kakoune, multiple selections are a core mode of interaction in Helix. For example, the standard way of replacing multiple instance of a word is to first select all instances (so there is one selection per instance) and then use the change action (c) to edit them all at the same time.

+

Motions

+

Motions are commands that move the cursor or modify selections. They're used for navigation and text manipulation. Examples include w to move to the next word, or f to find a character. See the Movement section of the keymap for more motions.

Registers