Helix IDE
- Doc, repo.
- Tutorial is available as
hx --tutor
or:tutor
. - Modes:
C-w
window (C-w w
next window)]
right bracket goto next (]d
diagnostic;]f
function)g
goto (gd
definition;gs
first non-blank in line;gn
next buffer)i
insert (C-c
close popup;C-k
delete to end of line)m
match (mim
select inside matching pair;mi"
select inside double quotes;ms"
surround selection with double quotes);maf
select function definition;mat
select type (class) definitionspace
?
open searchable command palette (%[col]
followed by string to restrict search to a column)k
documentationf
file picker (C-n
next;C-p
previous;C-v
open vertical;C-s
open horizontal)'
Reopen previous picker/
Global multi-file search;r
Global multi-file replace symbol (place cursor on symbol first)
v
visual selectz
view (zt
align to window top)
- Normal mode:
[n]x
select lines; Undo by switching to visual select and moving- Tree-sitter:
A-p
(previous),A-o
(extend),A-i
(reduce) andA-n
(next) allow you to move the selection according to its location in the syntax tree A
insert at end of line;I
insert at first non-whitespace in lineA-;
Goto other end of selection- Create cursor on next line:
C
- Make selection the search string:
*
- Collapse selection onto a single cursor
;
- Swap case:
~
; Lowercase:`
w
start of next word;e
end of current word;b
beginning of current word (WEB
for WORD movement)f
find next occurance of character (F
for previous);t
andT
are similar but does not include character- Jumplist/history:
C-i
in/forwards;C-o
out/backwards;C-s
add C-c
toggle commentQ
toggle recording;q
play recording
- Commands:
- Deduplicate:
%
;:pipe sort
;:pipe uniq
(wrap selected text::pipe fmt -w 80
) - Make whitespace visible:
:set whitespace.render all
- Open an arbitrary file:
:o
- Replace all:
%
select alls
select matches, followed by old string/regex and<CR>
c
replace all with cursors, followed by new string<ESC>,
deactivate and deselect cursors
:insert-output
to run shell command and insert its output.
- Deduplicate:
Configuration
Uses https://github.com/ahernp/config/tree/master/files/helix.
Language servers
Check: hx --health [python|javascript|html|css]
- Python (
pylsp
):pip install python-lsp-server
- Javascript:
sudo npm install -g typescript typescript-language-server
- CSS, HTML and JSON:
sudo npm i -g vscode-langservers-extracted