gokcehan /lf

Terminal file manager

★ 9,599⑂ 390👁 61⑃ 1,104● 1,340▤ 42
GoMITCreated 2016-08-13
下载:r42r42 ↓422026-07-31
-2
日增长
9,599
stars
390
forks
61
watchers
1,104
prs
1,340
issues
42
releases

README

LF

Doc
| Wiki
| lf:matrix.org (with IRC bridge)




lf (as in "list files") is a terminal file manager written in Go with a heavy inspiration from ranger file manager.
See faq for more information and tutorial for a gentle introduction with screencasts.

!icons-and-border
!image-preview
!new-features

 Features

- Cross-platform (Linux, macOS, BSDs, Windows)
- Single binary without any runtime dependencies
- Fast startup and low memory footprint due to native code and static binaries
- Asynchronous IO operations to avoid UI locking
- Server/client architecture and remote commands to manage multiple instances
- Extendable and configurable with shell commands
- Customizable keybindings (vi and readline defaults)
- A reasonable set of other features (see the documentation)

 Non-Features

- Tabs or windows (better handled by window manager or terminal multiplexer)
- Builtin pager/editor (better handled by your pager/editor of choice)
- Builtin commands for file operations (better handled by the underlying shell tools including but not limited to mkdir, touch, chmod, chown, chgrp, and ln)

 Installation

See packages for community maintained packages.

See releases for pre-built binaries.

Building from the source requires Go.

On Unix:

bash
env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest


On Windows cmd:

cmd
set CGO_ENABLED=0
go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest


On Windows PowerShell:

powershell
$env:CGO_ENABLED = '0'
go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest


 Usage

After the installation lf command should start the application in the current directory.

Run lf -help to see command line options.

Run lf -doc to see the documentation.

See etc directory to integrate lf to your shell and/or editor.
Example configuration files along with example colors and icons files can also be found in this directory.

See integrations to integrate lf to other tools.

See tips for more examples.

 Contributing

See contributing for guidelines.

Top issues

Discussions

Latest release

r42 r42 2026-07-31
Changed

- The key  has been renamed to  for map keybindings (2286).
- .Stat.DirSize and .Stat.DirCount in the ruler file no longer have a pointer type, and will be set to -1 instead of nil if the corresponding value cannot be determined (2397).
- setlocal commands no longer support the ability to specify recursive directories (2415). For use cases where setlocal should apply to a directory based on some condition, it is recommended to script this inside the on-load hook command.
- On Windows, files are now considered executable according to PATHEXT when matching colors and icons (2448).

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON