My build of lf
Go to file
2pac 17ed724e67
Completition menu cycling #72 (#482)
* utility modulus function

* ui adapt for tab menu cycle

* refactor(listMatches) for tab menu cycle

* refactor(draw) handle tab menu selection highlight

* refactor(eval) cmd-complete cycle + reset handles

* feat: added backtab counter-cycle in the completition menu

* cleanup

* docs changes

* refactor: make tab cycle own commands

* docs: tab cycle documentation

* bug: the matches list was not complete because index +2 after row end

* refactor(tab cycle): handle the complete menu command print

* refactor(tab cycle): make the cmdTmp varibale mymic cmdAccLeft + check for partial commands

* refactor(tab cycle): fix how to handle the menu completiton from different events

* fix(tab cycle): fix cmd-complete so that it works with new tab cycle commands

* style: changed puprle to reverse

* cleaned up cycle logic + reverted listMatches

* cleaned up eval logic for cycle feat.

* cleanup

Co-authored-by: 2pac <tarasyarema@pm.me>
2020-10-14 19:42:44 +03:00
etc [t]csh files added (lfcd,lf-complete) (#264) 2019-12-19 22:11:23 +03:00
gen update cross build script 2020-10-10 16:53:52 +03:00
.gitignore use dep for dependency management 2018-06-26 00:46:50 +03:00
.travis.yml set travis version to go1.15.x 2020-08-20 02:19:34 +03:00
app.go always export lf_options before previewing (#468) 2020-09-18 00:50:45 +03:00
client.go Replace termbox-go with tcell (#439) 2020-09-01 15:42:44 +03:00
colors_test.go Replace termbox-go with tcell (#439) 2020-09-01 15:42:44 +03:00
colors.go Replace termbox-go with tcell (#439) 2020-09-01 15:42:44 +03:00
complete_test.go rename 'comp' to 'complete' 2018-05-16 00:05:06 +03:00
complete.go Replace termbox-go with tcell (#439) 2020-09-01 15:42:44 +03:00
copy.go handle broken links with 'select' command 2020-07-20 02:15:30 +03:00
diacritics_test.go rename diacritics files 2019-01-18 21:21:31 +03:00
diacritics.go fix ineffective breaks, remove unused parameters (#210) 2019-08-12 14:52:27 +03:00
doc.go Completition menu cycling #72 (#482) 2020-10-14 19:42:44 +03:00
docstring.go Completition menu cycling #72 (#482) 2020-10-14 19:42:44 +03:00
eval_test.go skip trailing spaces in scanner 2020-07-04 04:07:01 +03:00
eval.go Completition menu cycling #72 (#482) 2020-10-14 19:42:44 +03:00
go.mod Replace termbox-go with tcell (#439) 2020-09-01 15:42:44 +03:00
go.sum go mod tidy 2020-09-01 23:10:16 +03:00
icons.go change default icons for special directories 2019-08-12 14:41:58 +03:00
lf.1 rename bs to backspace 2020-10-10 17:34:29 +03:00
lf.desktop Add lf.desktop (#222) 2019-08-30 17:32:23 +03:00
LICENSE initial commit 2016-08-13 15:49:04 +03:00
main.go always export lf_options before previewing (#468) 2020-09-18 00:50:45 +03:00
misc_test.go keep trailing backslash during reverse escape 2019-10-25 20:50:00 +03:00
misc.go Completition menu cycling #72 (#482) 2020-10-14 19:42:44 +03:00
nav.go initialize hiddenfiles for loading directories 2020-10-06 22:24:55 +03:00
opts.go rename bs to backspace 2020-10-10 17:34:29 +03:00
os_windows.go cleanup 2020-09-13 14:55:17 +03:00
os.go Replace termbox-go with tcell (#439) 2020-09-01 15:42:44 +03:00
parse.go added a count field to listExpr and toggle now ignores count (#394) 2020-07-03 18:29:55 +03:00
README.md update readme 2020-09-24 23:38:09 +03:00
scan.go skip trailing spaces in scanner 2020-07-04 04:07:01 +03:00
server.go fix ineffective breaks, remove unused parameters (#210) 2019-08-12 14:52:27 +03:00
ui.go Completition menu cycling #72 (#482) 2020-10-14 19:42:44 +03:00

LF

Google Groups | Wiki | #lf (on Freenode) | #lf:matrix.org (with IRC bridge)

Build Status Go Report Card GoDoc

This is a work in progress. Use at your own risk.

lf (as in "list files") is a terminal file manager written in Go. It is heavily inspired by ranger with some missing and extra features. Some of the missing features are deliberately omitted since they are better handled by external tools. See faq for more information and tutorial for a gentle introduction with screencasts.

multicol-screenshot singlecol-screenshot

Features

  • Cross-platform (Linux, OSX, BSDs, Windows (partial))
  • Single binary without any runtime dependencies (except for terminfo database)
  • Fast startup and low memory footprint (due to native code and static binaries)
  • Server/client architecture to share file selection between multiple instances
  • Configuration with shell commands
  • Customizable keybindings (vi and readline defaults)
  • Preview filtering (for source highlight, archives, pdfs/images as text etc.)

Non-Features

  • Tabs or windows (handled by window manager or terminal multiplexer)
  • Builtin pager/editor (handled by your pager/editor of choice)
  • Image previews (cool but no standard available)

May-Futures

  • Mouse control

Installation

See packages for community maintained packages.

See releases for pre-built binaries.

If you like to build from the source on unix:

env CGO_ENABLED=0 GO111MODULE=on go get -u -ldflags="-s -w" github.com/gokcehan/lf

On windows cmd:

set CGO_ENABLED=0
set GO111MODULE=on
go get -u -ldflags="-s -w" github.com/gokcehan/lf

On windows powershell:

$env:CGO_ENABLED = '0'
$env:GO111MODULE = 'on'
go get -u -ldflags="-s -w" github.com/gokcehan/lf

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 or editor. An example configuration file 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.