lf#

Installation#

https://github.com/gokcehan/lf#installation

Vim-compatible Interface#

lf provides a Vim-like navigation experience by default:

  • Navigation: h, j, k, l
  • Scrolling: gg, G
  • Search: /, n, N
  • Selection: v
  • Hidden Files: zh (Toggle)

Shortcuts#

  • m: Set a mark (eg. ma to mark a location as ‘a’).
  • ': Move to a mark (eg. 'a to jump to the location marked ‘a’).
    • '': Jump to previous location (built-in feature, also inspired by vim marks). Equivalent to cd -.
  • ": Remove (Delete) the selected file or directory.
  • gh: Go home (cd ~).

Shell Integration#

Change Directory on Exit (lfcd)#

To make lf change your shell’s current working directory to the last visited directory on exit, add the following to your ~/.bashrc: GitHub

Custom lfrc#

GitHub