Shell tricks
Updated: 2025-09-05Fuzzy-Finding and Opening Files in Helix (fzf / skim)
-
Open file with fzf:
hx $(fzf)
-
Define a shell function (in
~/.bashrc
or~/.zshrc
):fhx() { hx "$(fzf)"; }
Then just run
fhx
. -
Limit to project files with
fd
orrg
:hx $(fd -t f | fzf) # or hx $(rg --files | fzf)
-
Open multiple files:
hx $(fzf -m)
🔀 Alternative: You can use skim (sk), a Rust-based fzf clone, in the same way:
hx $(sk)
Find and remove file
rm $(sk)