| 1 |
# LF |
| 2 |
|
| 3 |
[Doc](doc.md) |
| 4 |
| [Wiki](https://github.com/gokcehan/lf/wiki) |
| 5 |
| [#lf:matrix.org](https://matrix.to/#/#lf:matrix.org) (with IRC bridge) |
| 6 |
|
| 7 |
[](https://github.com/gokcehan/lf/actions/workflows/go.yml) |
| 8 |
[](https://goreportcard.com/report/github.com/gokcehan/lf) |
| 9 |
|
| 10 |
`lf` (as in "list files") is a terminal file manager written in Go with a heavy inspiration from [`ranger`](https://github.com/ranger/ranger) file manager. |
| 11 |
See [faq](https://github.com/gokcehan/lf/wiki/FAQ) for more information and [tutorial](https://github.com/gokcehan/lf/wiki/Tutorial) for a gentle introduction with screencasts. |
| 12 |
|
| 13 |
 |
| 14 |
 |
| 15 |
 |
| 16 |
|
| 17 |
## Features |
| 18 |
|
| 19 |
- Cross-platform (Linux, macOS, BSDs, Windows) |
| 20 |
- Single binary without any runtime dependencies |
| 21 |
- Fast startup and low memory footprint due to native code and static binaries |
| 22 |
- Asynchronous IO operations to avoid UI locking |
| 23 |
- Server/client architecture and remote commands to manage multiple instances |
| 24 |
- Extendable and configurable with shell commands |
| 25 |
- Customizable keybindings (vi and readline defaults) |
| 26 |
- A reasonable set of other features (see the [documentation](doc.md)) |
| 27 |
|
| 28 |
## Non-Features |
| 29 |
|
| 30 |
- Tabs or windows (better handled by window manager or terminal multiplexer) |
| 31 |
- Builtin pager/editor (better handled by your pager/editor of choice) |
| 32 |
- Builtin commands for file operations (better handled by the underlying shell tools including but not limited to `mkdir`, `touch`, `chmod`, `chown`, `chgrp`, and `ln`) |
| 33 |
|
| 34 |
## Installation |
| 35 |
|
| 36 |
See [packages](https://github.com/gokcehan/lf/wiki/Packages) for community maintained packages. |
| 37 |
|
| 38 |
See [releases](https://github.com/gokcehan/lf/releases) for pre-built binaries. |
| 39 |
|
| 40 |
Building from the source requires [Go](https://go.dev/). |
| 41 |
|
| 42 |
On Unix: |
| 43 |
|
| 44 |
```bash |
| 45 |
env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest |
| 46 |
``` |
| 47 |
|
| 48 |
On Windows `cmd`: |
| 49 |
|
| 50 |
```cmd |
| 51 |
set CGO_ENABLED=0 |
| 52 |
go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest |
| 53 |
``` |
| 54 |
|
| 55 |
On Windows `PowerShell`: |
| 56 |
|
| 57 |
```powershell |
| 58 |
$env:CGO_ENABLED = '0' |
| 59 |
go install -trimpath -ldflags="-s -w" github.com/gokcehan/lf@latest |
| 60 |
``` |
| 61 |
|
| 62 |
## Usage |
| 63 |
|
| 64 |
After the installation `lf` command should start the application in the current directory. |
| 65 |
|
| 66 |
Run `lf -help` to see [command line options](doc.md#options). |
| 67 |
|
| 68 |
Run `lf -doc` to see the [documentation](doc.md). |
| 69 |
|
| 70 |
See [etc](etc) directory to integrate `lf` to your shell and/or editor. |
| 71 |
Example configuration files along with example colors and icons files can also be found in this directory. |
| 72 |
|
| 73 |
See [integrations](https://github.com/gokcehan/lf/wiki/Integrations) to integrate `lf` to other tools. |
| 74 |
|
| 75 |
See [tips](https://github.com/gokcehan/lf/wiki/Tips) for more examples. |
| 76 |
|
| 77 |
## Contributing |
| 78 |
|
| 79 |
See [contributing](CONTRIBUTING.md) for guidelines. |