3

GitHub - antonmedv/llama: Terminal file manager

 2 years ago
source link: https://github.com/antonmedv/llama
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

llama llama

Llama — a terminal file manager.

Why another file manager? I wanted something simple and minimalistic, something to help me with faster navigation in the filesystem. A cd & ls replacement. So I build "llama". It allows to quickly navigate with fuzzy searching, cd integration is quite simple. Opens vim right from llama. That's it. Simple and dumb as a llama.

Install

go get github.com/antonmedv/llama

Or download prebuild binaries.

Put the next function into ~/.bashrc:

function ll {
  llama "$@" 2> /tmp/path
  if [[ -d `cat /tmp/path` ]]; then
    cd `cat /tmp/path`
  fi
}

Use ll to navigate the filesystem. Note: we need a such helper as the child process can't modify the working directory of the parent process.

Usage

Key binding Description

Arrows Move cursor

Enter Enter directory

Backspace Exit directory

[A-Z] Fuzzy search

Esc Exit with cd

Ctrl+C Exit with noop

Use LLAMA_EDITOR environment variable to specify program for opening files.

export LLAMA_EDITOR=vim

License

MIT


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK