lk — a terminal navigator.
Taken from antonmedv/walk:
Why another terminal navigator? I wanted something simple and minimalistic. Something to help me with faster navigation in the filesystem; a
cd
andls
replacement. So I build [lk
]. It allows for quick navigation with fuzzy searching,cd
integration is quite simple. And you can openvim
right from [lk
]. That's it.
go install github.com/ardnew/walk/v2/cmd/lk@latest
Or download prebuild binaries.
Put the next function into the .bashrc
or a similar config:
Bash/Zsh | Fish | PowerShell |
---|---|---|
function clk {
cd "$(lk "$@")"
} |
function clk
set loc (lk $argv); and cd $loc;
end |
function clk() {
cd $(lk $args)
} |
Now use clk
command to start walking.
Key binding | Description |
---|---|
Arrows , hjkl |
Move cursor |
Enter |
Enter directory |
Backspace |
Exit directory |
Space |
Toggle preview |
Esc , q |
Exit with cd |
Ctrl+c |
Exit without cd |
/ |
Fuzzy search |
dd |
Delete file or dir |
y |
yank current dir |
The EDITOR
or LK_EDITOR
environment variable used for opening files from lk.
export EDITOR=vim
Press Space
to toggle preview mode.
Press dd
to delete file or directory. Press u
to undo.
Install Nerd Fonts and add --icons
flag.
No additional setup is required.
Every line of code in my repositories 📖 signifies my unwavering commitment to open source 💡. Your support 🤝 ensures these projects keep thriving, innovating, and benefiting all 💼. If my work has ever resonated 🎵 or helped you, kindly consider showing love ❤️ by sponsoring. 🚀 Sponsor Me Today! 🚀